diff --git a/index.php b/index.php index 0ea0a83..d689d04 100644 --- a/index.php +++ b/index.php @@ -126,8 +126,7 @@ if (isset($_POST['datetime']) && isset($_POST['timezone'])) { echo ' ' . toTZ($dt, $_COOKIE['user-tz'], 'l \t\h\e jS \o\f F, Y \a\t ' . $hm) . PHP_EOL; } else if ($_COOKIE['has-js'] !== '1') { ?> - Sorry, we use JavaScript to detect your local time.
- 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'])) {

+