mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-17 06:20:26 +00:00
48 lines
1.1 KiB
HTML
Executable file
48 lines
1.1 KiB
HTML
Executable file
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>jQuery Mobile: Event Logger</title>
|
|
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
|
|
<link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
|
|
<script src="../../js/jquery.tag.inserter.js"></script>
|
|
<script data-main="../../js/jquery.mobile" src="../../external/requirejs/require.js"></script>
|
|
|
|
<script>
|
|
$(function(){
|
|
$( "a" ).bind("tap click",function( e ){
|
|
$("#log")
|
|
.prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"</li>")
|
|
.listview("refresh");
|
|
return false;
|
|
})
|
|
.bind("tap click", false);
|
|
});
|
|
</script>
|
|
|
|
<style>
|
|
#jqm-home {
|
|
height: 500px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div data-role="page" data-theme="b" id="jqm-home">
|
|
<div data-role="header">
|
|
<h1>Event Logger</h1>
|
|
</div>
|
|
|
|
<div data-role="content">
|
|
<p>Touch events on this page will log out below, prepending to the top as they arrive.</p>
|
|
|
|
<a href="foo.html" data-role="button">Click me</a>
|
|
|
|
<ul data-role="listview" id="log">
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|