summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortinfoil-hat.net <mail@tinfoil-hat.net>2023-04-03 13:40:13 +0200
committertinfoil-hat.net <mail@tinfoil-hat.net>2023-04-03 13:40:13 +0200
commitafc08d31b5be59061a5bfd8ee767ccbd3cbb68d8 (patch)
tree275ddff06e43f447350565f296b02bcf14f4827d
parente4c5767ae3a701b9cb1ba6958f2113cb2c3d2ec1 (diff)
downloadtinfoil-hat.net-afc08d31b5be59061a5bfd8ee767ccbd3cbb68d8.tar.gz
tinfoil-hat.net-afc08d31b5be59061a5bfd8ee767ccbd3cbb68d8.tar.bz2
tinfoil-hat.net-afc08d31b5be59061a5bfd8ee767ccbd3cbb68d8.zip
added website timer
-rw-r--r--index.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/index.html b/index.html
index 44a9430..fbc164e 100644
--- a/index.html
+++ b/index.html
@@ -48,6 +48,30 @@
</p><div class="adr">
<b>Location:</b> <a class="locality" style="color:#fff">Brandenburg</a> / <span class="country-name">Germany</span>
</div>
+
+
+ <br>
+ <br>
+
+ <script type="application/javascript">
+ countDownDate = new Date("2021-03-25");
+ var x = setInterval(function() {
+ var now = new Date().getTime();
+ var distance = now - countDownDate.getTime();
+ var years = Math.floor(distance / (365 * 1000 * 60 * 60 * 24));
+ var days = Math.floor(distance / (1000 * 60 * 60 * 24) - (years > 0 ? 365 * years : 0));
+ 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);
+ document.getElementById("demo").innerHTML = (years > 0 ? years + "y " : '') + days + "d " + hours + "h " + minutes + "m " + seconds + "s ";
+ }, 1000);
+ </script>
+ <footer class="footer">
+ <span>
+ Blog is running for </br> <tag id="demo"></tag><br>
+ <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank" rel="noopener">CC BY-NC-SA 4.0</a>
+ </span>
+
<a class="email" href="mailto:mail@tinfoil-hat.net"><br>
<br>
</td>