forked from civictechindex/github-api-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (58 loc) · 3.95 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">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>GitHub Projects by Topic</title>
<script type="text/html" id="repo-tmpl">
<div class="repo card mb-4">
<div class="card-header">
<h2 class="card-title name"></h2>
<h6 class="card-subtitle text-muted updated">Updated <small></small></h6>
</div>
<div class="card-body">
<p class="card-text description"></p>
<p class="card-text text-muted"><strong>Languages:</strong> <em class="lang"></em></p>
<p class="card-text text-muted"><strong>Topics:</strong> <em class="topics"></em></p>
</div>
<div class="card-footer">
<a href="#" class="btn btn-primary btn-sm repo mr-1" target="_blank">Repository</a>
<a href="#" class="btn btn-primary btn-sm issues mr-1" target="_blank">Open Issues <span class="badge badge-light"></span></a>
<a href="#" class="btn btn-primary btn-sm homepage" target="_blank">Project Homepage</a>
</div>
</div>
</script>
</head>
<body>
<div class="container">
<h1 style="padding-bottom: 10px; border-bottom: solid 2px #ededed; margin-bottom: 0.5em;">GitHub Projects by Topic</h1>
<div class="form-inline mb-4">
<div class="form-group">
<label class="mr-2">Topic:</label>
<input type="text" id="topic" class="form-control mr-2" placeholder="e.g. hack-for-la">
<button type="button" id="search" class="btn btn-success mr-2">Search</button>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Brigades
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" data-q="code-for-boston" class="btn btn-info mr-2">code-for-boston</a>
<a class="dropdown-item" data-q="code-for-sf" class="btn btn-info mr-2">code-for-sf</a>
<a class="dropdown-item" data-q="hack-for-la" class="btn btn-info mr-2">hack-for-la</a>
<a class="dropdown-item" data-q="open-oakland" class="btn btn-info mr-2">open-oakland</a>
<a class="dropdown-item" data-q="open-san-diego" class="btn btn-info mr-2">open-san-diego</a>
</div>
</div>
 <button type="button" id="code-for-america" data-q="code-for-america" class="btn btn-info mr-2">code-for-america</button>
<button type="button" id="reset" class="btn btn-danger mr-2">Reset</button>
</div>
</div>
<div class="repos"></div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="index.js"></script>
</body>
</html>