refactoring
This commit is contained in:
+7
-5
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user