ADD FEATURE: UpdateInfoPage

sortierung
Samuel Zielke 1 year ago
parent dc076ed813
commit 2558b1d67a

@ -8,9 +8,9 @@ function setUpdateOk() {
} }
document.getElementById("allUpdateOk").addEventListener('click', function(){ document.getElementById("allUpdateOk").addEventListener('click', function(){
localStorage.setItem('UpdateInfoRead', "true"); localStorage.setItem('UpdateInfoRead', document.getElementById('versionnumber').value);
setUpdateOk(); setUpdateOk();
}) })
const UpdateInfoReadingState = localStorage.getItem('UpdateInfoRead'); const UpdateInfoReadingState = localStorage.getItem('UpdateInfoRead');
if (UpdateInfoReadingState === "true") {setUpdateOk();} if (UpdateInfoReadingState === document.getElementById('versionnumber').value) {setUpdateOk();}

@ -2,7 +2,7 @@
function setAllOk() { function setAllOk() {
document.getElementById('welcome_content').style.display = 'none'; document.getElementById('welcome_content').style.display = 'none';
if (localStorage.getItem('UpdateInfoRead')) { if (UpdateInfoReadingState === document.getElementById('versionnumber').value) {
document.getElementById('dashboard').classList.remove('d-none'); document.getElementById('dashboard').classList.remove('d-none');
document.getElementById('refresh_icon').classList.remove('d-none') document.getElementById('refresh_icon').classList.remove('d-none')
document.getElementById('settings_icon').classList.remove('d-none') document.getElementById('settings_icon').classList.remove('d-none')

@ -1,5 +1,6 @@
<br> <br>
<h1>Es gibt neues!</h1> <h1>Update Time!</h1>
<h5>v1.1.0</h5>
<p> <p>
Wie versproche geht es weiter! Wie versproche geht es weiter!
<br>Ja kleine Schritte, aber ich hoffe hilfreich 😀 <br>Ja kleine Schritte, aber ich hoffe hilfreich 😀
@ -16,4 +17,5 @@
<br><b>Samuel</b> <br><b>Samuel</b>
</p> </p>
<br> <br>
<input type="text" name="versionnumber" id="versionnumber" class="d-none" value="1.1.0">
Loading…
Cancel
Save

Powered by TurnKey Linux.