forked from healthIMIS/sormas-issuetracker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
40 lines (40 loc) · 1.32 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<title>SORMAS Issuetracker</title>
</head>
<body onload="fetchData()">
<input type="text" id="searchbar" name="searchbar" placeholder="Funktion suchen..." value="" onkeyup="filterList()"><br><br>
<div id="maincontents" style="display: none;"></div>
<div id="currentVersion"></div>
<img id="loadingicon" src="loadinggif.gif" alt="Loading...">
<!--
<div style="display: block; margin: 0 auto; width: 130px;">
<button onclick="fetchData()">Update Data</button>
</div>
-->
</body>
</html>
<script src="DataFetcher.js">
</script>
<script>
function filterList()
{
let input=document.getElementById('searchbar').value;
input = input.toLowerCase();
let features = document.getElementsByClassName('feature')
for(let i = 0; i < features.length; i++)
{
if(features[i].getElementsByClassName('titlespan')[0].innerHTML.toLowerCase().includes(input) || features[i].getElementsByClassName('featurecontent')[0].innerHTML.toLowerCase().includes(input))
{
features[i].style.display="block";
}
else
{
features[i].style.display="none";
}
}
}
</script>