-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
482 lines (443 loc) · 21.3 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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Background image previewer – built by Sitback</title>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-1735300-5', 'auto');
ga('send', 'pageview');
</script>
<link rel="apple-touch-icon" sizes="180x180" href="./img/apple-touch-icon.png">
<link rel="icon" type="image/png" href="./img/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="./img/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="./manifest.json">
<link rel="mask-icon" href="./img/safari-pinned-tab.svg" color="#d6252f">
<meta name="theme-color" content="#D6252F">
<script src="https://use.fontawesome.com/30f3ebe5d2.js"></script>
<link rel="stylesheet" href="./css/app.css">
</head>
<body>
<header class="sitback-header navbar">
<div class="row between-xs middle-xs bottom-md">
<div class="col-xs-9 col-sm">
<div class="logo-wrap">
<a href="/" class="logo">
<h3 class="logo-title text-regular flex-grid-item stretch">
Image previewer<sup class="beta">[beta]</sup> by <span class="logotype"><span
class="highlight">Sitback</span></span>
</h3>
</a>
</div>
</div>
<nav class="col-xs-3 col-sm-10 col-md-8 end-xs">
<div class="hamburger ">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<div class="hidden-xs-only hidden-sm">
<ul class="primary-nav row middle-md end-md">
<li>
Start <i class="fa fa-arrow-right"><span class="sr-only">by selecting some devices</span></i>
</li>
<li>
<a rel="device-trigger" class="start-button button small primary outline" data-device="iphone"
title="Show iPhone 6">
<span class="button-label">iPhone 6</span>
<span class="fa fa-fw fa-icon" aria-hidden="true"></span>
</a>
</li>
<li>
<a rel="device-trigger" class="start-button button small primary outline" data-device="s7"
title="Show Samsung Galaxy S7">
<span class="button-label">Galaxy S7</span>
<span class="fa fa-fw fa-icon" aria-hidden="true"></span>
</a>
</li>
<li>
<a rel="device-trigger" class="start-button button small primary outline" data-device="ipad"
title="Show iPad">
<span class="button-label">iPad</span>
<span class="fa fa-fw fa-icon" aria-hidden="true"></span>
</a>
</li>
<li>
<a rel="device-trigger" class="start-button button small primary outline" data-device="desktop"
title="Show Small Desktop">
<span class="button-label">Desktop</span>
<span class="fa fa-fw fa-icon" aria-hidden="true"></span>
</a>
</li>
<li>
<a rel="device-trigger" class="start-button button small primary outline" data-device="hdtv"
title="Show HDTV">
<span class="button-label">HDTV</span>
<span class="fa fa-fw fa-icon" aria-hidden="true"></span>
</a>
</li>
<li>
<a rel="device-trigger" class="start-button button small primary outline" data-device="custom"
title="Show Custom">
<span class="button-label">Custom</span>
<span class="fa fa-fw fa-icon" aria-hidden="true"></span>
</a>
</li>
</ul>
</div>
</nav>
</div>
</header>
<!-- Sitback header -->
<div class="content-wrapper flex-grid-item">
<div class="panel large">
<div class="container">
<h2 class="text-center medium">
Hate dealing with background images?
</h2>
<div class="row around-xs">
<div class="col-xs-12 col-sm-10">
<p class="lead text-center">The <span class="logotype"><span class="highlight">Sitback</span> <span
class="lowlight"></span></span> image previewer will allow you to preview background images that you
are going to use on your website in a variety of view modes, and at a variety of resolutions. It will give
you a reasonable overview of how your image will look after implementation, and give you a guide as to how
to create your images to keep the most important information on screen at all times.</p>
</div>
</div>
</div>
</div>
<div class="flex-row flex-hog">
<div class="container">
<div class="content">
<!-- Mobile -->
<div id="iphone" class="device-wrapper text-center">
<h4 class="text-center">iPhone 6 <small>375 x 667px <span class="scaled-value"></span></small> </h4>
<button class="button primary small btn-device-rotate margin-top-10" type="button">
Rotate Device
<span class="fa fa-refresh" aria-hidden="true"></span>
</button>
<div class="device iphone">
<div class="image-background overflow"></div>
<div class="device-screen image-background"></div>
</div>
<hr>
</div>
<div id="s7" class="device-wrapper text-center">
<h4 class="text-center">Samsung Galaxy S7 <small>375 x 667px <span class="scaled-value"></span></small></h4>
<button class="button primary small btn-device-rotate margin-top-10" type="button">
Rotate Device
<span class="fa fa-refresh" aria-hidden="true"></span>
</button>
<div class="device s7">
<div class="image-background overflow"></div>
<div class="device-screen image-background"></div>
</div>
<hr>
</div>
<!-- Tablet -->
<div id="ipad" class="device-wrapper text-center">
<h4 class="text-center">Tablet <small>768 x 1024px <span class="scaled-value"></span></small></h4>
<button class="button primary small btn-device-rotate margin-top-10" type="button">
Rotate Device
<span class="fa fa-refresh" aria-hidden="true"></span>
</button>
<div class="device tablet">
<div class="image-background overflow"></div>
<div class="device-screen image-background"></div>
</div>
<hr>
</div>
<!-- Small Desktop -->
<div id="desktop" class="device-wrapper text-center">
<h4 class="text-center">Small Desktop <small>1440 x 900px <span class="scaled-value"></span></small></h4>
<div class="device small-desktop">
<div class="image-background overflow"></div>
<div class="device-screen image-background"></div>
</div>
<hr>
</div>
<!-- HD TV -->
<div id="hdtv" class="device-wrapper text-center">
<h4 class="text-center">HDTV <small>1440 x 900px <span class="scaled-value"></span></small></h4>
<div class="device hdtv">
<div class="image-background overflow"></div>
<div class="device-screen image-background"></div>
</div>
<hr>
</div>
<!-- Custom -->
<div id="custom" class="device-wrapper text-center">
<h4 class="text-center">Custom <small><span class="scaled-value"></span></small></h4>
<div class="row">
<div class="col-sm-4 col-sm-offset-4">
<div class="flex-justify-center">
<div class="col-xs-4">
<div class="input-group">
<input id="custom-device-width" title="Custom device width" class="form-control" type="text"
placeholder="Width">
<span class="input-group-addon">px</span>
</div>
</div>
<div> x </div>
<div class="col-xs-4">
<div class="input-group">
<input id="custom-device-height" title="Custom device height" class="form-control" type="text"
placeholder="Height">
<span class="input-group-addon">px</span>
</div>
</div>
<div class="col-xs-3">
<button id="device-custom-clear" class="button secondary xx-small">Clear</button>
</div>
</div>
</div>
</div>
<div class="device custom">
<div class="image-background overflow"></div>
<div class="device-screen image-background"></div>
</div>
</div>
</div>
</div>
<div class="sidebar" data-spy="affix" data-offset-top="00">
<div class="sidebar-item text-center">
<h4>Upload image here:</h4>
<label class="upload-button button primary small margin-top-20">
Upload Image
<span class="fa fa-upload"></span>
<input class="upload" name="fileUpload" type="file" id="uploaderFile">
</label>
</div>
<div id="overflow-checkbox-wrap">
<div class="sidebar-item">
<div class="row between-sm middle-sm">
<h5 class="no-margin-top">Toggle fill type:</h5>
<div class="end-sm">
<a role="button" tabindex="0" class="button icon help secondary outline"><i class="fa"></i></a>
</div>
<div class="row row-counter">
<div class="panel small secondary help">
<small>
Cover will completely fill the container with your image. Contain will show 100% of the image, with
empty space around the image. <br><br>For more information <a title='MDN page for background-size'
href='https://developer.mozilla.org/en-US/docs/Web/CSS/background-size#Values'>please visit the
MDN page for background-size</a>
</small>
</div>
</div>
</div>
<div>
<span class="checkbox">
<input id="bg-radio-cover" name="background-type" type="radio" checked="checked" value="cover">
<label for="bg-radio-cover"> Cover</label>
<br>
<input id="bg-radio-Contain" name="background-type" type="radio" value="contain">
<label for="bg-radio-Contain"> Contain</label>
</span>
</div>
</div>
<div class="sidebar-item">
<div class="row between-sm middle-sm">
<span class="checkbox">
<input id="overflow-checkbox" type="checkbox">
<label for="overflow-checkbox"> Show overflow image</label>
</span>
<a role="button" tabindex="0" class="button end-sm icon help secondary outline"><i class="fa "></i></a>
</div>
<div class="row row-counter">
<div class="panel small secondary help">
<small>
This will let you see exactly how much of your image is being cut off by including a <em>ghost</em> of
the original image over the top of the rendered background
</small>
</div>
</div>
</div>
</div>
<div class="sidebar-item">
<div class="row between-sm middle-sm">
<h5 class="no-margin-top">Set a section height:</h5>
<div>
<a role="button" tabindex="0" class="button icon help secondary outline"><i class="fa "></i></a>
</div>
</div>
<div class="row row-counter">
<div class="panel small secondary help">
<small>
Changing the <strong>section</strong> height will give you a better idea of how your image will scale
when used as a content background
</small>
</div>
</div>
<div class="form-inline margin-top-20 row between-sm middle-sm">
<div class="input-group">
<input id="input-height" title="Set Section Height" class="form-control" type="text" placeholder="Height">
<span class="input-group-addon">px</span>
</div>
<button id="section-height-clear" class="button secondary xx-small">Clear</button>
</div>
</div>
<div class="sidebar-item">
<div class="row between-sm middle-sm">
<h5 class="no-margin-top">Set background position:</h5>
<div>
<a role="button" tabindex="0" class="button icon help secondary outline"><i class="fa "></i></a>
</div>
<div class="row row-counter">
<div class="panel small secondary help">
<small>
Depending on the image in use, and the surrounding content, you can change the <strong>anchor
point</strong> of the background image. <br><br> The default is centred both vertically and
horizontally.<br><br>For more information <a title='MDN page for background-position'
href='https://developer.mozilla.org/en-US/docs/Web/CSS/background-position'> please visit the MDN
page for background-position</a>
</small>
</div>
</div>
<ul class="bg-position-list">
<li class="bg-position-item no-margin-bottom top left">
<input name="bg-position" type="radio" id="bgTopLeft" data-alignment="top left">
<label title="Background position is 'top left'" for="bgTopLeft">
<span class="fa fa-fw fa-arrow-left arrow-rotate-45"></span>
</label>
</li>
<li class="bg-position-item no-margin-bottom top center">
<input name="bg-position" type="radio" id="bgTop" data-alignment="top">
<label title="Background position is 'top center'" for="bgTop">
<span class="fa fa-fw fa-arrow-up"></span>
</label>
</li>
<li class="bg-position-item no-margin-bottom top right">
<input name="bg-position" name="bg-position" type="radio" id="bgTopRight" data-alignment="top right">
<label title="Background position is 'top right'" for="bgTopRight">
<span class="fa fa-fw fa-arrow-up arrow-rotate-45"></span>
</label>
</li>
<li class="bg-position-item no-margin-bottom middle left">
<input name="bg-position" type="radio" id="bgLeft" data-alignment="left">
<label title="Background position is 'center left'" for="bgLeft">
<span class="fa fa-fw fa-arrow-left"></span>
</label>
</li>
<li class="bg-position-item no-margin-bottom middle center">
<input name="bg-position" type="radio" id="bgCenter" checked="checked" data-alignment="center">
<label title="Background position is 'center center'" for="bgCenter">
<span class="fa fa-fw fa-dot-circle-o"></span>
</label>
</li>
<li class="bg-position-item no-margin-bottom middle right">
<input name="bg-position" type="radio" id="bgRight" data-alignment="right">
<label title="Background position is 'center right'" for="bgRight">
<span class="fa fa-fw fa-arrow-right"></span>
</label>
</li>
<li class="bg-position-item no-margin-bottom bottom left">
<input name="bg-position" type="radio" id="bgBottomLeft" data-alignment="bottom left">
<label title="Background position is 'bottom left'" for="bgBottomLeft">
<span class="fa fa-fw fa-arrow-down arrow-rotate-45"></span>
</label>
</li>
<li class="bg-position-item no-margin-bottom bottom center">
<input name="bg-position" type="radio" id="bgBottom" data-alignment="bottom">
<label title="Background position is 'bottom center'" for="bgBottom">
<span class="fa fa-fw fa-arrow-down"></span>
</label>
</li>
<li class="bg-position-item no-margin-bottom bottom right">
<input name="bg-position" type="radio" id="bgBottomRight" data-alignment="bottom right">
<label title="Background position is 'bottom right'" for="bgBottomRight">
<span class="fa fa-fw fa-arrow-right arrow-rotate-45"></span>
</label>
</li>
</ul>
</div>
<div class="sidebar-item">
<h5>Choose devices: </h5>
<ul class="list-unstyled" id="device-list">
<li class="checkbox">
<input rel="device-trigger" type="checkbox" id="checkbox-iphone" data-device="iphone">
<label for="checkbox-iphone"> iPhone 6</label>
</li>
<li class="checkbox">
<input rel="device-trigger" type="checkbox" id="checkbox-s7" data-device="s7">
<label for="checkbox-s7"> Samsung Galaxy S7</label>
</li>
<li class="checkbox">
<input rel="device-trigger" type="checkbox" id="checkbox-ipad" data-device="ipad">
<label for="checkbox-ipad"> iPad</label>
</li>
<li class="checkbox">
<input rel="device-trigger" type="checkbox" id="checkbox-small-desktop" data-device="desktop">
<label for="checkbox-small-desktop"> Small Desktop</label>
</li>
<li class="checkbox">
<input rel="device-trigger" type="checkbox" id="checkbox-hdtv" data-device="hdtv">
<label for="checkbox-hdtv"> HDTV</label>
</li>
<li class="checkbox">
<input rel="device-trigger" type="checkbox" id="checkbox-custom" data-device="custom">
<label for="checkbox-custom"> Custom</label>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="panel primary">
<div class="container">
<div class="row between-xs bottom-sm">
<div class="col-xs-12 col-sm">
<h4>
<span>We’re in The Rocks </span>
<a href="https://goo.gl/maps/Ynt7t8KCuZv" title="Find Sitback on Google Maps"
target="_blank"><small> [ map ] </small></a>
</h4>
<p class="hug">
<a href="https://www.google.com.au/maps/place/Sitback/@-33.8564434,151.2050245,17z/data=!3m1!4b1!4m5!3m4!1s0x6b12ae5ce22ca8bd:0x1d5bff2aa201ee00!8m2!3d-33.8564479!4d151.2072132"
target="_blank">39-41 Lower Fort Street, Sydney NSW 2000 Australia</a>
<br>
+61 2 9247 2223 // <a href="mailto:hello@sitback.com.au">hello@sitback.com.au</a>
</p>
</div>
<div class="col-xs-12 col-sm end-sm margin-top-30 no-margin-top-sm">
<ul class="list-inline start-xs end-sm">
<li>
<a href="https://www.linkedin.com/company/sitback-solutions" target="_blank"
class="button secondary outline square"><i class="fa fa-fw fa-lg fa-linkedin"></i></a>
</li>
<li>
<a href="https://www.facebook.com/Sitback-159057074134649/" target="_blank"
class="button secondary outline square text-secondary"><i class="fa fa-fw fa-lg fa-facebook"></i></a>
</li>
<li>
<a href="https://twitter.com/sitback" target="_blank" class="button secondary outline square"><i
class="fa fa-fw fa-lg fa-twitter"></i></a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="copyright">
<div class="container">
<div class="row">
<div class="col-xs">
<p class="text-right text-muted medium">© Sitback / ABN 67 118 118 737</p>
</div>
</div>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="js/upload-image.js"></script>
<script src="js/pwa.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS"
crossorigin="anonymous"></script>
</body>
</html>