forked from Grae-Drake/hg-units
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
86 lines (80 loc) · 3.27 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HG Units</title>
<meta name="description" content="Collection of units from Highgrounds">
<meta name="author" content="Grae Drake">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="http://fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/3.0.3/handlebars.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.min.js"></script>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<link rel="icon" type="image/png" href="favicon.png">
</head>
<body>
<div class="container">
<div class="row">
<h2 style="margin-top: 10%">Highgrounds Units</h2>
</div>
<aside class="buttons">
<button class="resource button-primary" data-resource-type="gold">Gold</button>
<button class="resource button-primary" data-resource-type="crystal">Crystal</button>
<button class="resource button-primary" data-resource-type="wood">Wood</button>
</aside>
<div class="units"></div>
<!-- Unit template -->
<script id="unit-card" type="text/x-handlebars-template">
<div class="unit">
<div class="unit-top row">
<div class="one-third column unit-sprite">
<img src="outline.png">
</div>
<div class="two-thirds column unit-top-text">
<p class="unit-name"> {{ toUpperCase name }} </p>
<p class="unit-types">
{{#each types }}
{{this}}
{{/each}}
</p>
<p class="unit-cost">
{{#if cost.gold }}
{{ cost.gold }} Gold
{{/if}}
{{#if cost.crystal}}
{{ cost.crystal }} Crystal
{{/if}}
{{#if cost.wood}}
{{ cost.wood }} Wood
{{/if}}
</p>
<p class="unit-rarity"> {{ rarity }} </p>
</div>
</div>
<div class="unit-bottom row">
<div class="unit-back-row six columns">
<p class="unit-row-title">Back Row</p>
{{#each homeActions}}
<p class="unit-action {{ this.type }} "> {{ this.value }} {{ toUpperCase this.type }} </p>
{{/each}}
</div>
<div class="unit-front-row six columns">
<p class="unit-row-title">Front Row</p>
{{#each battleActions}}
<p class="unit-action {{ this.type }} "> {{ this.value }} {{ toUpperCase this.type }} </p>
{{/each}}
</div>
</div>
</div>
</script>
<!-- End unit template -->
</div>
</div>
<footer>All images copyright 2012 Heart Shaped Games, all rights reserved. Now go play <a href="http://www.highgroundsgame.com">Highgrounds</a>.</footer>
<script type="text/javascript" src="xml-to-json.js"></script>
<script type="text/javascript" src="app.js"></script>
</body>
</html>