forked from Elevationacademy/userPage-API-Project-Student
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (71 loc) · 2.99 KB
/
index.html
File metadata and controls
74 lines (71 loc) · 2.99 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>API Project</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Indie+Flower" rel="stylesheet">
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
</head>
<body>
<div class="container">
<div class="buttons">
<button onclick=loadData()>Load User Data</button>
<button onclick=renderData()>Display User</button>
</div>
<div class="user-container"></div>
<div class="quote-container"></div>
<div class="content-container">
<div class="pokemon-container"></div>
<div class="meat-container"></div>
</div>
<div class="friends">
<h4>Friends</h4>
<div class="friends-container">
</div>
</div>
</div>
<!-- ------------------------------- -->
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.4/handlebars.js"></script>
<script id="user-template" type="text/x-handlebars-template">
<div id = "profile-pic" style = "background-image: url({{picture.medium}})"></div>
<div class="user-info">
<div>{{toProperCase name.first}} {{toProperCase name.last}}</div>
<div>{{toProperCase location.city}}, {{toProperCase location.state}}</div>
</div>
</script>
<!-- ----------------------------------------------------->
<script id="user-friends-template" type="text/x-handlebars-template">
<ul class="user-friends">
{{#each friends}}
<li>{{toProperCase this.name.first}} {{toProperCase this.name.last}}</li> <br>
{{/each}}
</ul>
</script>
<!-- ---------------------------------------------------- -->
<script id="pokemon-template" type="text/x-handlebars-template">
<span id = "pokemon-image" style = "background-image: url({{sprites.front_default}})"></span>
<span id= "pokemon-text">Favorite Pokemon: {{toProperCase name}}</span>
</script>
<!-- ------------------------------------------------------ -->
<script id="meat-template" type="text/x-handlebars-template">
<div class="meat-text">
<p>About me:</p>
{{text}}
</div>
</script>
<!-- ------------------------------------------------------ -->
<script id="quote-template" type="text/x-handlebars-template">
<p>Favorite quote:</p>
<span><i>"{{quote}}"</i> <br>
- {{author}}</span>
</script>
<!-- ------------------------------------------------------ -->
<script src="Renderer.js"></script>
<script src="APIManager.js"></script>
<script src="main.js"></script>
</body>
</html>