-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
62 lines (60 loc) · 2.56 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
<!DOCTYPE html>
<html lang='en-us'>
<head>
<meta charset="utf-8">
<title>Search NYT</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<div class="jumbotron text-center" id="page-header">
<span class="glyphicon glyphicon-modal-window"></span> New York Times Search
</div>
<div class="row">
<div class="col-sm-12">
<div class="panel panel-primary" id="searchdiv">
<div class="panel-heading"><span class="glyphicon glyphicon-th-list"></span> Search Parameters</div>
<div class="panel-body">
<form>
<div class="form-group">
<label for="search-term">Search Term:</label>
<input type="text" class="form-control myclass" id="search-term">
</div>
<div class="form-group">
<label for="num-results">Number of Records to Retrieve:</label>
<select class="form-control myclass" id="num-results">
<option value="1">1</option>
<option value="5">5</option>
<option value="10">10</option>
</select>
</div>
<div class="form-group">
<label for="start-year">Start Year (Optional):</label>
<input type="text" class="form-control myclass" id="start-year">
</div>
<div class="form-group">
<label for="end-year">End Year (Optional):</label>
<input type="text" class="form-control myclass" id="end-year">
</div>
<button class="btn btn-default" type="submit" id="search-btn"><span class="glyphicon glyphicon-search"></span> Search</button>
<button class="btn btn-default" type="submit" id="clear"><span class="glyphicon glyphicon-trash"></span> Clear Results</button>
<form>
</div>
</div>
</div>
<div class="col-sm-12">
<div class="panel panel-primary" id="results-div">
<div class="panel-heading"><span class="glyphicon glyphicon-equalizer"></span> Top Results</div>
<div class="panel-body">
<div id="results">
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="search.js"></script>
</body>
</html>