-
Notifications
You must be signed in to change notification settings - Fork 0
/
age.html
156 lines (140 loc) · 7.36 KB
/
age.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
153
154
155
156
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Your Unus Annus Age</title>
<meta name="google-site-verification" content="-o-Nc8JpG4_d-hHmYzsSr3xFKfqq3-mjNCq63xPzeQ0" />
<meta name="description" content="What would you do if you only had a year left to live? Would you squander the time you were given? Or would you make every second count?" />
<meta property="og:title" content="Unus Annus Countdown" />
<meta property="og:description" content="What would you do if you only had a year left to live? Would you squander the time you were given? Or would you make every second count?" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.unusannus.com" />
<meta property="og:image" content="https://s9.limitedrun.com/images/1388842/Screen_Shot_2019-11-14_at_20.38.17.png" />
<meta property="og:site_name" content="Unus Annus Countdown" />
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Unus Annus" />
<meta name="twitter:image" content="https://s9.limitedrun.com/images/1388842/Screen_Shot_2019-11-14_at_20.38.17.png">
<meta name="twitter:description" content="What would you do if you only had a year left to live? Would you squander the time you were given? Or would you make every second count?">
<meta name="theme-color" content="#000000" />
<link href="https://s9.limitedrun.com/images/1388844/favicon.png" rel="shortcut icon" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
<link href="https://s6.limitedrun.com/asset/themes/133807-20200504160914316478000/facades/28383-20200730161522599524000/materialize-shaved-4d9b0b68f10901a4a18836ec0be9dc45.css" media="screen" rel="stylesheet" type="text/css" />
<link href="default.css" media="screen" rel="stylesheet" type="text/css" />
<link href="overrides-1b2bcfb309973e31ac9fcb14a2a1ec60.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/tilt.js/1.2.1/tilt.jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/barba.js/1.0.0/barba.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/unveil2/2.0.8/jquery.unveil2.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.min.js"></script>
<script src="https://s6.limitedrun.com/asset/themes/133807-20200504160914316478000/facades/28383-20200730161522599524000/glasscase-fa5239ab3e1f819ff11aa611b30dccb2.js" type="text/javascript"></script>
<script src="https://s5.limitedrun.com/asset/themes/133807-20200504160914316478000/facades/28383-20200730161522599524000/default-f67fa009f52f9b411d31c5acde143594.js" type="text/javascript"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-148205485-13"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-148205485-13');
</script>
</head>
<body id="" class="loading initial-load">
<div id="timer"> <span><div id="countdown"></div></span>
<script type="text/javascript">
const queryString = window.location.search;
console.log(queryString);
const urlParams = new URLSearchParams(queryString);
var birthday = urlParams.get('birthday')
var time = urlParams.get('time')
var epoch = urlParams.get('epoch')
if (birthday == null && time == null){
if (epoch != null){
var countDownDate = epoch * 1000
} else {
alert("No parameters provided in the URL! Try again.")
}
} else {
var countDownDate = new Date(birthday + " " + time).getTime();;
}
// Update the count down every 1 second
var x = setInterval(function() {
// Get today's date and time
var now = new Date().getTime();
// Find the distance between now and the count down date
var distance = now - countDownDate;
// Time calculations for days, hours, minutes and seconds
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);
function seconds_2digits(seconds)
{
return (seconds < 10 ? '0' : '') +seconds;
}
function minutes_2digits(minutes)
{
return (minutes < 10 ? '0' : '') +minutes;
}
function hours_2digits(hours)
{
return (hours < 10 ? '0' : '') +hours;
}
function days_2digits(days)
{
return (days < 10 ? '0' : '') +days;
}
// Output the result in an element with id="demo"
document.getElementById("countdown").innerHTML = days_2digits(days) + ":" + hours_2digits(hours) + ":"
+ minutes_2digits(minutes) + ":" + seconds_2digits(seconds);
}, 1000);
</script>
</div>
<div class="toggleaudio" title="hehe. i don't know how to sync it lol. just keep pressing 'ON' until it sounds synced enough.">AUDIO: <a class="pointer" onclick="playAudio()">ON</a> - <a class="pointer" onclick="pauseAudio()">OFF</a>
</div>
<audio id="tick" loop>
<source src="tickingg.mp3" type="audio/mpeg">
</audio>
<script>
var x = document.getElementById("tick");
function playAudio() {
x.pause();
x.currentTime = 0;
x.play();
}
function pauseAudio() {
x.pause();
x.currentTime = 0;
}
</script>
<div><a onclick="toggleText()" class="timer-button" style="cursor: pointer;">TOGGLE TEXT</a>
</div>
<script>
function toggleText() {
var x = document.getElementById("mori");
if (x.style.opacity === "") {
x.style.transition= "opacity 0.5s ease-in-out";
x.style.opacity = "0";
} else if (x.style.opacity === "0") {
x.style.opacity = "1";
} else {
x.style.opacity = "0";
}
}
</script>
<a onclick="window.location='secret.html'+queryString;" id="mork">
<img src="mork.png" id="mork_img">
</a>
<footer class="flex-wrapper" id="mori" contenteditable="true" spellcheck="false">
<div>Time is ticking.</div>
<div>Make the most of it.</div>
</footer>
<!-- The following store.js script is required for every page. Do not remove it. -->
<script src="//static.getclicky.com/js" type="text/javascript"></script>
<script src="https://s5.limitedrun.com/assets/store-0ddf3114387a9f08dd6611d459892a8f711525bb3be856b056112073e170ddc0.js"></script>
<!-- /store.js -->
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
</body>
</html>