-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
63 lines (51 loc) · 1.74 KB
/
main.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
$(".btn").mousedown(function(e){
e.preventDefault();
});
$('.btn').mouseup(function(){
$(this).css("color", "white");
});
$('.btn').mouseover(function(){
$(this).css("color", "black");
});
$('.btn').mouseout(function(){
$(this).css("color", "white");
});
$("#info_btn").click(function(){
$("html,body").animate({
scrollTop: $('#page_pg').offset().top - $('body').offset().top + $('body').scrollTop()
},'slow');
});
$("#contact_btn").click(function(){
$("html,body").animate({
scrollTop: $('#watch-this-space').offset().top - $('body').offset().top + $('body').scrollTop()
},1100);
});
// american date... mm/yy/dddd
//CountDownTimer('03/07/2020 10:00 AM', 'countdown');
/*
function CountDownTimer(dt, id)
{
var end = new Date(dt);
var _second = 1000;
var _minute = _second * 60;
var _hour = _minute * 60;
var _day = _hour * 24;
var _week = _day * 7;
var timer;
function showRemaining() {
var now = new Date();
var distance = end - now;
var weeks = Math.floor(distance / _week);
var days = Math.floor((distance % _week) / _day);
var hours = Math.floor((distance % _day) / _hour);
var minutes = Math.floor((distance % _hour) / _minute);
var seconds = Math.floor((distance % _minute) / _second);
document.getElementById("weeks").innerHTML = weeks;
document.getElementById("days").innerHTML = days;
document.getElementById("hours").innerHTML = hours;
document.getElementById("minutes").innerHTML = minutes
document.getElementById("seconds").innerHTML = seconds;
}
timer = setInterval(showRemaining, 1000);
}
*/