0
0
mirror of https://github.com/Doodle3D/doodle3d-connect.git synced 2024-11-05 15:13:23 +01:00
doodle3d-connect/js/libs/.jquery.mobile/demos/pages/startpage.html
2014-05-08 14:59:07 +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>