addrbar.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. $(function(){
  13. $( "a" ).bind("tap click",function( e ){
  14. $("#log")
  15. .prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"</li>")
  16. .listview("refresh");
  17. return false;
  18. })
  19. .bind("tap click", false);
  20. });
  21. </script>
  22. <style>
  23. #jqm-home {
  24. height: 500px;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <div data-role="page" data-theme="b" id="jqm-home">
  30. <div data-role="header">
  31. <h1>Event Logger</h1>
  32. </div>
  33. <div data-role="content">
  34. <p>Touch events on this page will log out below, prepending to the top as they arrive.</p>
  35. <a href="foo.html" data-role="button">Click me</a>
  36. <ul data-role="listview" id="log">
  37. </ul>
  38. </div>
  39. </div>
  40. </body>
  41. </html>