-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
177 lines (167 loc) · 9.06 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Alarm Clock</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no'>
<!-- Css -->
<link href='include/css/font-css.css?=Roboto:400,500,700,900' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="include/css/jquery.numpad.css">
<link rel="stylesheet" href="include/css/bootstrap.css" />
<link rel="stylesheet" href="include/css/main.css" />
<!-- Jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js" integrity="sha256-KzZiKy0DWYsnwMF+X1DvQngQ2/FxF7MF3Ff72XcpuPs=" crossorigin="anonymous"></script>
<script src="include/js/jquery-3.5.0.min.js"></script>
<script src="include/js/bootstrap.js"></script>
<script src="include/js/jquery.inputmask.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.js" type="text/javascript"></script>
<script type="text/javascript" src="include/js/jquery.numpad.js"></script>
</head>
<body>
<div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<!-- settings overlay -->
<div id="menu-overlay" style="display: none;">
<div id="menu-buttons" class="menu-buttons">
<div id="menu-close" class="closemenu">
<i class="far fa-times-circle"></i>
</div>
<div id="ha-status" class="ha-status">
<i id="ha-status-icon" class="ha-status-icon fas fa-circle red"></i>
</div>
</div>
<!-- menu settings -->
<div class="col-12" id="menu-settings" style="display: none;">
<div id="ringtone-select" class="row">
<div class="col-12 buttonspace">
<span class="font-weight-bold">Select ringtone</span>
<select id="ringtones"></select>
</div>
<!-- <div class="col-12 buttonspace">
</div> -->
</div>
<!-- <hr> -->
<div class="row">
<div class="col-12 buttonspace">
<div class="row">
<div class="col-6">Spotify:</div>
<div class="col-6">
<div class="onoffswitch">
<input type="checkbox" name="spotify-state" class="onoffswitch-checkbox" id="spotify-state">
<label class="onoffswitch-label" for="spotify-state">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</div>
</div>
</div>
</div>
<!-- <hr> -->
<div class="row">
<div class="col-12 buttonspace">
<div class="row">
<div class="col-6">Schermlight:</div>
<div class="col-6"><input type="range" min="12" max="225" value="112" class="slider" id="sliderscreen"></div>
</div>
</div>
<div class="col-12 buttonspace">
<div class="row">
<div class="col-6">Volume:</div>
<div class="col-6"><input type="range" min="0" max="1" step=".001" class="slider" id="slidervolume"></div>
</div>
</div>
<div class="col-12 buttonspace">
<button class="btn btn-success playringtone">Play Ringtone</button>
<button id="togglespotify" class="btn btn-success">Play Spotify</button>
<button id="reboot" class="btn btn-warning">reboot</button>
<button id="poweroff" class="btn btn-danger">poweroff</button>
</div>
<!-- <div class="col-12 buttonspace">
</div>
<div class="col-12 buttonspace">
</div> -->
</div>
</div>
<!-- Menu Movie -->
<div class="col-12" id="menu-movie" style="display: none;">
<div class="row">
<div class="col-12 buttonspace">
<button id="SkipNetflix" class="btn btn-danger">Skip Netflix</button>
</div>
<div class="col-12 buttonspace">
<button id="pauseplayNetflix" class="btn btn-danger">Pause/Play</button>
</div>
<div class="col-12 buttonspace">
<button id="stopNetflix" class="btn btn-danger">Stop</button>
</div>
</div>
</div>
</div>
<!-- -->
<!-- day of the week buttons -->
<div class="col-12 font large-text">
<div class="row">
<div id="day-1" class="col day">MA</div>
<div id="day-2" class="col day">DI</div>
<div id="day-3" class="col day">WO</div>
<div id="day-4" class="col day">DO</div>
<div id="day-5" class="col day">VR</div>
<div id="day-6" class="col day">ZA</div>
<div id="day-0" class="col day">ZO</div>
</div>
</div>
<!-- -->
<!-- Big clock -->
<div id="clock-wrapper" class="col large-text"></div>
<!-- -->
<!-- Set alarm -->
<div class="row">
<div class="col-12 m-15">
<input id="alarm-time" class="getalarmtime" type="text" placeholder="HH:MM">
</div>
<div class="col-12 m-15 left-15">
<div class="onoffswitch">
<input type="checkbox" name="alarm-state" class="onoffswitch-checkbox" id="alarm-state">
<label class="onoffswitch-label" for="alarm-state">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</div>
</div>
<!-- -->
<!-- Homeautomation Buttons -->
<div class="col-12 font large-text">
<div class="row">
<div id="btn-01" data-ha-domain="light" data-ha-state="toggle" data-ha-entity_id="0x000b57fffec0317b_light" class="col ha-button"><i class="far fa-lightbulb"></i></div>
<div id="btn-02" data-ha-domain="script" data-ha-state="turn_on" data-ha-entity_id="1581552563583" class="col ha-button"><i class="fas fa-bed"></i></div>
<div id="btn-03" data-ha-domain="" data-ha-state="" data-ha-entity_id="" class="col ha-button"><i class="fas fa-sliders-h"></i></div>
<div id="btn-04" data-ha-domain="" data-ha-state="" data-ha-entity_id="" class="col ha-button"><i class="fas fa-music"></i></div>
<div id="btn-05" data-ha-domain="" data-ha-state="" data-ha-entity_id="" class="col ha-button"><i class="fas fa-film"></i></div>
<div id="btn-06" data-ha-domain="" data-ha-state="" data-ha-entity_id="" class="col ha-button"><i class="far fa-clock"></i></div>
<div id="btn-07" data-ha-domain="" data-ha-state="" data-ha-entity_id="" class="col ha-button"><i class="fas fa-cogs"></i></div>
</div>
</div>
<!-- -->
<!-- Alarm icon if alarm clock is on -->
<div id="status-icon-main" class="col" >
<i id="ha-status-icon-main" class="ha-status-icon fas fa-circle red float-right"></i>
</div>
<div id="alarm-icon" class="col" style="display: none;">
<!-- <img id="alarm-clock-img" src="images/alarm-icon-faebd7.png" class="float-right"> -->
<i class="far fa-clock float-right"></i>
</div>
<!-- -->
</div>
</div>
</body>
<script src="include/js/config.js"></script>
<script src="include/js/main.js"></script>
<script src="include/js/mqtt.js"></script>
<script src="include/js/nodered.js"></script>
<script src="include/js/ha.js"></script>
<script src="include/js/clock.js?v=2"></script>
<script src="include/js/alarm.js?v=2"></script>
</html>