-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
109 lines (108 loc) · 4.8 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
<html>
<head>
<title>Moodle Mobile Simulator</title>
<link rel="stylesheet" href="jquery-ui.min.css">
<link rel="stylesheet" href="styles.css">
<script src="jquery.min.js"></script>
<script src="jquery-ui.min.js"></script>
<script src="simulator.js"></script>
</head>
<body>
<h1>Moodle Mobile simulator</h1>
<div id="add-form" title="Add">
</div>
<div id="simulator-container">
<div id="device-container">
<div id="device-status" style="height: 20px"></div>
<div id="viewport-container">
<iframe id="moodle-site"></iframe>
</div>
</div>
</div>
<div id="options-menu">
<h3>Launch</h3>
<div>
<ul class="ul-clean">
<li>Device: <select id="device"></select></li>
<li>Moodle site: <select id="site"></select></li>
<li>App version: <select id="app"></select></li>
</ul>
<input type="button" id="reset" value="Reset app"> <input type="button" id="run" value="Launch app">
</div>
<h3>General</h3>
<div>
<p><label><input type="checkbox" id="force-offline">Force OFFLINE mode</label></p>
<p><label><input type="checkbox" id="disable-extended">Disable extended features (local_mobile)</label></p>
<p><input type="button" id="rotate" value="Rotate device"></p>
</div>
<h3>Themes (Mobile CSS URL)</h3>
<div>
<p><input type="url" id="theme-url" placeholder="Mobile CSS URL (Theme)"><button id="load-theme">Load theme</button><button id="delete-theme">Delete theme</button></p>
</div>
<h3>CSS Injection</h3>
<div>
<input type="url" id="css-url" value="" placeholder="CSS URL" style="width: 100%"><br/>
<textarea id="css-text" placeholder="CSS code" style="width: 100%"></textarea><br/>
<input type="button" id="inject-css" value="Start injecting">
<input type="button" id="stop-inject-css" value="Stop injecting"><br/>
<input type="button" id="reset-css" value="Reset CSS">
</div>
<h3>Templates</h3>
<div>
<button id="load-templates">Load templates</button>
<select id="app-templates"></select><br/>
<textarea id="template-text" placeholder="Template HTML code" style="width: 100%; height: 200px"></textarea><br/>
<button id="modify-template">Modify template</button>
</div>
<h3>Push notifications</h3>
<div>
<textarea id="payload-notification" style="width: 100%; height: 100px">{
"alert": "<b>Fake notification</b>",
"type": "local_test",
"userfrom": "Test user",
"foreground": "0",
"event": "message",
"payload": {
"message": "<b>Fake notification</b>"
}
}</textarea>
<button id="send-push">Send Push notification</button>
</div>
<h3>Intents / Open with</h3>
<div>
</div>
<h3>File system</h3>
<div>
<a target="_blank" href="filesystem:file:///persistent/"><button>Open using the browser</button></a>
<button id="calculate-space">Calculate space usage (all the sites)</button>
</div>
<h3>Log</h3>
<div>
<input type="text" placeholder="Component filter" id="component-filter" style="width: 90px">
<input type="text" placeholder="Text filter" id="text-filter" style="width: 90px">
<a href="#" id="clean-log" title="Clean log and filters"><span class="ui-icon ui-icon-circle-close" style="display: inline; float: right"></span></a>
<div id="log" style="width: 100%, height: 100%, overflow: scroll">
</div>
</div>
<h3>Settings</h3>
<div>
<div id="setting-tabs">
<ul>
<li><a href="#tabs-apps">Apps</a></li>
<li><a href="#tabs-sites">Sites</a></li>
</ul>
<div id="tabs-apps">
<ul class="ul-clean">
</ul>
<span id="add-app" class="ui-icon ui-icon-circle-plus"></span>
</div>
<div id="tabs-sites">
<ul class="ul-clean">
</ul>
<span id="add-site" class="ui-icon ui-icon-circle-plus"></span>
</div>
</div>
</div>
</options>
</body>
</html>