This repository has been archived by the owner on Sep 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
movie.html
42 lines (37 loc) · 1.56 KB
/
movie.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
<script src="jq-1_10_0-min.js"></script>
<script src="jqm-1_3_1-min.js"></script>
<script type="text/javascript">
$( document ).on( "pageinit", "#movie-page", function() {
$( document ).on( "swipeleft swiperight", "#movie-page", function( e ) {
// We check if there is no open panel on the page because otherwise
// a swipe to close the left panel would also open the right panel (and v.v.).
// We do this by checking the data that the framework stores on the page element (panel: open).
if ( $.mobile.activePage.jqmData( "panel" ) !== "open" ) {
if ( e.type === "swipeleft" ) {
$.mobile.changePage('menu.html');
} else if ( e.type === "swiperight" ) {
$( "#left-panel" ).panel( "open" );
}
}
});
});
</script>
</head>
<body>
<div data-role="page" id="movie-page">
<div data-role="header">
<a href="index.html" data-ajax="false" data-transition="slide" data-icon="grid" data-role="button">Movies</a>
<h1> </h1>
<a href="#info" data-icon="info" data-role="button">Info</a>
</div><!-- /header -->
<div data-role="content">
</div><!-- /content -->
</div><!-- /page -->
</body>
</html>