forked from omgmog/lightdm-webkit-google
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
160 lines (147 loc) · 8.78 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="assets/css/material.min.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
</head>
<body oncontextmenu="return false;">
<div class="mdl-layout mdl-js-layout">
<main class="mdl-layout__content" style="flex: 1 0 auto;">
<!-- Login card -->
<div class="card mdl-shadow--4dp" id="login">
<div class="header">Welcome back!</div>
<div class="content">
<img class="profile-img" src="assets/ui/avatar.png"/>
<form>
<div class="form-group">
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<select id="user" class="mdl-textfield__input select"></select>
</div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="password" id="pass">
<label class="mdl-textfield__label" for="pass"><i class="fa fa-lock"></i> Password</label>
</div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<select id="session" class="mdl-textfield__input select"></select>
</div>
<button type="submit" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored"><i class="fa fa-sign-in"></i> Sign in</button>
</div>
</form>
</div>
</div>
<!-- Settings card -->
<div class="card mdl-shadow--4dp" id="settings" style="display: none;">
<div class="header">Settings</div>
<div class="content">
<form>
<div class="form-group">
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<label class="mdl-textfield__label" for="language"><i class="fa fa-language"></i> Language</label>
<select id="language" class="mdl-textfield__input"></select>
</div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<label class="mdl-textfield__label" for="layout"><i class="fa fa-keyboard-o"></i> Keyboard layout</label>
<select id="layout" class="mdl-textfield__input"></select>
</div>
<br/>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored" onclick="load_settings(); show_login_dialog();">
<i class="fa fa-ban"></i> Cancel
</button>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored" onclick="save_settings(); show_login_dialog();">
<i class="fa fa-floppy-o"></i> Save
</button>
</div>
</form>
</div>
</div>
<!-- Shutdown dialog -->
<div class="card mdl-shadow--4dp" id="shutdown-dialog" style="display: none;">
<div class="header">Shutdown</div>
<div class="content">
Do you really want to shutdown?<br/><br/>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored" onclick="show_login_dialog();"><i class="fa fa-ban"></i> Cancel</button>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored" onclick="lightdm.shutdown();"><i class="fa fa-power-off"></i> Shutdown</button>
</div>
</div>
<!-- Restart dialog -->
<div class="card mdl-shadow--4dp" id="restart-dialog" style="display: none;">
<div class="header">Restart</div>
<div class="content">
Do you really want to restart?<br/><br/>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored" onclick="show_login_dialog();"><i class="fa fa-ban"></i> Cancel</button>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored" onclick="lightdm.restart();"><i class="fa fa-refresh"></i> Restart</button>
</div>
</div>
<!-- Suspend dialog -->
<div class="card mdl-shadow--4dp" id="suspend-dialog" style="display: none;">
<div class="header">Suspend</div>
<div class="content">
Do you really want to suspend?<br/><br/>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored" onclick="show_login_dialog();"><i class="fa fa-ban"></i> Cancel</button>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored" onclick="lightdm.suspend();"><i class="fa fa-power-off fa-rotate-90"></i> Suspend</button>
</div>
</div>
<!-- Hibernate dialog -->
<div class="card mdl-shadow--4dp" id="hibernate-dialog" style="display: none;">
<div class="header">Hibernate</div>
<div class="content">
Do you really want to hibernate?<br/><br/>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored" onclick="show_login_dialog();"><i class="fa fa-ban"></i> Cancel</button>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored" onclick="lightdm.hibernate();"><i class="fa fa-power-off "></i> Hibernate</button>
</div>
</div>
<!-- Help dialog -->
<div class="card mdl-shadow--4dp" id="help-dialog" style="display: none;">
<div class="header">Help</div>
<div class="content">
<b>I found a bug/mistake? Where can I report it?</b><br/>
<i>https://github.com/artur9010/lightdm-webkit-material/issues</i>
<br/>
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored" onclick="show_login_dialog();">Ok</button>
</div>
</div>
</main>
<!-- Footer -->
<footer class="mdl-mini-footer">
<div class="mdl-mini-footer__left-section">
<ul class="mdl-mini-footer__link-list">
<li id="action-shutdown" onclick="show_shutdown_dialog()">
<i class="fa fa-power-off"></i> Shutdown
</li>
<li id="action-reboot" onclick="show_restart_dialog();">
<i class="fa fa-refresh"></i> Restart
</li>
<li id="action-suspend" onclick="show_suspend_dialog();">
<i class="fa fa-power-off fa-rotate-90"></i> Suspend
</li>
<li id="action-hibernate" onclick="show_hibernate_dialog();">
<i class="fa fa-power-off"></i> Hibernate
</li>
<li id="action-settings" onclick="show_settings_dialog();">
<i class="fa fa-cog"></i> Settings
</li>
</ul>
</div>
<div class="mdl-mini-footer__right-section">
<ul class="mdl-mini-footer__link-list">
<li id="clock">00:00:00</li>
<li onclick="show_help_dialog();"><i class="fa fa-question-circle"></i></li>
</ul>
</div>
</footer>
</div>
<!-- Required libs -->
<script src="assets/js/jquery.js"></script>
<!-- Login -->
<script src="assets/js/mock.js"></script>
<script src="assets/js/clock.js"></script>
<script src="assets/js/login.js"></script>
<script src="assets/js/settings.js"></script>
<script src="assets/js/dialogs.js"></script>
<!-- Material -->
<script src="assets/js/material.min.js"></script>
<script src="assets/js/mdl-select.js"></script>
</body>
</html>