forked from mecaputy/NYT-Search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (74 loc) · 3.46 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>New York Times Search</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB"
crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"
crossorigin="anonymous">
<link rel="stylesheet" type="text/css" media="screen" href="./assets/css/reset.css" />
<link rel="stylesheet" type="text/css" media="screen" href="./assets/css/style.css" />
</head>
<body>
<!-- Input form -->
<div class="container">
<div class="jumbotron">
<div class="container">
<h1 class="display-4">The New York Times</h1>
<h3>Article Search</h3>
</div>
</div>
<form class="form">
<div class="card-header">Search Parameters</div>
<div class="form-group">
<label>Search Term: </label>
<input type="search" class="form-control" id="searchTerm">
</div>
<div class="form-group">
<label>Number of Records to Retrieve: </label>
<select class="form-control" id="recordNum" active>
<option>1</option>
<option selected="selected">5</option>
<option>10</option>
</select>
</div>
<div class="form-group">
<label>Start Year (Optional):</label>
<input type="text" class="form-control" id="startYear" rows="3" minlength="4" maxlength="4">
</textarea>
</div>
<div class="form-group">
<label>End Year (Optional):</label>
<input type="text" class="form-control" id="endYear" rows="3" minlength="4" maxlength="4">
</textarea>
</div>
<button type="button" id="searchBtn" class="btn blueBg">
<i class="fas fa-search"></i> Search</button>
<button type="button" id="clearBtn" class="btn btn-secondary">
<i class="fas fa-trash-alt"></i> Clear Results</button>
</form>
<div class="form topArticles">
<div class="card-header">
Top Articles
</div>
<div class="card-body">
<blockquote class="blockquote mb-0">
<p></p>
<div class="results"></div>
</blockquote>
</div>
</div>
</div>
<!-- Bootstrap -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T"
crossorigin="anonymous"></script>
<script src="./assets/javascript/main.js"></script>
</body>
</html>