-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
88 lines (77 loc) · 2.64 KB
/
index.html
File metadata and controls
88 lines (77 loc) · 2.64 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Atlas</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
</head>
<body>
<img src="content/ui/Search.png" id="OptionsButton">
<div id="leftBar">
<h1>Search</h1>
<div id="SearchSelectors">
<h2>Text Search:</h2>
<input class="field" id="searchtextfield" type="text" placeholder="Search...">
<br>
<h2>Programming Language:</h2>
<select class="field" id="searchlanguagefield"></select>
<br>
<script>
// dynamically generate language options from JSON
var ajaxResponse;
$.getJSON("content/json/languageOptions.json", function(result){
var options = [];
$.each(result.languageArray, function(index, value){
options.push("<option value='" + value.tag + "'>");
if (value.hasOwnProperty("label")) {
options.push(value.label);
}
else {
options.push(value.tag);
}
options.push("</option>");
});
$("#searchlanguagefield").html( options.join("") );
});
</script>
<h2>Tags:</h2>
<select class="field" id="searchtagfield"></select>
<br>
<script>
// dynamically generate search tags from JSON
var ajaxResponse;
$.getJSON("content/json/searchTags.json", function(result){
var options = [];
$.each(result.tagArray, function(index, value) {
options.push("<option value='" + value.tag + "'>");
if (value.hasOwnProperty("label")) {
options.push(value.label);
}
else {
options.push(value.tag);
}
options.push("</option>");
});
$("#searchtagfield").html( options.join("") );
});
</script>
<input id="searchbutton" type="button" value="Search">
</div>
<div>
<h2>Results:</h2>
<ul id="searchresultsUnlocked">
</ul>
<ul id="searchresultsLocked">
</ul>
<ul id="searchresultsCompleted">
</ul>
</div>
</div>
<canvas id="middleBar">The browser you are using does not support modern web functionality</canvas>
<div id="rightBar"></div>
<script src="bundle.js"></script>
</body>
</html>