diff --git a/index.php b/index.php index a9967c8..550e008 100644 --- a/index.php +++ b/index.php @@ -39,6 +39,8 @@ if (array_key_exists("submitted", $_REQUEST)) { $sentences = fopen("./data/sentences.txt", "a") or die("unable to open sentences file"); $content = "\n"; + var relative_time = getTimeSinceLast(); + var days = Math.floor(relative_time/(3600*24)); + var hours = Math.floor(relative_time/(3600))%24; + var minutes = Math.floor(relative_time/(60))%60; + loginArea.innerHTML += "Schon seit " + days + " Tagen, " + hours + " Stunden und " + minutes + " Minuten!"; } window.onfocus = resetUnread;