-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
199 lines (191 loc) · 6.22 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
<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Frameright Web Component</title>
<link
href="https://avatars.githubusercontent.com/u/35964478?s=200&v=4"
rel="shortcut icon"
type="image/x-icon"
/>
<!-- https://interactjs.io/ for a resizable div on mobile -->
<script src="https://cdn.jsdelivr.net/npm/interactjs/dist/interact.min.js"></script>
<!-- Semantic UI for buttons and toggle checkboxes -->
<link
rel="stylesheet"
href="assets/thirdparty/semantic-ui/semantic.css"
/>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js"
integrity="sha512-STof4xm1wgkfm7heWqFJVn58Hm3EtS31XFaagaa8VMReCXAkQnJZ+jEy8PCC/iT18dFy95WcExNHFTqLyp72eQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="assets/thirdparty/semantic-ui/semantic.min.js"></script>
<!-- Polyfill for Safari, see https://github.com/ungap/custom-elements -->
<script src="https://unpkg.com/@ungap/custom-elements/es.js"></script>
<link rel="stylesheet" href="assets/css/demo.css" />
</head>
<body>
<div class="flex-container">
<div>
<div class="distanced">
<span class="distanced-right">
<a href="https://frameright.io">
<img
class="logo"
src="https://avatars.githubusercontent.com/u/35964478?s=200&v=4"
/>
</a>
</span>
<span class="distanced-right">
<a
href="https://github.com/Frameright/image-display-control-web-component"
>
<img
class="logo"
src="https://logos-download.com/wp-content/uploads/2016/09/GitHub_logo.png"
/>
</a>
</span>
</div>
<div class="distanced resizable">
<div class="overflow-hider">
<img
id="myimg"
is="image-display-control"
/>
</div>
<div>
<div class="resizer"></div>
</div>
<div class="hint">
<span>Drag the purple dot around >></span>
</div>
</div>
</div>
<div>
<div class="distanced">
<div class="ui compact buttons">
<button
class="ui button pic-selector"
id="skater1"
onclick="picSelectorClicked('skater1')"
>
Image 1
</button>
<button
class="ui button pic-selector"
id="skater2"
onclick="picSelectorClicked('skater2')"
>
Image 2
</button>
<button
class="ui button pic-selector"
id="upload"
onclick="picSelectorClicked('upload')"
>
Upload
</button>
<input
type="file"
style="display: none"
id="file"
accept="image/*"
/>
</div>
<div class="distanced-top compact">
<div class="ui compact buttons">
<button
class="ui button mode-selector"
id="off"
onclick="modeSelectorClicked('off')"
>
Off
</button>
<button
class="ui button mode-selector"
id="on"
onclick="modeSelectorClicked('on')"
>
On
</button>
<button
class="ui button mode-selector"
id="debug"
onclick="modeSelectorClicked('debug')"
>
Debug
</button>
</div>
</div>
<div class="mailchimp">
<h6>Stay updated with our newsletter</h6>
<form
action="https://frameright.us19.list-manage.com/subscribe/post?u=d9d1a282d42f0f85213ec5256&id=8085d668c5&f_id=002ea8e4f0"
method="post"
id="mc-embedded-subscribe-form"
name="mc-embedded-subscribe-form"
class="validate"
target="_blank"
>
<input
type="email"
defaultValue=""
placeholder="YOUR EMAIL HERE"
name="EMAIL"
id="mce-EMAIL"
required
/>
<div hidden>
<input type="hidden" name="tags" value="6417565" />
</div>
<div
style="position: absolute; left: -5000px;"
aria-hidden="true"
>
{/* real people should not fill this in and expect good things - do not remove this or risk form bot signups*/}
<input
type="text"
name="b_d9d1a282d42f0f85213ec5256_8085d668c5"
tabIndex={-1}
defaultValue=""
/>
</div>
<input
type="submit"
value="SUBSCRIBE"
name="subscribe"
id="mc-embedded-subscribe"
class="button"
/>
</form>
</div>
<div class="qr">
<a href="https://webc.frameright.io">
<img
class="qr"
src="https://api.qrserver.com/v1/create-qr-code/?size=1024x1024&data=https://webc.frameright.io"
/>
<div class="hint qr">webc.frameright.io</div>
</a>
</div>
</div>
</div>
</div>
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@frameright/[email protected]/dist/image-display-control.min.js"
></script>
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@frameright/[email protected]/dist/image-display-control-metadata-parser-standalone.min.js"
></script>
<script
type="text/javascript"
src="assets/js/demo.js"
></script>
</body>
</html>