Delete index.js
This commit is contained in:
parent
66167382a9
commit
51148c097a
22
css/index.js
22
css/index.js
|
@ -1,22 +0,0 @@
|
||||||
$(function() {
|
|
||||||
|
|
||||||
// Set the command-line prompt to include the user's IP Address
|
|
||||||
//$('.prompt').html('[' + codehelper_ip["IP"] + '@HTML5] # ');
|
|
||||||
$('.prompt').html('[user@HTML5] # ');
|
|
||||||
|
|
||||||
// Initialize a new terminal object
|
|
||||||
var term = new Terminal('#input-line .cmdline', '#container output');
|
|
||||||
term.init();
|
|
||||||
|
|
||||||
// Update the clock every second
|
|
||||||
setInterval(function() {
|
|
||||||
function r(cls, deg) {
|
|
||||||
$('.' + cls).attr('transform', 'rotate('+ deg +' 50 50)')
|
|
||||||
}
|
|
||||||
var d = new Date()
|
|
||||||
r("sec", 6*d.getSeconds())
|
|
||||||
r("min", 6*d.getMinutes())
|
|
||||||
r("hour", 30*(d.getHours()%12) + d.getMinutes()/2)
|
|
||||||
}, 1000);
|
|
||||||
|
|
||||||
});
|
|
Loading…
Reference in a new issue