-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
306 lines (282 loc) · 9.75 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<html>
<head>
<title>🤖 🆒 Domoticz custom icon generator</title>
<meta
name="description"
content="🤖 🆒 Domoticz custom icon generator, help people to generate custom icon, resize image, crop and generate zip folder for domoticz"
/>
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="css/ng-img-crop.css" />
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/angular-toastr.css" />
<link
href="https://fonts.googleapis.com/css?family=Varela+Round"
rel="stylesheet"
/>
<link
rel="stylesheet"
type="text/css"
href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css"
/>
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-68SZWWGX71"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-68SZWWGX71");
</script>
<link rel="stylesheet" type="text/css" href="css/app.css" />
<script type="text/javascript" src="lib/angular.min.js"></script>
<script type="text/javascript" src="lib/angular-animate.js"></script>
<script type="text/javascript" src="lib/angular-translate.min.js"></script>
<script type="text/javascript" src="lib/angular-toastr.tpls.js"></script>
<script type="text/javascript" src="lib/base64.js"></script>
<script type="text/javascript" src="lib/canvas2image.min.js"></script>
<script type="text/javascript" src="lib/html2canvas.js"></script>
<script type="text/javascript" src="lib/FileSaver.js"></script>
<script type="text/javascript" src="lib/jszip.min.js"></script>
<script src="js/ng-img-crop.js"></script>
<script src="js/translate.config.js"></script>
<script src="js/app.controller.js"></script>
</head>
<body ng-app="app" ng-controller="generatorController as gen">
<header>
<a href="/">
<img
class="logo"
src="img/domoticz-150x150.png"
alt=""
style="border-radius: 50%"
/>
</a>
<h1>Domoticz <span>Custom icon generator</span></h1>
<div class="settings">
<a href="#" ng-click="gen.changeLanguage('en')"
><img
class="flag"
src="img/united_states-national-world.svg"
alt="fr flag"
/></a>
<a href="#" ng-click="gen.changeLanguage('fr')"
><img class="flag" src="img/france-national-world.svg" alt="en flag"
/></a>
</div>
</header>
<div class="container">
<div class="row">
<div class="col-sm-12 description" translate="DESCRIPTION">
🤖 🆒 Domoticz custom icon generator, help people to generate custom
icon, resize image, crop image 🔪, and generate zip folder 📦 to have
amazing 🎉 icons in Domoticz app. If you want to contribute to this
project:
<a
target="_blank"
href="https://github.com/AurelienLoyer/domoticz_custom_icon_generator"
>Github 🐙</a
>
or contact me on
<a target="_blank" href="https://twitter.com/AurelienLoyer"
>Twitter 🐦</a
>
<br /><br />
Enjoy 🤩
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-12">
<h2><em>1.</em> {{'ICONE_NAME' | translate}}</h2>
<input type="text" name="name" ng-model="gen.iconName" />
</div>
<div class="col-sm-6">
<h2><em>2.1</em> {{'BUTTON_ON' | translate}}</h2>
<div>
{{'SELECT_IMAGE' | translate}}:
<input type="file" id="fileInputOn" />
</div>
<div class="cropArea">
<img-crop
image="gen.myImageOn"
result-image="gen.myCroppedImageOn"
></img-crop>
</div>
</div>
<div class="col-sm-6">
<h2><em>2.2</em> {{'BUTTON_OFF' | translate}}</h2>
<div>
{{'SELECT_IMAGE' | translate}}:
<input type="file" id="fileInputOff" />
</div>
<div class="cropArea">
<img-crop
image="gen.myImageOff"
result-image="gen.myCroppedImageOff"
></img-crop>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6 preview_bloc">
<h2>{{'PREVIEW_BUTTON_ON' | translate}}</h2>
<div class="result_On">
<div class="title">{{gen.iconName}} On</div>
<div class="image" id="imageOnU">
<div
style="border-radius:{{gen.radiusValue*48/100}}px;{{gen.border}}"
class=""
>
<img ng-src="{{gen.myCroppedImageOn}}" alt="" />
</div>
</div>
</div>
</div>
<div class="col-sm-6 preview_bloc">
<h2>{{'PREVIEW_BUTTON_OFF' | translate}}</h2>
<div class="result_Off">
<div class="title">{{gen.iconName}} Off</div>
<div class="image" id="imageOffU">
<div
style="border-radius:{{gen.radiusValue*48/100}}px;{{gen.border}}"
class=""
>
<img ng-src="{{gen.myCroppedImageOff}}" alt="" />
</div>
</div>
</div>
</div>
<div class="col-sm-12">
<h2>
<em>3.</em> <span translate="IMAGE_SETTINGS">Image settings</span>
</h2>
<p translate="WORK_IN_PROGRESS">
Work in progress (Border radius,Border...)
</p>
<div class="row" ng-if="0">
<div class="col-sm-6">
<h3>Bord arrondi</h3>
<input
type="checkbox"
name="name"
ng-model="gen.activeRadius"
ng-change="gen.radiusChange()"
id="activeRadius"
/>
<label for="activeRadius"
>Bord arrondi de {{gen.radiusValue}}%</label
><br />
<input
type="range"
min="0"
max="50"
step="5"
ng-show="gen.activeRadius"
ng-model="gen.radiusValue"
/>
</div>
<div class="col-sm-6">
<h3>Contour de l'image</h3>
<input
type="checkbox"
name="name"
ng-model="gen.activeBorder"
ng-change="gen.borderChange()"
id="activeBorder"
/>
<label for="activeBorder"
>Bordure
<input
type="color"
name="favcolor"
value="{{gen.borderColor}}"
ng-model="gen.borderColor"
ng-change="gen.borderChange()"
/>
de {{gen.borderSize}}px</label
><br />
<input
type="range"
min="0"
max="10"
step="1"
ng-show="gen.activeBorder"
ng-change="gen.borderChange()"
ng-model="gen.borderSize"
/>
{{gen.border}}
</div>
</div>
</div>
<div class="col-sm-12">
<h2><em>4.</em> <span translate="FINISH">To finish</span></h2>
<button
ng-click="gen.zip()"
type="button"
class="btn btn-success"
translate="GENERATE_ZIP"
>
Generate zip
</button>
</div>
<div class="col-sm-12" ng-if="gen.local">
<h2><em>5.</em> <span translate="CANVAS">Canvas demo</span></h2>
<div id="zonetest"></div>
</div>
</div>
</div>
<footer>
<div class="icons">
<a target="_blank" href="https://twitter.com/AurelienLoyer">
<i class="fa fa-twitter-square" aria-hidden="true"></i>
</a>
<a target="_blank" href="https://github.com/AurelienLoyer">
<i class="fa fa-github-square" aria-hidden="true"></i>
</a>
<a target="_blank" href="http://aurelien-loyer.fr">
<i class="fa fa-envelope-square" aria-hidden="true"></i>
</a>
</div>
<div id="donate-button-container">
<div id="donate-button"></div>
<script
src="https://www.paypalobjects.com/donate/sdk/donate-sdk.js"
charset="UTF-8"
></script>
<style>
#donate-button {
height: 35px;
margin-bottom: 40px;
}
</style>
<script>
PayPal.Donation.Button({
env: "production",
hosted_button_id: "A5VMQUSMX2L5S",
image: {
src: "https://pics.paypal.com/00/s/MjU1ZDFiOGQtMzcwNC00Yzg4LWJlOGMtYWU2MWQzN2RjODIx/file.PNG",
alt: "Bouton Faites un don avec PayPal",
title: "PayPal - The safer, easier way to pay online!",
},
}).render("#donate-button");
</script>
</div>
</footer>
<div class="footer-fix">
<div class="copyright">
<i class="fa fa-code" aria-hidden="true" title="code"></i> with
<i class="fa fa-heart" title="love" aria-hidden="true"></i> by
<a target="_blank" href="https://twitter.com/AurelienLoyer"
>Aurélien Loyer</a
>
</div>
</div>
<!-- Place this tag in your head or just before your close body tag. -->
<!-- <script async defer src="https://buttons.github.io/buttons.js"></script> -->
</body>
</html>