-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (65 loc) · 2.65 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
<!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="stylesheet" href="style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/2.0.3/showdown.min.js" integrity="sha512-vx8rJNrYIZPDr290AV2tL04x0CKjLHSnTXrHMeb1kqbhfGwBnclPDOWIWxRiVS6Oe1oGzk5MzNz/eLzVku30kg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="index.js" defer type="module"></script>
<!-- <link rel="stylesheet" href="https://unpkg.com/open-props"/> -->
<link rel="stylesheet" href="https://unpkg.com/open-props/normalize.min.css"/>
<title>Reddit</title>
</head>
<body>
<nav class="navbar navbar-dark bg-primary mb-3">
<div class="container">
<span class="navbar-brand">Reddit</span>
</div>
</nav>
<div id="search-container" class="container">
<div id="search" class="card card-body bg-light mb-2">
<h4>Search Subreddit</h4>
<form id="search-form">
<div class="form-group">
<input type="text" id="search-input" class="form-control mb-3" placeholder="Enter subreddit name here...">
</div>
<div class="form-check form-check-inline">
Sort By:
<input class="form-check-input ml-2" type="radio" name="sortby" value="hot" checked>
<label class="form-check-label">
Hot
</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">
New
</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="sortby" value="top">
<label class="form-check-label">
Top
</label>
</div>
<h5 class="mt-2">Limit: </h5>
<div class="form-group">
<select name="limit" id="limit" class="form-control">
<option value="1">1</option>
<option value="5" selected>5</option>
<option value="10">10</option>
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
</div>
<button type="submit" class="btn btn-dark btn-block mt-4">Search</button>
</form>
</div>
<div id="results"></div>
<button class="btn btn-dark mt-4 hidden" data-load>Load more</button>
</div>
</body>
</html>