-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (51 loc) · 1.49 KB
/
index.html
File metadata and controls
54 lines (51 loc) · 1.49 KB
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<title>GitHub API</title>
<link rel="stylesheet" href="stylesheet.css" />
</head>
<body>
<div class="text">enter your GitHub credentials</div>
<input
class="username"
type="text"
name="yourusername"
placeholder="username"
/>
<input
class="password"
type="password"
name="password"
placeholder="password"
/>
<div class="text">enter a GitHub user</div>
<input
class="gitusername"
type="text"
name="gitusername"
placeholder="username"
/>
<button class="button" type="button" name="button">go</button>
<div class="results"></div>
<script id="repositories" type="text/x-handlebars-template">
<ul>
{{#repositories }}
<img class="avatar" src= {{ owner.avatar_url }}>
<div class="fullname">{{ full_name }}</div>
<div class="listall"></div>
{{/repositories }}
</ul>
</script>
<script id="commits" type="text/x-handlebars-template">
<ul>
{{#commits }}
<li>{{ commit.message }} ({{ sha }}) - {{ commit.author.name }}</li>
{{/commits }}
</ul>
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="script.js"></script>
</body>
</html>