-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
35 lines (31 loc) · 1.05 KB
/
index.js
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
var i = 1;
function a() {
var i = 2;
function aa() {
return i;
}
return aa;
}
a()();
(function () {
var date,
menuDate = document.getElementById("menuDate"),
menuTime = document.getElementById("menuTime");
function menu() {
date = new Date();
menuDate.innerHTML = date.getFullYear().toString()+"/" +
(date.getMonth()+1)+ "/"+ date.getDate();
menuTime.innerHTML = date.getHours().toString() +" : "+
date.getMinutes()+ " : "+ date.getSeconds();
};
window.setInterval(menu,500);
var menuMsc = document.getElementById('menuMsc');
menuMsc.onclick = function () {
var status = document.getElementById('menuMscCont'),
targ = menuMsc.children[0].children[2],
targClass = targ.className;
targ.className = targClass.match(/fa-plus/) ?
targClass.replace('fa-plus','fa-minus') : targClass.replace('fa-minus','fa-plus');
status.style.display = status.style.display === 'block'? 'none': 'block';
};
})();