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(){
localStorage.setItem('UpdateInfoRead', "true");
localStorage.setItem('UpdateInfoRead', document.getElementById('versionnumber').value);
setUpdateOk();
})
const UpdateInfoReadingState = localStorage.getItem('UpdateInfoRead');
if (UpdateInfoReadingState === "true") {setUpdateOk();}
if (UpdateInfoReadingState === document.getElementById('versionnumber').value) {setUpdateOk();}

@ -2,7 +2,7 @@
function setAllOk() {
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('refresh_icon').classList.remove('d-none')
document.getElementById('settings_icon').classList.remove('d-none')

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

Powered by TurnKey Linux.