File tree Expand file tree Collapse file tree 6 files changed +53
-1
lines changed Expand file tree Collapse file tree 6 files changed +53
-1
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ printf " Content-type: application/json\r\n\r\n"
4
+
5
+ # Yeah, it's pretty ugly.. but hey, it works.
6
+
7
+ sync
8
+ reboot
9
+
10
+ printf " {\n"
11
+ printf " }"
12
+
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ table.padded-table td:last-child {
139
139
/*text-shadow: 0.01px 0 0 currentColor;*/
140
140
}
141
141
142
+ li .nav-elem-right {
143
+ float : right;
144
+ }
145
+
142
146
/* The switch - the box around the slider */
143
147
.switch {
144
148
position : relative;
Original file line number Diff line number Diff line change 47
47
< li >
48
48
< a href ="/?page=about "> About</ a >
49
49
</ li >
50
+ < li class ="nav-elem-right ">
51
+ < a href ="/?page=reboot "> Reboot Camera</ a >
52
+ </ li >
50
53
< li class ="icon ">
51
54
< a class ="nav-toggler "> ☰</ a >
52
55
</ li >
Original file line number Diff line number Diff line change
1
+ var APP = APP || { } ;
2
+
3
+ APP . reboot = ( function ( $ ) {
4
+
5
+ var timeoutVar ;
6
+
7
+ function init ( ) {
8
+ rebootCamera ( ) ;
9
+ }
10
+
11
+ function rebootCamera ( ) {
12
+ $ . ajax ( {
13
+ type : "GET" ,
14
+ url : 'cgi-bin/reboot.sh' ,
15
+ dataType : "json" ,
16
+ error : function ( response ) {
17
+ console . log ( 'error' , response ) ;
18
+ }
19
+ } ) ;
20
+ }
21
+
22
+ return {
23
+ init : init
24
+ } ;
25
+
26
+ } ) ( jQuery ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ <h3 class="no-margin" id="header">Configurations</h3>
6
6
< div class ="row ">
7
7
< p > Here you can enable/disable services.</ p >
8
8
< p >
9
- < strong > Any changes will take effect at reboot of the camera.</ strong >
9
+ < strong > Any change will take effect after the reboot of the camera.</ strong >
10
10
</ p >
11
11
</ div >
12
12
Original file line number Diff line number Diff line change
1
+ < div class ="row ">
2
+ < div class ="twelf columns ">
3
+ < h3 class ="no-margin " id ="header "> Reboot</ h3 >
4
+ < hr class ="tiny-margin " />
5
+ Rebooting the camera.
6
+ </ div >
7
+ </ div >
You can’t perform that action at this time.
0 commit comments