-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
89 lines (84 loc) · 4.16 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
<html>
<head>
<title>WakeOnLan Webpage</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="resources/favicon.png" sizes="952x952">
<link rel="stylesheet" href="./resources/mdl/material_grey-yellow.min.css">
<link rel="stylesheet" href="./dialog.css">
<script src="./resources/mdl/material.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<script src="./resources/jquery-3.3.1.min.js"></script>
<script src="./dialog.js"></script>
<script src="./script.js"></script>
</head>
<body onload="onInit();">
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<span class="mdl-layout-title">WakeOnLan Webpage</span>
<div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation mdl-layout--large-screen-only">
<a class="mdl-navigation__link" target="_blank" href="https://www.felix-franz.com/">Developer Website</a>
<a class="mdl-navigation__link" target="_blank" href="https://github.com/Felix-Franz/WakeOnLan-Webpage">Github</a>
</nav>
</div>
</header>
<main class="mdl-layout__content">
<div class="page-content">
<div class="mdl-grid">
<div class="mdl-layout-spacer"></div>
<div class="mdl-cell mdl-cell--4-col" style="text-align: center;">
<h3>Wake me up!</h3>
<p>Choose a device to wakeup!</p>
<div id="devices"></div>
<button class="mdl-button mdl-js-button mdl-button--fab mdl-button--colored" onclick="onLoad();" style="margin: 1em; float: right;">
<i class="material-icons">refresh</i>
</button>
</div>
<div class="mdl-layout-spacer"></div>
</div>
</div>
</main>
</div>
<div id="toast" class="mdl-js-snackbar mdl-snackbar">
<div class="mdl-snackbar__text"></div>
<button class="mdl-snackbar__action" type="button"></button>
</div>
<div id="loginDialog" class="dialog">
<div class="dialog-background"></div>
<div class="dialog-content">
<p>Please insert username and password.</p>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="text" id="user" onkeypress="if (event.keyCode === 13) setUserCredentials();">
<label class="mdl-textfield__label" for="user">username</label>
</div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="password" id="password" onkeypress="if (event.keyCode === 13) setUserCredentials();">
<label class="mdl-textfield__label" for="password">password</label>
</div>
<p id="login-wrong" style="color: red;">Wrong user credentials!<br />Please try again!</p>
<div align="right" style="margin: 1em;">
<button class="mdl-button mdl-js-button mdl-button--raised" onclick="setUserCredentials();">Login</button>
</div>
</div>
</div>
<!-- <dialog class="mdl-dialog" id="dialog-login"> -->
<!-- <h4 class="mdl-dialog__title">Login</h4> -->
<!-- <div class="mdl-dialog__content"> -->
<!-- <p>Please insert username and password.</p> -->
<!-- <div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label"> -->
<!-- <input class="mdl-textfield__input" type="text" id="user" onkeypress="if (event.keyCode === 13) setUserCredentials();"> -->
<!-- <label class="mdl-textfield__label" for="user">username</label> -->
<!-- </div> -->
<!-- <div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label"> -->
<!-- <input class="mdl-textfield__input" type="password" id="password" onkeypress="if (event.keyCode === 13) setUserCredentials();"> -->
<!-- <label class="mdl-textfield__label" for="password">password</label> -->
<!-- </div> -->
<!-- <p id="login-wrong" style="color: red;">Wrong user credentials!<br />Please try again!</p> -->
<!-- </div> -->
<!-- <div class="mdl-dialog__actions"> -->
<!-- <button type="button" class="mdl-button" onclick="setUserCredentials();">Login</button> -->
<!-- </div> -->
<!-- </dialog> -->
</body>
</html>