eventlogger.html 1012 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>jQuery Mobile: Event Logger</title>
  7. <link rel="stylesheet" href="../../jquery.mobile-1.0.1.min.css" />
  8. <link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
  9. <script src="../../jquery.js"></script>
  10. <script src="../../jquery.mobile-1.0.1.min.js"></script>
  11. <script>
  12. $( document )
  13. .bind("tap taphold swipe swipeleft swiperight scrollstart scrollstop orientationchange",function( e ){
  14. $("#log")
  15. .prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"</li>")
  16. .listview("refresh");
  17. });
  18. </script>
  19. </head>
  20. <body>
  21. <div data-role="page" data-theme="b" id="jqm-home">
  22. <div data-role="header">
  23. <h1>Event Logger</h1>
  24. </div>
  25. <div data-role="content">
  26. <p>Touch events on this page will log out below, prepending to the top as they arrive.</p>
  27. <ul data-role="listview" id="log">
  28. </ul>
  29. </div>
  30. </div>
  31. </body>
  32. </html>