diff --git a/img/icon.png b/img/icon.png index b91a577..e5e51f8 100644 Binary files a/img/icon.png and b/img/icon.png differ diff --git a/js/main.js b/js/main.js index 45bb67c..4f96825 100644 --- a/js/main.js +++ b/js/main.js @@ -34,5 +34,5 @@ function checkFirstTime(){ } else { document.getElementById("result").innerHTML = "Sorry, your browser does not support Web Storage..."; } - } +} setInterval(getClockTime, 0); diff --git a/js/set-up.js b/js/set-up.js index 2acf339..903fc76 100644 --- a/js/set-up.js +++ b/js/set-up.js @@ -1,6 +1,7 @@ var elementIsClicked = false; var inputSelectedLang = document.getElementById("selectedLang"); var selectedLang = -1; +checkFirstTime() inputSelectedLang.disabled = true; @@ -58,5 +59,16 @@ function clickConfirmLang() { location.href = "index.html"; } } + +function checkFirstTime(){ + if (typeof(Storage) !== "undefined") { + if (localStorage.getItem("username") === null) { + document.title = "New Tab - First set up"; + document.getElementById("htitle").textContent = "First set up" + } + } else { + document.getElementById("result").innerHTML = "Sorry, your browser does not support Web Storage..."; + } +} var element = document.getElementById("confirmLang"); element.addEventListener("click", clickConfirmLang); \ No newline at end of file diff --git a/name.html b/name.html index 8f66a15..a0e8c5c 100644 --- a/name.html +++ b/name.html @@ -4,12 +4,13 @@ - New Tab- First set up + + New Tab - Reconfig -

First set up

+

Reconfig

Confirm