-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
43 lines (38 loc) · 1.35 KB
/
index.js
File metadata and controls
43 lines (38 loc) · 1.35 KB
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
$(function() {
var sidebarOpen = false;
$('#hamburger').click(function() {
if (sidebarOpen) {
$('.sidebar-wrapper').removeClass('open');
$('.sidebar-wrapper').addClass('close');
$('.section').removeClass('sidebar-open');
$('.section').addClass('sidebar-close');
// document.body.style.background = "#f3f3f3 url('img_tree.png') no-repeat right top";
// $('.open-img').style.display=none;
// $('.close-img').style.display=block;
//
} else {
$('.sidebar-wrapper').addClass('open');
$('.sidebar-wrapper').removeClass('close');
$('.section').removeClass('sidebar-close');
$('.section').addClass('sidebar-open');
// $('.open-img').style.display=block;
// $('.close-img').style.display=none;
}
sidebarOpen = !sidebarOpen;
});
/**********************************************************
COUNTERS
**********************************************************/
var start = 100;
var speed = 50;
$(document).ready(function() {
go();
setInterval(function() {
go();
}, speed);
});
function go() {
$(".counter").html(start.toFixed(0));
start = (start + 1) % 500 + 100;
}
});