/
index.html
55 lines (42 loc) · 1.28 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
<html>
<head>
<meta charset="UTF-8">
<title>Github profiles</title>
<link href='public/design.css' rel='stylesheet'>
</head>
<body>
<form id='add_profile'>
<input id='username' placeholder='Enter a Github username' autocomplete='off'>
<button type='submit'>Load profile</button>
</form>
<div class='profile-container'>
<img src='public/spinner.gif' class='spinner'>
</div>
<div class='modal'>
<h2>User not found!</h2>
<p>Could not find that User :-(</p>
<a class="close" href="#">✖</a>
</div>
<template id='profile-template'>
<div class="profile">
<div class="left">
<img src="{{ avatar_url }}">
</div>
<div class="right">
<h3>
<a href="{{ html_url }}">
{{ login }}
</a>
</h3>
<h4>Repos: {{ public_repos }}</h4>
<h4>Followers: {{ followers }}</h4>
</div>
<a class="close" href="#">✖</a>
<br clear="all">
</div>
</template>
<script src='https://code.jquery.com/jquery-2.1.1.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/mustache.js/0.8.1/mustache.min.js'></script>
<script src='public/app.js'></script>
</body>
</html>