index.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  5. <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet">
  6. <link href="http://twitter.github.com/bootstrap/assets/js/google-code-prettify/prettify.css" rel="stylesheet" />
  7. <link href="css/main.css" type="text/css" rel="stylesheet" />
  8. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
  9. <script type="text/javascript" src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
  10. <script type="text/javascript" src="../jquery.touchSwipe.js"></script>
  11. <script type="text/javascript" src="js/main.js"></script>
  12. <title>touchSwipe</title>
  13. <script type="text/javascript">
  14. //Google analyitics
  15. var _gaq = _gaq || [];
  16. _gaq.push(['_setAccount', 'UA-19862780-3']);
  17. _gaq.push(['_trackPageview']);
  18. (function() {
  19. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  20. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  21. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  22. })();
  23. </script>
  24. </head>
  25. <body>
  26. <a href="https://github.com/mattbryson"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" alt="Fork me on GitHub"></a>
  27. <div class="container">
  28. <div class="page-header">
  29. <h1>TouchSwipe <small>a jQuery plugin for touch devices</small></h1>
  30. <br/>
  31. <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Flabs.skinkers.com%2FtouchSwipe%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
  32. <p>TouchSwipe is a jquery plugin to be used with jQuery on touch input devices such as iPad, iPhone etc.</p>
  33. </div>
  34. <h1>Features</h1>
  35. <ul>
  36. <li>Detects swipes in 4 directions, "up", "down", "left" and "right"</li>
  37. <li>Detects pinches "in" and "out"</li>
  38. <li>Supports single finger or double finger touch events</li>
  39. <li>Supports click events both on the touchSwipe object and its child objects</li>
  40. <li>Definable threshold / maxTimeThreshold to determin when a gesture is actually a swipe</li>
  41. <li>Events triggered for swipe "start","move","end" and "cancel"</li>
  42. <li>End event can be triggered either on touch release, or as soon as threshold is met</li>
  43. <li>Allows swiping and page scrolling</li>
  44. <li>Disables user input elements (Button, form, text etc) from triggering swipes</li>
  45. </ul>
  46. <h1>Docs</h1>
  47. <ul>
  48. <li><a href='../docs' target='docs'>Plugin Documentation</a></li>
  49. </ul>
  50. <h1>Options</h1>
  51. <ul>
  52. <li>See the defaults page in the documentation: <a href='../docs/%24.fn.swipe.defaults.html' target='docs'>$.fn.swipe.defaults</a></li>
  53. </ul>
  54. <h1>Demos</h1>
  55. <span class='navigation_list'></span>
  56. </div>
  57. <hr/>
  58. </body>
  59. </html>