-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
48 lines (39 loc) · 1.08 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
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
{{html_head}}
<body>
<script type='text/javascript'>
function search() {
// Declare variables
var input, filter, ul, li, a, i;
input = document.getElementById('searchbox');
filter = input.value.toUpperCase();
cards = document.getElementsByClassName('card');
// Loop through all items, and hide those who don't match the search query
for (i = 0; i < cards.length; i++) {
b = cards[i].getElementsByTagName("b")[0];
italics = cards[i].getElementsByTagName("i")[0];
if (b.innerHTML.toUpperCase().indexOf(filter) > -1 || italics.innerHTML.toUpperCase().indexOf(filter) > -1) {
cards[i].style.display = "";
} else {
cards[i].style.display = "none";
}
}
}
</script>
{{html_header}}
<div id="index_intro_text">
View, edit, compile and run ROS example code in your browser for free.</br>
</div>
<div id="searchbox_div">
<input type="text" id="searchbox" onkeyup="search()" placeholder="Search for examples here...">
</div>
</br>
<hr>
{{example_list}}
<br>
<br>
<br>
{{html_footer}}
</body>
</html>