/
index.html
executable file
·167 lines (126 loc) · 3.61 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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Just the Gist</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<!-- font awesome -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<style>
body {
background-image:;
}
li {
cursor: pointer;
}
.container { /* at top of page */
max-width: 1000px;
margin: 0 auto;
}
/* Header styles */
header {
background-color: #1b5dce; /* blue banner at top */
top: 0;
left: 0;
right: 0;
text-align: center;
}
header h1 {
color: #FFF; /* white text at top */
padding: 10px 2%;
margin: 0;
display: inline-block;
}
.wrapper {
border: 1px solid #000;
display: inline-block;
}
input,
button {
background-color: transparent;
border-width: 1px;
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
outline: none; /* removes outline to last clicked button*/
background-color: blue; /* button is blue */
color: white; /* button text is white */
}
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
background-color: white; /* button is white on hover */
color: blue; /* button text is blue on hover */
}
button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
background-color: yellow; /* button is yellow on click */
}
.center {
text-align: center;
}
.blue-text {
color: blue;
}
.image-centered {
display: block;
margin-left: auto;
margin-right: auto;
height: 375px;
}
img { height: 375px; margin:1px; display: block; margin-left: auto; margin-right: auto;}
body { background-color: ; }
</style>
</head>
<body>
<!-- header section at top of page -->
<header>
<section class="container" class="center">
<h1 class="center">Just the Gist</h1>
</section>
</header>
<!-- text at the top of page -->
<h3 class="center">Who has time for nuance, complexity,
and information overload?
<br>Just give me the gist!</h3>
<br>
<!-- search bar and button -->
<form action="#" id="sub" class="center" method="POST" onsubmit="return false"> <!-- onsubmit="return false" makes form not get submitted -->
<div class="wrapper">
<input type="text" id="searchTerm" name="txt" placeholder="Search Term"/>
<input type="button" id="btnEnterSearchTerm" value="Go"/>
</div>
</form>
<br>
<!-- placeholder image here of information overload -->
<!-- image search results-->
<div id="results" class="image-centered">
<img class="image-centered" src="information-overload.jpg" alt="info overload" style="">
</div>
<!-- search results -->
<h3 class="center">You searched for:
<span class="topic center blue-text"></span>
</h3>
<!-- wikipedia search results-->
<h3 class="center">Wikipedia results:
<div id="output" class="blue-text" placeholder="Search Term">
<span>
One, Two, Three
<br/>Four, Five, Six
<br/>Seven, Eight, Nine
</span>
</div>
</h3>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-1.12.3.min.js"></script>
<!-- Firebase CDN -->
<script src="https://www.gstatic.com/firebasejs/live/3.0/firebase.js"></script>
<!-- js -->
<script src="justTheGist.js"></script>
</body>
</html>