-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
124 lines (112 loc) · 5.18 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="msapplication-tap-highlight" content="no">
<link rel="stylesheet" href="css/jquery.mobile.flatui.css">
<script type="text/javascript">
//Soporte para el Webkit
window.requireNode = window.require;
window.require = undefined;
</script>
<script src="cordova.js"></script>
<script src="childbrowser.js"></script>
<script src="webintent.js"></script>
<script src="PushNotification.js"></script>
<script src="externallib/jquery-1.8.1.min.js"></script>
<script type="text/javascript">
// DISABLE JQM ROUTER
$(document).bind("mobileinit", function () {
$.mobile.ajaxEnabled = false;
$.mobile.linkBindingEnabled = false;
$.mobile.hashListeningEnabled = false;
$.mobile.pushStateEnabled = false;
$.mobile.changePage.defaults.changeHash = false;
});
</script>
<script src="externallib/jquery.mobile-1.3.2.js"></script>
<script src="externallib/md5.js"></script>
<script src="externallib/underscore.js"></script>
<script src="externallib/backbone.js"></script>
<script src="externallib/backbone-localstorage.js"></script>
<script src="lib/mm.js"></script>
<script src="lib/mm.tpl.js"></script>
<script src="lib/mm.db.js"></script>
<script src="lib/mm.lang.js"></script>
<script data-main="lib/app.js" src="externallib/require.js"></script>
</head>
<body>
<div data-role="page" id="login" class="ui-page ui-body-c">
</div>
<div data-role="page" id="principal" class="ui-page ui-body-c" style="display: none">
<div id="cabezera"></div>
<div id="panel-izq"></div>
<div id="panel-centro"></div>
<div id="panel-der"></div>
</div>
<!--Pantalla de login Inicio -->
<script type="text/template" id="login_template">
<div data-role="header" class="ui-header-fixed ui-bar-e" data-position="fixed">
<h1 class="ui-title" role="heading">Acceso!</h1>
</div>
<p />
<div data-role="content" class="ui-content">
<h2>Introduce tus datos</h2>
<form action="">
<label for="moodle">Moodle:</label>
<select id="moodle">
<option value="http://localhost/moodle25">Localhost</option>
<option value="http://10.7.3.194/moodle25">Escuela</option>
<option value="URL">NOMBRE</option>
</select>
<label for="username">Usuario:</label>
<input type="text" id="username" autocapitalize="off" autocorrect="off" required>
<label for="password">Contraseña:</label>
<input type="password" id="password" autocapitalize="off" autocorrect="off" required>
<!--<a data-role="button" id="boton_login">Entrar</a>-->
<input type="submit" value="Entrar" data-transtion="fade">
</form>
</div>
</script>
<!--Pantalla de login fin -->
<!-- Pantalla principal inicio -->
<script type="text/template" id="principal_template">
<div data-role="header" class="ui-header ui-bar-e">
<ul data-role="listview">
<li>
<img src="<%= usuario.avatar %>" style="-webkit-border-radius: 50em; -moz-border-radius: 50em; border-radius: 50em;"/>
<h1 style="font-size:x-large ">Bienvenido! <%= usuario.nombre %><h1>
</li>
</ul>
</div>
<div data-role="content" class="ui-content">
<ul data-role="listview">
<li data-role="list-divider">Mis cursos</li>
<div data-role="collapsible-set" data-theme="f" data-content-theme="c" data-corners="false">
<% _.each(courses, function(course) { %>
<div data-role="collapsible" data-collapsed-icon="flat-calendar" data-expanded-icon="flat-cross">
<h3><%= course.fullname %></h3>
<ul data-role="listview">
<% _.each(coursePlugins, function(plugin) { %>
<li><a href="<%= plugin.menuURL%><%= course.id %>"><%= plugin.nameToShow %></a></li>
<% }); %>
</ul>
</div>
<% }); %>
</div>
<li data-role="list-divider">Perfil</li>
<li><a href="#" data-transition="slideup">Ver Perfil</a></li>
<li><a href="#" data-transition="pop">Mensajes</a></li>
<li data-role="list-divider">Ajustes</li>
<li><a href="#">Ajustes de la cuenta</a></li>
<li><a href="#">Ajustes de la aplicación</a></li>
<li data-role="list-divider"><a href="#salir" data-role="button" data-transtion="fade">Salir</a></li>
</ul>
</div>
</script>
<!-- Pantalla principal fin -->
</body>
</html>