forked from sameerdhoot/wolweb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
78 lines (72 loc) · 3.11 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
<html>
<head>
<title>Wake-on-LAN Web</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css">
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jsgrid/1.5.3/jsgrid.min.css" />
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jsgrid/1.5.3/jsgrid-theme.min.css" />
<link rel="stylesheet" href="static/wolweb.css">
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-12" role="main">
<h1 class="mb-4 mt-4"><span class="fas fa-power-off"></span> Wake-on-LAN Web Interface<small></h1>
<div id="snackbar" class="alert hideMe">
Message comes here
</div>
<div id="GridDevices"></div>
<hr>
<p>
<h3>Wake using HTTP Request</h3>
<b>{{$.VDir}}/wake/<span class="text-info"><DeviceName></span></b>
<b>Returns a JSON Object</b>
<p>
<pre>
{
"success":true,
"message":"Sent magic packet to device with MAC 00:00:00:00:00:00 on Broadcast IP 192.168.110.255:9",
"error":null
}
</pre>
</p>
<dl class="dl-horizontal">
<dt>Success</dt>
<dd>True or False if the WakeOnLan Packet was sent</dd>
<dt>Message</dt>
<dd>Message as string what happened</dd>
<dt>Error</dt>
<dd>Encoded JSON Object from GOLANG Error Object</dd>
</dl>
</p>
<hr>
<p>
<i class="fab fa-github"></i> Project Page: <a
href="https://github.com/bnhf/wolweb">https://github.com/bnhf/wolweb</a>
</p>
<p class="m-0">
<small>Built with <span class="fa fa-heart text-danger" aria-hidden="true"></span> by Scott Ueland, <span
class="fab fa-github"></span> <a href="https://github.com/bnhf">https://github.com/bnhf</a></small>
</p>
<p class="m-0">
<small class="ml-2"><i class="fas fa-code-branch m-1"></i> from Sameer Dhoot's project <a href="https://github.com/sameerdhoot/wolweb">https://github.com/sameerdhoot/wolweb</a></small>
</p>
<p class="m-0">
<small class="ml-2"><i class="fas fa-code-branch m-1"></i> from David Baumann's project <a href="https://github.com/dabondi/go-rest-wol">https://github.com/dabondi/go-rest-wol</a></small>
</p>
</div>
</div>
</div>
<script>
window.vDir = "{{$.VDir}}"
window.bCastIP = "{{$.BCastIP}}"
</script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jsgrid/1.5.3/jsgrid.min.js"></script>
<script src="static/wolweb.js"></script>
</body>
</html>