forked from hammerjs/hammerjs.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
317 lines (313 loc) · 9.55 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
---
layout: homepage
title: Hammer.JS
---
<div class="callout large primary top-header">
<div class="text-center">
<h1>You can touch this!</h1>
<h2 class="subheader">Hammer helps you add support for touch gestures to your page, and remove the 300ms delay from clicks.</h2>
<h3 class="subheader">Use the original Hammer.js for gesture support,</h3>
<h3 class="subheader">and the all new Hammer Time for removing the 300ms delay</h3>
</div>
</div>
<div class="row splash">
<div class="column">
<div class="text-center">
<div class="row">
<div class="large-6 columns">
<a class="button large download", href="dist/hammer.min.js">
<strong>Hammer.min.js</strong><br>
<small>v{{site.data.hammer.version}} — {{site.data.hammer.gzipped}} gzipped</small>
</a>
</div>
<div class="large-6 columns">
<a class="button large download", href="dist/hammer-time.min.js">
<strong>Hammer-time.min.js</strong><br>
<small>v{{site.data.hammer.timeVersion}} — {{site.data.hammer.timeGzipped}} gzipped</small>
</a>
</div>
</div>
</div>
<div class="try">
<div class="device">
<div class="device-button"></div>
<div class="device-screen-wrapper">
<div class="device-screen">
<div id="hitarea"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="callout large primary">
<div class="text-center">
<h1>Gestures</h1>
<h2 class="subheader">Hammer.js supports most common single and multi-touch gestures, and is fully extendable to add custom gestures.</h2>
</div>
</div>
<div class="row">
<div class="column small-2">
<h3>Rotate</h3>
<img src="/assets/img/rotate.svg" width="100%">
</div>
<div class="column small-2">
<h3>Pinch</h3>
<img src="/assets/img/pinch.svg">
</div>
<div class="column small-2">
<h3>Press</h3>
<img src="/assets/img/press.svg">
</div>
<div class="column small-2">
<h3>Pan</h3>
<img src="/assets/img/pan.svg">
</div>
<div class="column small-2">
<h3>Tap</h3>
<img src="/assets/img/tap.svg">
</div>
<div class="column small-2">
<h3>Swipe</h3>
<img src="/assets/img/swipe.svg">
</div>
</div>
<div class="callout large primary" id="try-it">
<div class="text-center">
<h1>Try it!</h1>
<h2 class="subheader">Use the shift key to emulate multi touch with a mouse</h2>
</div>
</div>
<div class="row row-try-it">
<div class="column large-4 medium-6 small-12">
<div class="demo-box-wrap">
<h2>Swipe</h2>
<div class="demo-box swipe">
<img class="active" src="/assets/img/pano-1.jpg">
<img src="/assets/img/pano-2.jpg">
<img src="/assets/img/pano-3.jpg">
<div class="page-num">
<span class="active">1</span>
<span>2</span>
<span>3</span>
</div>
</div>
</div>
</div>
<div class="column large-4 medium-6 small-12">
<div class="demo-box-wrap">
<h2>Pan</h2>
<div class="demo-box pan">
<img class="active" src="/assets/img/pano-1.jpg">
</div>
</div>
</div>
<div class="column large-4 medium-6 small-12">
<div class="demo-box-wrap">
<h2>Tap</h2>
<div class="demo-box tap">
<img class="active" src="/assets/img/pano-1.jpg">
<img src="/assets/img/pano-2.jpg">
<img src="/assets/img/pano-3.jpg">
<div class="page-num">
<span class="active">1</span>
<span>2</span>
<span>3</span>
</div>
</div>
</div>
</div>
<div class="column large-4 medium-6 small-12">
<div class="demo-box-wrap">
<h2>Press</h2>
<div class="demo-box press">
<img class="active" src="/assets/img/pano-1.jpg">
<div class="demo-overlay">
<img src="/assets/img/circle-check.svg">
</div>
</div>
</div>
</div>
<div class="column large-4 medium-6 small-12">
<div class="demo-box-wrap">
<h2>Rotate</h2>
<div class="demo-box rotate">
<img class="active" src="/assets/img/pano-1.jpg">
</div>
</div>
</div>
<div class="column large-4 medium-6 small-12">
<div class="demo-box-wrap">
<h2>Pinch / Zoom</h2>
<div class="demo-box pinch">
<img class="active" src="/assets/img/pano-1.jpg">
</div>
</div>
</div>
</div>
<div class="callout large primary">
<div class="text-center">
<h1>Hammer Time</h1>
<h2 class="subheader">Hammer time removes the 300ms delay from both clicks and focus</h2>
<h2><small>Hammer time is a partial polyfill for the touch-action css property from the pointer events spec <a href="http://www.w3.org/TR/pointerevents/#the-touch-action-css-property">http://www.w3.org/TR/pointerevents/#the-touch-action-css-property</a></small></h2>
</div>
</div>
<div class="row row-try-it">
<div class="column large-4 medium-6 small-12">
<div class="target-wrap" id="target">
<h2>None</h2>
<div class="target" style="touch-action: none;">
<code>style="touch-action: none;"</code><br>
Click Time: <span class="click-time-output">0ms</span>
<progress class="click-gauge" max="500" value="0"></progress>
<span class="output"></span>
<div class="hit-target"></div>
</div>
</div>
</div>
<div class="column large-4 medium-6 small-12">
<div class="target-wrap" id="target">
<h2>Manipulation</h2>
<div class="target" style="touch-action: manipulation;">
<code>style="touch-action: manipulation;"</code><br>
Click Time: <span class="click-time-output">0ms</span>
<progress class="click-gauge" max="500" value="0"></progress>
<span class="output"></span>
<div class="hit-target"></div>
</div>
</div>
</div>
<div class="column large-4 medium-12 small-12">
<div class="target-wrap">
<h2>Auto / unset</h2>
<div class="target">
<code>style=""</code><br>
Click Time: <span class="click-time-output">0ms</span>
<progress class="click-gauge" max="500" value="0"></progress>
<span class="output"></span>
<div class="hit-target" style=""></div>
</div>
</div>
</div>
</div>
<div class="callout large primary" id="team">
<div class="text-center">
<h1>Team</h1>
<h2 class="subheader">Hammerjs and its associated libraries are developed entirely by volunteer contributors</h2>
</div>
</div>
<div class="row splash">
<div class="column">
<div class="row">
<div class="column">
<div class="row">
<div class="large-4 medium-6 small-12 columns">
<div class="contrib-box">
<img src="https://avatars0.githubusercontent.com/u/462993?v=3&s=460" style="width:100%">
<h4>Alexander Schmitz</h4>
<a href="https://github.com/arschmitz">(arschmitz)</a>
<h4>Project Lead</h4>
</div>
</div>
<div class="large-4 medium-6 small-12 columns">
<div class="contrib-box">
<img src="https://avatars0.githubusercontent.com/u/650309?v=3&s=460" style="width:100%">
<h4>Chris Thoburn</h4>
<a href="https://github.com/runspired">(runspired)</a>
<h4>Developer</h4>
</div>
</div>
<div class="large-4 medium-12 small-12 columns">
<div class="contrib-box">
<img src="https://avatars1.githubusercontent.com/u/1243901?v=3&s=460" style="width:100%">
<h4>Jorik Tangelder</h4>
<a href="https://github.com/jtangelder">(jtangelder)</a>
<h4>Original Creator (inactive)</h4>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="callout large primary" id="contribute">
<div class="text-center">
<h1>Contributing</h1>
<h2 class="subheader">Interested in helping out on hammer?</h2>
<h2 class="subheader">We are always looking for new team members to help out.</h2>
<h2><small>There is no need to be an expert or even really know JavaScript</small></h2>
</div>
</div>
<div class="row">
<div class="column">
<h1>Just a few of the areas we could use help in are...</h1>
</div>
</div>
<div class="row">
<div class="columns medium-6 small-12">
<ul>
<li>Documentation</li>
<li>Copy Editing ( we make a lot of typos )</li>
<li>testing</li>
<li>Website design</li>
</ul>
</div>
<div class="columns medium-6 small-12">
<ul>
<li>Fixing Bugs</li>
<li>Triaging issues</li>
<li>Supporting other hammer users</li>
<li>Testing</li>
</ul>
</div>
</div>
<div class="callout large primary" id="support">
<div class="text-center">
<h1>Support</h1>
<h2 class="subheader">Need help using Hammerjs?</h2>
</div>
</div>
<div class="row row-try-it support-row">
<div class="columns large-6 small-12">
<h2>General Help</h2>
</div>
<div class="columns large-6 show-for-large-up">
<h2>Bugs / Features</h2>
</div>
<div class="columns large-2 medium-4 small-6">
<a class="help-wrap" href="http://hammerjs.github.io/api/">
<h3>Docs / API</h3>
<img src="/assets/img/docs-icon.png">
</a>
</div>
<div class="columns large-2 medium-4 small-6">
<a class="help-wrap" href="http://stackoverflow.com/questions/tagged/hammer.js">
<h3>Stack Overflow</h3>
<img src="/assets/img/stackoverflow-icon.svg">
</a>
</div>
<div class="columns large-2 medium-4 small-12">
<a class="help-wrap" href="https://hammerjs.herokuapp.com/">
<h3>Slack #support</h3>
<img src="/assets/img/slack-icon.png">
</a>
</div>
<div class="columns small-12 hide-for-large-up">
<h2>Bugs / Features</h2>
</div>
<div class="columns large-3 small-6">
<a class="help-wrap" href="https://github.com/hammerjs/hammer.js/issues">
<h3>Github Issues</h3>
<img src="/assets/img/github-icon.png">
</a>
</div>
<div class="columns large-3 small-6">
<a class="help-wrap" href="https://hammerjs.herokuapp.com/">
<h3>Slack #general</h3>
<img src="/assets/img/slack-icon.png">
</a>
</div>
</div>
<script src="https://cdn.rawgit.com/hammerjs/touchemulator/master/touch-emulator.js"></script>
<script> TouchEmulator(); </script>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>