Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
xmlns:android = "http://schemas.android.com/apk/res/android"
id = "net.moodlemoot.mootes14"
id = "ch.lhemoodle.lesroches"
versionCode = "1"
version = "1.0">
<name>mootes14</name>
Expand Down Expand Up @@ -88,7 +88,7 @@
<gap:plugin name="com.phonegap.plugins.pushplugin" />
<gap:plugin name="net.tunts.webintent" />
<gap:plugin name="nl.x-services.plugins.launchmyapp">
<param name="URL_SCHEME" value="mootes14" />
<param name="URL_SCHEME" value="lesroches" />
</gap:plugin>
<gap:plugin name="com.ionic.keyboard" version="1.0.3" />

Expand Down
Binary file modified img/icon/android/icon-36-ldpi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/icon/android/icon-36.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/icon/android/icon-48-mdpi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/icon/android/icon-72-hdpi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/icon/android/icon-72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/icon/android/icon-96-xhdpi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/icon/android/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "mootes14 for desktop",
"name": "lesroches for desktop",
"main": "index.html",
"window": {
"title": "mootes14 for desktop",
"title": "lesroches for desktop",
"icon": "icon.png",
"toolbar": true,
"frame": true,
Expand All @@ -12,5 +12,5 @@
"resizable": false
},
"plugin": true,
"description": "mootes14 for desktop"
"description": "lesroches for desktop"
}
15 changes: 15 additions & 0 deletions plugins/lesroches/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<center><img src="plugins/lesroches/logo.png" width ="200" alt="Moodle"></center>
<form action="" novalidate>
<div id="login-details">

<input type="hidden" id="url" value="http://www.lhemoodle.ch">
<p>
<input type="text" id="username" autocapitalize="off" autocorrect="off" placeholder="<%= MM.lang.s("username") %>">
</p>
<p>
<input type="password" id="password" placeholder="<%= MM.lang.s("password") %>">
<p>
<input type="submit" name="add" id="addsitebutton" value="Sign-in">
</p>
</div>
</form>
Binary file added plugins/lesroches/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions plugins/lesroches/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
var templates = [
"root/externallib/text!root/plugins/lesroches/theme.css",
"root/externallib/text!root/plugins/lesroches/login.html",
"root/externallib/text!root/plugins/lesroches/program.html"
];

define(templates, function (theme, loginForm, program) {
var plugin = {
settings: {
name: "lesroches",
type: "general",
menuURL: "#lesroches",
icon: "plugins/events/icon.png",
lang: {
component: "core"
}
},

routes: [
["lesroches", "show_program", "showProgram"]
],

showProgram: function() {
var tpl = {};
var html = MM.tpl.render(program, tpl);
MM.panels.show('center', html, {title: MM.lang.s("lesroches")});
}
};

// Inject allways our custom theme.
$("#mobilecssurl").html(theme);

// Replace the sign-up form with our custom template.
$("#add-site_template").html(loginForm);

// Automatically use the URL of the moodle moot without further checks.
MM.checkSite = function(e) {
MM.addSite(e);
};

// Inject allways our custom theme.
MM.loadCachedRemoteCSS = function(e) {
$("#mobilecssurl").html(theme);
};

// Do not display the manage accounts page.
MM._displayManageAccounts = function() {
MM._displayAddSite();
};

MM.registerPlugin(plugin);

});
3 changes: 3 additions & 0 deletions plugins/lesroches/program.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="content-index">
<p>Some custom html here</p>
</div>
44 changes: 44 additions & 0 deletions plugins/lesroches/theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
body {
background: #FFFFFF;
}
h1 {
color: #fa8f1c;
}
.user-menu header h1 {
color: #fa8f1c;
}
h2 {
color: #fa8f1c;
background-color: #7a8a94;
}
.header-main {
color: #fa8f1c;
background: #EDEDED;
}
#page-title {
text-shadow: none;
}
.user-menu {
background: #FFFFFF;
}
.user-menu h2 {
color: #4b565d;
background: #ffffff;
box-shadow: none;
}
.user-menu .nav-item > a {
color: #fa8f1c;
}
.user-menu .nav-item .plugin-ico,
.user-menu .nav-item .course-ico {
background-color: #4b565d;
}
.grades .section-name {
color: #ffffff;
background-color: #7a8a94;
}

.user-menu header {
color: #fa8f1c;
background: #EDEDED ;
}