@@ -2,7 +2,8 @@ var animate;
2
2
var shellinabox ;
3
3
var shellinaboxport ;
4
4
var statusautorefresh ;
5
- var refreshtimer ;
5
+ var refreshTimerId ;
6
+ var clickId ;
6
7
var firstload = true ;
7
8
8
9
function SetProgressBarAnimate ( ) {
@@ -75,21 +76,21 @@ $(function () {
75
76
'</div>' +
76
77
'<div class="modal-body">' +
77
78
'This program is free software: you can redistribute it and/or modify<br>' +
78
- 'it under the terms of the GNU General Public License as published by <br>' +
79
- 'the Free Software Foundation, either version 3 of the License, or<br>' +
79
+ 'it under the terms of the GNU General Public License as published<br>' +
80
+ 'by the Free Software Foundation, either version 3 of the License, or<br>' +
80
81
'(at your option) any later version.<br>' +
81
82
'<br>' +
82
- 'This program is distributed in the hope that it will be useful,<br>' +
83
- 'but WITHOUT ANY WARRANTY; without even the implied warranty of<br>' +
84
- 'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the <br>' +
85
- 'GNU General Public License for more details.<br>' +
83
+ 'This program is distributed in the hope that it will be useful,i but <br>' +
84
+ 'WITHOUT ANY WARRANTY; without even the implied warranty of<br>' +
85
+ 'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br>' +
86
+ 'See the GNU General Public License for more details.<br>' +
86
87
'<br>' +
87
88
'You should have received a copy of the GNU General Public License<br>' +
88
89
'along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>.' +
89
90
'</p>' +
90
91
'<hr>' +
91
- 'RPi-Monitor is using third party software hava there own license.<br>' +
92
- 'Ref. <a href="#About" data-dismiss="modal" data-toggle="modal">About</a> to have the list of software used by RPi-Monitor. ' +
92
+ '<b> RPi-Monitor</b> is using third party software hava there own license.<br>' +
93
+ 'Ref. <a href="#About" data-dismiss="modal" data-toggle="modal">About</a> to have the list of software used by <b> RPi-Monitor</b> . ' +
93
94
'</div>' +
94
95
'<div class="modal-footer">' +
95
96
'<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>' +
@@ -108,9 +109,8 @@ $(function () {
108
109
'<p><b>Version</b>: {DEVELOPMENT} ' +
109
110
'<b>by</b> Xavier Berger <a href="http://rpi-experiences.blogspot.fr/">Blog</a> <a href="https://github.com/XavierBerger/RPi-Monitor">GitHub</a></p>' +
110
111
'<hr>' +
111
- '<p><b>RPi-Monitor</b> is free software developped on top of other open source' +
112
+ '<p><b>RPi-Monitor</b> is free software developped on top of other open source ' +
112
113
'tools : <a href="http://twitter.github.io/bootstrap/">bootstrap</a>, <a href="http://jquery.com/">jquery</a>, <a href="https://code.google.com/p/jsqrencode/">jsqrencode</a> and <a href="http://javascriptrrd.sourceforge.net/">javascriptrrd</a>.<br>' +
113
- 'The look and feel of the status page is clearly inspired by <a href="https://github.com/Bioshox/Raspcontrol">Raspcontrol</a>.</p>' +
114
114
'<p><b>Raspberry Pi</b> and Raspberry Pi logo are properties of <a href="http://www.raspberrypi.org/">Raspberry Pi Fundation</a>.</p>' +
115
115
'</div>' +
116
116
'<div class="modal-footer">' +
@@ -173,7 +173,7 @@ $(function () {
173
173
'<li><a href="#About" data-toggle="modal">About</a></li>' +
174
174
'<li class="divider"></li>' +
175
175
'<li class="nav-header">Related links</li>' +
176
- '<li><a href="http://rpi-experiences.blogspot.fr/">RPi-experiences </a></li>' +
176
+ '<li><a href="http://rpi-experiences.blogspot.fr/">RPi-Experiences </a></li>' +
177
177
'<li><a href="https://github.com/XavierBerger/RPi-Monitor">RPi-Monitor</a></li>' +
178
178
'</ul>' +
179
179
'</li>' +
@@ -245,10 +245,12 @@ $(function () {
245
245
localStorage . setItem ( 'statusautorefresh' , statusautorefresh ) ;
246
246
if ( statusautorefresh ) {
247
247
UpdateStatus ( ) ;
248
- refreshtimer = setInterval ( UpdateStatus , 10000 )
248
+ refreshTimerId = setInterval ( UpdateStatus , 10000 )
249
+ clockId = setInterval ( clock , 1000 ) ;
249
250
}
250
251
else {
251
- clearInterval ( refreshtimer ) ;
252
+ clearInterval ( refreshTimerId ) ;
253
+ clearInterval ( clockId ) ;
252
254
} ;
253
255
} ) ;
254
256
0 commit comments