0
0
mirror of https://github.com/Doodle3D/doodle3d-connect.git synced 2024-12-26 02:23:48 +01:00
doodle3d-connect/js/libs/jquery.mobile/demos/pages/startpage.html
peteruithoven f247f1b3dc Added jQuery and jQuery mobile
Needed for offline development
2014-04-24 12:13:53 +02:00

52 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>JQM latest - issue template</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../css/themes/default/jquery.mobile-1.4.2.min.css">
<script src="../js/jquery.js"></script>
<script src="../js/jquery.mobile-1.4.2.min.js"></script>
<script>
$('#page1').on('pagecreate', function() {
$('a').bind('click', function(e) {
var trans = $(this).text() || 'none',
rev = !!$('#cb1').attr('checked');
$.mobile.changePage('#page1', { transition: trans,
allowSamePageTransition: true,
reverse: rev } );
$('#p1').text( 'last transition: ' + trans + ' - reverse: ' + rev );
});
});
$('#page1').bind('pagehide', function(e) {
$('a.ui-btn').removeClass('ui-btn-active');
if ( !!$('#cb2').attr('checked') && !$(this).hasClass('ui-btn-active') ) {
$(this).addClass('ui-page-active');
}
});
</script>
<style>
#edit-with-js-bin { display: none !important; }
</style>
</head>
<body>
<div data-role="page" id="startpage" data-theme="a">
<div data-role="header">
<h1>same page transitions</h1>
</div><!-- /header 1 -->
<div role="main" class="ui-content">
<a data-role="button" href="samepagetransition.html">Go to page 2</a>
</div><!-- /content 1 -->
</div><!-- /page 1 -->
</body>
</html>