-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
142 lines (118 loc) · 3.97 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<!--- Basic Page Needs
================================================== -->
<meta charset="utf-8" />
<title>HomeTrap :: Wanted Poster</title>
<meta name="description" content="HomeTrap wanted poster" />
<meta name="keywords" content="wanted poster" />
<meta name="author" content="jraleman" />
<!-- Mobile Specific Metas
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<!-- Favicon
================================================== -->
<link rel="shortcut icon" href="images/favicon.png" />
<!-- CSS Files
================================================== -->
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/jquery-ui.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/styles.css">
</head>
<body onload="checkEdits()">
<!-- Wanted Poster
=========================================================================-->
<div id="content" class="wanted-paper">
<h1>AVIS DE RECHERCHE</h1>
<!-- Player Name -->
<h2>
<div id="playerName" class="edit" contenteditable="true" max="20">
[Entre un nom]
</div>
</h2>
<hr />
<!-- Player Photo -->
<div title="Click here or use the button below to upload a photo"
onclick="document.getElementById('btnPhoto').click()">
<canvas id="canvasImage"></canvas>
</div>
<!-- Reward Points -->
<h2>
Récompense (pièces d'or)
<div id="rewardPoints" class="edit" contenteditable="true" max="4">
[Entrez le montant]
</div>
</h2>
<hr />
<!-- Wanted Description -->
<p>
Recherché pour:
<div id="wantedDescription" class="edit" contenteditable="true" max="50">
[Décrice ici]
</div>
</p>
<hr />
<!-- Special Ability -->
<p>
Talent particulier:
<div id="specialAbility" class="edit" contenteditable="true" max="50">
[Décrire ici]
</div>
</p>
<hr />
<!-- Secret Weapon -->
<p>
Arme secrète:
<div id="secretWeapon" class="edit" contenteditable="true" max="50">
[Décrire ici]
</div>
</p>
<hr />
<br />
</div>
<!-- Options
=========================================================================-->
<div class="options">
<h1>Options</h1>
<hr />
<!-- Photo upload -->
<button type="button" id="btnPhoto" name="btn-photo">
<i class="fa fa-upload" aria-hidden="true"></i> Upload a Photo
</button>
<input id="uploadImage" type="file" />
<br />
<!-- Randomize Description -->
<button type="button" name="btn-text" onclick="generateDescription();">
<i class="fa fa-pencil-square-o" aria-hidden="true"></i> Randomize Data!
</button>
<br />
<!-- Download Poster -->
<button type="button" name="btn-pdf"
onclick="return xepOnline.Formatter.Format('content',
{render:'download', filename:'wanted'});">
<i class="fa fa-file-pdf-o" aria-hidden="true"></i> Download Poster as PDF
</button>
<br />
<hr />
<!-- Save Data -->
<button type="button" name="btn-save" onclick="saveEdits();">
<i class="fa fa-floppy-o" aria-hidden="true"></i> Save Data
</button>
<br />
<!-- Clear Data -->
<button type="button" name="btn-clr" onclick="localStorage.clear();
location.reload();">
<i class="fa fa-eraser" aria-hidden="true"></i> Clear Data
</button>
<br />
</div>
<!-- JavaScript Files
================================================== -->
<script src="js/jquery-2.2.4.min.js" charset="utf-8"></script>
<script src="js/jquery-ui.min.js" charset="utf-8"></script>
<script src="js/xepOnline.jqPlugin.js" charset="utf-8"></script>
<script src="js/scripts.js" charset="utf-8"></script>
</body>
</html>