ADD FEATURE: UpdateInfoPage

sortierung
Samuel Zielke 1 year ago
parent 55f738064e
commit dc076ed813

@ -0,0 +1,16 @@
/* ALLES RUND UM DIE UPDATE INFO MELDUNG */
function setUpdateOk() {
document.getElementById('update_content').style.display = 'none';
document.getElementById('dashboard').classList.remove('d-none');
document.getElementById('refresh_icon').classList.remove('d-none')
document.getElementById('settings_icon').classList.remove('d-none')
}
document.getElementById("allUpdateOk").addEventListener('click', function(){
localStorage.setItem('UpdateInfoRead', "true");
setUpdateOk();
})
const UpdateInfoReadingState = localStorage.getItem('UpdateInfoRead');
if (UpdateInfoReadingState === "true") {setUpdateOk();}

@ -168,7 +168,7 @@ async function getActualDataAndFillView() {
// DATEN VON SETTINGS ABFRAGEN // DATEN VON SETTINGS ABFRAGEN
getAllEntries('settings') getAllEntries('settings')
.then(function(result) { .then(function(result) {
document.getElementById('studysinput').value = parseInt(result.find(element => element.SettingsID === 1).SettingsValue) document.getElementById('studysinput').value = (result.find(element => element.SettingsID === 1) == undefined) ? 0 : parseInt(result.find(element => element.SettingsID === 1).SettingsValue)
document.getElementById('MonthGoalInput').value = (result.find(element => element.SettingsID === 2) == undefined) ? 50 : parseInt(result.find(element => element.SettingsID === 2).SettingsValue) document.getElementById('MonthGoalInput').value = (result.find(element => element.SettingsID === 2) == undefined) ? 50 : parseInt(result.find(element => element.SettingsID === 2).SettingsValue)
MonthGoal = (result.find(element => element.SettingsID === 2) == undefined) ? 50 : parseInt(result.find(element => element.SettingsID === 2).SettingsValue) MonthGoal = (result.find(element => element.SettingsID === 2) == undefined) ? 50 : parseInt(result.find(element => element.SettingsID === 2).SettingsValue)
}); });

@ -2,9 +2,11 @@
function setAllOk() { function setAllOk() {
document.getElementById('welcome_content').style.display = 'none'; document.getElementById('welcome_content').style.display = 'none';
document.getElementById('dashboard').classList.remove('d-none'); if (localStorage.getItem('UpdateInfoRead')) {
document.getElementById('refresh_icon').classList.remove('d-none') document.getElementById('dashboard').classList.remove('d-none');
document.getElementById('settings_icon').classList.remove('d-none') document.getElementById('refresh_icon').classList.remove('d-none')
document.getElementById('settings_icon').classList.remove('d-none')
}
} }
document.getElementById("allOk").addEventListener('click', function(){ document.getElementById("allOk").addEventListener('click', function(){

@ -34,6 +34,13 @@
<button class="btn btn-primary" id="allOk">Alles klar</button> <button class="btn btn-primary" id="allOk">Alles klar</button>
</div> </div>
<div class="container mt-5" id="update_content">
{% include 'app/updateinfo.html' %}
<button class="btn btn-primary" id="allUpdateOk">Alles klar</button>
</div>
<div class="d-none" id="dashboard"> <div class="d-none" id="dashboard">
<div class="row justify-content-around mt-3" style="width: 100vw; color: black;"> <div class="row justify-content-around mt-3" style="width: 100vw; color: black;">
<div class="col-11" style="height: 5vh; padding: 1rem; border-radius:1rem; box-shadow: 0 0 0.5rem gray"> <div class="col-11" style="height: 5vh; padding: 1rem; border-radius:1rem; box-shadow: 0 0 0.5rem gray">
@ -277,4 +284,5 @@
<script src="{% static 'app/js/home.js' %}"></script> <script src="{% static 'app/js/home.js' %}"></script>
<script src="{% static 'app/js/timer.js' %}"></script> <script src="{% static 'app/js/timer.js' %}"></script>
<script src="{% static 'app/js/welcomeControl.js' %}"></script> <script src="{% static 'app/js/welcomeControl.js' %}"></script>
<script src="{% static 'app/js/UpdateInfoControl.js' %}"></script>
{% endblock %} {% endblock %}

@ -0,0 +1,19 @@
<br>
<h1>Es gibt neues!</h1>
<p>
Wie versproche geht es weiter!
<br>Ja kleine Schritte, aber ich hoffe hilfreich 😀
<br>
<br><b>Was ist neu?</b>
<br> 1. Die Einstellungen oben Rechts
<br> 2. Einstellugnen: Bibelstudien pflegen
<br> 3. Einstellungen: Eigenes Monatsziel
<br>
<br><b>Fehlerbehebung:</b>
<br> 1. Einträge nach Datum sortieren nicht nach Hinzufügen
<br>
<br>Viel Freude beim Testen und Gruß,
<br><b>Samuel</b>
</p>
<br>
Loading…
Cancel
Save

Powered by TurnKey Linux.