-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
100 lines (99 loc) · 3.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./styles.css" />
<title>Search Reddit</title>
</head>
<body>
<nav class="navbar">
<div class="container">
<span class="navbar-brand">
<a href="" class="link"
><img src="svg/iconmonstr-reddit-4.svg" alt="logo" class="nav-logo"
/></a>
<p>
<span class="reddit-link"
><a href="" class="link">Redsearch</a></span
>
</p>
</span>
<a
href="https://github.com/KindredSM/reddit-search"
class="link"
target="_blank"
>
<img src="svg/github.svg" alt="logo" class="nav-logo nav-github"
/></a>
</div>
</nav>
<div id="search-container" class="container">
<div id="search" class="card card-body mb-2">
<h4>
Search
<a href="https://www.reddit.com/" class="link" target="_blank"
>Reddit</a
>
</h4>
<form id="search-form">
<div class="form-group">
<input
type="text"
id="search-input"
class="form-control mb-3"
placeholder="Search..."
autocomplete="off"
/>
</div>
<div class="form-check form-check-inline">
<input
class="form-check-input ml-2"
type="radio"
name="sortby"
value="relevance"
checked
/>
<label class="form-check-label"> Relevance </label>
</div>
<div class="form-check form-check-inline">
<input
class="form-check-input"
type="radio"
name="sortby"
value="new"
/>
<label class="form-check-label"> Latest </label>
</div>
<h5 class="mt-2">Number of posts:</h5>
<div class="form-group">
<select name="limit" id="limit" class="form-control">
<option value="5">5</option>
<option value="10">10</option>
<option value="25">25</option>
<option value="50">50</option>
<option value="100" selected>100</option>
</select>
</div>
<button type="submit" class="btn btn-danger btn-block mt-4">
<p id="search-text">Search</p>
<div id="loader"></div>
</button>
</form>
</div>
<div id="results"></div>
</div>
<script src="./index.js" type="module"></script>
</body>
</html>