refactoring

This commit is contained in:
schrom01
2023-02-14 12:42:31 +01:00
parent 5e0793c7fc
commit 403099ebd6
2 changed files with 32 additions and 28 deletions
+7 -5
View File
@@ -1,8 +1,9 @@
<html>
<html lang="de">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/custom.css">
<link rel="stylesheet" href="css/bootstrap.css">
<title>Genderwatch-protocol</title>
</head>
<body>
@@ -122,13 +123,14 @@
closedTopics = []
}
watches = JSON.parse(localStorage.getItem("watches"))
if(!watches){
actualTopic = JSON.parse(localStorage.getItem("actualTopic"))
if(!actualTopic) {
actualTopic = {}
reset()
}
document.getElementById("topicInput").value = actualTopic.name
document.getElementById("topicInput").value = localStorage.getItem("actualTopic")
document.getElementById("topicInput").addEventListener('keyup', saveActualTopicToLocalStorage);
document.getElementById("topicInput").addEventListener('keyup', saveActualTopicName);
refreshClosedTopics()
setInterval(() => {
refreshWatch(0)