Skip to content

Commit bed51da

Browse files
committed
Update file: touchswipe-jquery-plugin-by-mattbryson.html
1 parent 340bca2 commit bed51da

File tree

1 file changed

+43
-74
lines changed

1 file changed

+43
-74
lines changed

jquery-plugins/touchswipe-jquery-plugin-by-mattbryson.html

Lines changed: 43 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -174,49 +174,35 @@ <h1 id="packageName">Touchswipe Jquery Plugin</h1>
174174
</div>
175175
<div class="tab-content mt-3" id="infoTabsContent">
176176
<div class="tab-pane fade show active" id="installation" role="tabpanel" aria-labelledby="installation-tab">
177-
# TouchSwipe 1.6
178-
A jQuery plugin to be used on touch devices such as iPad, iPhone, Android etc.
179-
180-
Detects single and multiple finger swipes, pinches and falls back to mouse 'drags' on the desktop.
181-
182-
Time and distance thresholds can be set to distinguish between swipe gesture and slow drag.
183-
184-
Allows exclusion of child elements (interactive elements) as well allowing page scrolling or page zooming depending on configuration.
185-
186-
* Detects swipes in 4 directions, "up", "down", "left" and "right"
187-
* Detects pinches "in" and "out"
188-
* Supports single finger or double finger touch events
189-
* Supports click events both on the touchSwipe object and its child objects
190-
* Definable threshold / maxTimeThreshold to determin when a gesture is actually a swipe
191-
* Events triggered for swipe "start","move","end" and "cancel"
192-
* End event can be triggered either on touch release, or as soon as threshold is met
193-
* Allows swiping and page scrolling
194-
* Disables user input elements (Button, form, text etc) from triggering swipes
195-
196-
## Demos, examples and docs
197-
198-
[http://labs.rampinteractive.co.uk/touchSwipe](http://labs.rampinteractive.co.uk/touchSwipe)
199-
[http://labs.rampinteractive.co.uk/touchSwipe/docs](http://labs.rampinteractive.co.uk/touchSwipe/docs)
200-
201-
202-
## Installation
203-
### NPM
204-
````bash
205-
npm install jquery-touchswipe --save
206-
````
207-
### Bower
208-
````bash
209-
bower install jquery-touchswipe --save
210-
````
211-
### Manual
212-
Include the minified file in your project.
213-
````html
214-
<script type="text/javascript" src="js/jquery.touchSwipe.min.js"></script>
215-
````
216-
217-
## Usage
218-
````javascript
219-
$(function() {
177+
<h1>TouchSwipe 1.6</h1>
178+
<p>A jQuery plugin to be used on touch devices such as iPad, iPhone, Android etc.</p>
179+
<p>Detects single and multiple finger swipes, pinches and falls back to mouse 'drags' on the desktop.</p>
180+
<p>Time and distance thresholds can be set to distinguish between swipe gesture and slow drag.</p>
181+
<p>Allows exclusion of child elements (interactive elements) as well allowing page scrolling or page zooming depending on configuration.</p>
182+
<ul>
183+
<li>Detects swipes in 4 directions, &quot;up&quot;, &quot;down&quot;, &quot;left&quot; and &quot;right&quot;</li>
184+
<li>Detects pinches &quot;in&quot; and &quot;out&quot;</li>
185+
<li>Supports single finger or double finger touch events</li>
186+
<li>Supports click events both on the touchSwipe object and its child objects</li>
187+
<li>Definable threshold / maxTimeThreshold to determin when a gesture is actually a swipe</li>
188+
<li>Events triggered for swipe &quot;start&quot;,&quot;move&quot;,&quot;end&quot; and &quot;cancel&quot;</li>
189+
<li>End event can be triggered either on touch release, or as soon as threshold is met</li>
190+
<li>Allows swiping and page scrolling</li>
191+
<li>Disables user input elements (Button, form, text etc) from triggering swipes</li>
192+
</ul>
193+
<h2>Demos, examples and docs</h2>
194+
<p><a href="http://labs.rampinteractive.co.uk/touchSwipe">http://labs.rampinteractive.co.uk/touchSwipe</a><br />
195+
<a href="http://labs.rampinteractive.co.uk/touchSwipe/docs">http://labs.rampinteractive.co.uk/touchSwipe/docs</a></p>
196+
<h2>Installation</h2>
197+
<h3>NPM</h3>
198+
<pre class="prettyprint linenums lang-language"><code>npm install jquery-touchswipe --save</code></pre>
199+
<h3>Bower</h3>
200+
<pre class="prettyprint linenums lang-language"><code>bower install jquery-touchswipe --save</code></pre>
201+
<h3>Manual</h3>
202+
<p>Include the minified file in your project.</p>
203+
<pre class="prettyprint linenums lang-language"><code>&lt;script type="text/javascript" src="js/jquery.touchSwipe.min.js"&gt;&lt;/script&gt;</code></pre>
204+
<h2>Usage</h2>
205+
<pre class="prettyprint linenums lang-language"><code>$(function() {
220206
$("#test").swipe( {
221207
//Generic swipe handler for all directions
222208
swipe:function(event, direction, distance, duration, fingerCount, fingerData) {
@@ -226,41 +212,24 @@ <h1 id="packageName">Touchswipe Jquery Plugin</h1>
226212

227213
//Set some options later
228214
$("#test").swipe( {fingers:2} );
229-
});
230-
````
231-
232-
For full demos, code examples and documentation, see below.
233-
234-
235-
## Development
236-
Install dependencies
237-
````bash
238-
npm install
239-
````
240-
241-
To minify
242-
````bash
243-
npm run minify
244-
````
245-
246-
To build docs
247-
````bash
248-
npm run docs
249-
````
250-
251-
To do both
252-
````bash
253-
npm run build
254-
````
255-
256-
### For port to XUI see:
257-
https://github.com/cowgp/xui-touchSwipe
258-
215+
});</code></pre>
216+
<p>For full demos, code examples and documentation, see below.</p>
217+
<h2>Development</h2>
218+
<p>Install dependencies</p>
219+
<pre class="prettyprint linenums lang-language"><code>npm install</code></pre>
220+
<p>To minify</p>
221+
<pre class="prettyprint linenums lang-language"><code>npm run minify</code></pre>
222+
<p>To build docs</p>
223+
<pre class="prettyprint linenums lang-language"><code>npm run docs</code></pre>
224+
<p>To do both</p>
225+
<pre class="prettyprint linenums lang-language"><code>npm run build</code></pre>
226+
<h3>For port to XUI see:</h3>
227+
<p><a href="https://github.com/cowgp/xui-touchSwipe">https://github.com/cowgp/xui-touchSwipe</a></p>
259228
</div>
260229

261230
<div class="tab-pane fade" id="changelog" role="tabpanel" aria-labelledby="changelog-tab">
262231
<ul id="changelogList">
263-
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/repos/contents#get-repository-content","status":"404"}
232+
<p>{&quot;message&quot;:&quot;Not Found&quot;,&quot;documentation_url&quot;:&quot;<a href="https://docs.github.com/rest/repos/contents#get-repository-content&quot;,&quot;status&quot;:&quot;404">https://docs.github.com/rest/repos/contents#get-repository-content","status":"404</a>&quot;}</p>
264233
</ul>
265234
</div>
266235

0 commit comments

Comments
 (0)