-
Notifications
You must be signed in to change notification settings - Fork 0
/
relationship.html
152 lines (73 loc) · 2.71 KB
/
relationship.html
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Charm:wght@700&display=swap" rel="stylesheet">
<link href="style.css" rel="stylesheet">
<script src="script.js"></script>
</head>
<body>
<div class="wrapper">
<h1 class="title">Khant SI Thu Phyo In a Relationship With Myat Su Mon</h1>
<audio id="music" controls loop>
<source src="https://www.dropbox.com/s/8xewilbrzxwj2lk/Anniversary.mp3?dl=1">
</audio>
<div class="box-container">
<div class="box">
<span class="digit d1">00</span>
<label>Day</label>
</div>
<div class="box">
<span class="digit d2">00</span>
<label>Hour</label>
</div>
<div class="box">
<span class="digit d3">00</span>
<label>Min</label>
</div>
<div class="box">
<span class="digit d4">00</span>
<label>Sec</label>
</div>
</div>
<div id="demo"> </div>
</div>
<!-- <ul class="social-media-icons">
<li><a href="https://www.facebook.com/#"><i class="fa fa-facebook" aria-hidden="true"></i> </a></li>
<li><a href="https://www.twitter.com/KyawZin42414859"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<li><a href="https://www.github.com/kyaw-zin-aung"><i class="fa fa-github" aria-hidden="true"></i> </a></li>
</ul> -->
<script>
var music = document.getElementById("music")
music.load();
document.addEventListener("click", function() {
music.play()
})
window.onload=()=>{
var d1 = document.querySelector('.d1');
var d2 = document.querySelector('.d2');
var d3 = document.querySelector('.d3');
var d4 = document.querySelector('.d4');
var countDownDate = new Date("May 08, 2020 13:15:00").getTime();
var x = setInterval(function() {
var now = new Date().getTime();
var distance = - countDownDate + now;
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
d1.innerHTML=days;
d2.innerHTML=hours;
d3.innerHTML=minutes;
d4.innerHTML=seconds;
if(distance < 0) {
clearInterval(x);
document.getElementById("demo").innerHTML = "EXPIRED";
}
},1000);
}
</script>
</body>
</html>