From cb77f4f9db6447cde0fcd8373dd17d937c2cb42f Mon Sep 17 00:00:00 2001
From: Kody
- Enable it or select your time zone:
+ Please select your local time zone (or enable JavaScript):
Did you turn off Javascript?
@@ -174,7 +175,6 @@ if (isset($_POST['datetime']) && isset($_POST['timezone'])) {
@@ -195,7 +195,11 @@ if (isset($_POST['datetime']) && isset($_POST['timezone'])) {
document.querySelector('.local').innerHTML = localDT + '
(' + relative + ')'
// Display share button
- document.querySelector('.share').style.display = 'block'
+ const shareButton = document.createElement('button')
+ shareButton.type = 'button'
+ shareButton.textContent = 'Share'
+ shareButton.onclick = shareURL
+ document.querySelector('.share').appendChild(shareButton)
// Our share URL function
function shareURL () {
@@ -242,6 +246,10 @@ if (isset($_POST['datetime']) && isset($_POST['timezone'])) {