mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
update functional tests to use requirejs
This commit is contained in:
parent
4ca0e94b73
commit
b3d1b49008
3 changed files with 28 additions and 28 deletions
|
|
@ -7,8 +7,8 @@
|
|||
<link rel="stylesheet" href="../../css/themes/default/" />
|
||||
<link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
|
||||
<script src="../../js/jquery.js"></script>
|
||||
<script src="../../js/"></script>
|
||||
|
||||
<script data-main="../../js/jquery.mobile" src="../../external/requirejs/require.js"></script>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$( "a" ).bind("tap click",function( e ){
|
||||
|
|
@ -18,28 +18,28 @@
|
|||
return false;
|
||||
})
|
||||
.bind("tap click", false);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<style>
|
||||
#jqm-home {
|
||||
height: 500px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
</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>
|
||||
|
|
|
|||
|
|
@ -7,29 +7,29 @@
|
|||
<link rel="stylesheet" href="../../css/themes/default/" />
|
||||
<link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
|
||||
<script src="../../js/jquery.js"></script>
|
||||
<script src="../../js/"></script>
|
||||
|
||||
<script data-main="../../js/jquery.mobile" src="../../external/requirejs/require.js"></script>
|
||||
|
||||
<script>
|
||||
$( document )
|
||||
.bind("tap taphold swipe swipeleft swiperight scrollstart scrollstop orientationchange",function( e ){
|
||||
$("#log")
|
||||
.prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"</li>")
|
||||
.listview("refresh");
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</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>
|
||||
|
||||
|
||||
<ul data-role="listview" id="log">
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@
|
|||
<link rel="stylesheet" href="../../css/themes/default/" />
|
||||
<link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
|
||||
<script src="../../js/jquery.js"></script>
|
||||
<script src="../../js/"></script>
|
||||
|
||||
<script data-main="../../js/jquery.mobile" src="../../external/requirejs/require.js"></script>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$(".ui-grid-d a").bind("tap click", function(e){
|
||||
|
|
@ -23,18 +23,18 @@
|
|||
.prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"; message: show all buttons</li>")
|
||||
.listview("refresh");
|
||||
}).bind("tap click", false);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
<body>
|
||||
<div data-role="page" data-theme="b" id="jqm-home">
|
||||
<div data-role="header">
|
||||
<h1>Grid Layout</h1>
|
||||
</div>
|
||||
|
||||
|
||||
<div data-role="content">
|
||||
<p>Touch events on this page will log out below, prepending to the top as they arrive.</p>
|
||||
|
||||
|
||||
<div class="ui-grid-d">
|
||||
<div class="ui-block-a">
|
||||
<a data-role="button" id="btn1" data-theme="b">Button 1</a>
|
||||
|
|
@ -52,11 +52,11 @@
|
|||
<a data-role="button" id="btn5" data-theme="b">Button 5</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<a data-role="button" id="showbtn">Show all button</a>
|
||||
|
||||
|
||||
<ul data-role="listview" id="log">
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue