/
index.html
132 lines (112 loc) · 5.89 KB
/
index.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.css" />
<link rel="stylesheet" type="text/css" href="http://view.jquerymobile.com/1.3.1/dist/demos/_assets/css/jqm-demos.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<script src="http://code.jquery.com/jquery-1.7.1.js"></script>
<script src="http://view.jquerymobile.com/1.3.1/dist/demos/_assets/js/index.js"></script>
<script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.js"></script>
<script src="js/turn.min.js"></script>
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
</head>
<body>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<div data-role="header">
</div><!-- /header -->
<div data-role="content">
<div data-role="page" data-theme="d" data-url="demo-page">
<div data-role="header" data-theme="b">
<h1>ZineScreen</h1>
<a href="#left-panel" data-theme="b" data-iconpos="notext" data-shadow="false" data-iconshadow="false"><img src="img/left-arrow.png" />Contents</a>
</div><!-- /header -->
<div data-role="content">
<!-- path to magazine images -->
<div id="magazine">
<div style="background-image:url(Cover.jpg);"></div>
<div style="background-image:url(Page_1.jpg);"></div>
<div style="background-image:url(Page_2.jpg);"></div>
<div style="background-image:url(Page_3.jpg);"></div>
</div>
</div><!-- /content -->
<div data-role="panel" id="left-panel" data-theme="b">
<ul data-role="listview" data-theme="b">
<li data-icon="delete"><a href="#" data-rel="close">Close</a></li>
</ul>
<div data-role="collapsible-set" data-inset="false" data-iconpos="right" data-theme="b" data-content-theme="b">
<div data-role="collapsible">
<h3></h3>
<ul data-role="listview">
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
</ul>
</div><!-- /collapsible -->
<div data-role="collapsible">
<h3></h3>
<ul data-role="listview">
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
</ul>
</div><!-- /collapsible -->
<div data-role="collapsible">
<h3></h3>
<ul data-role="listview">
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
</ul>
</div><!-- /collapsible -->
</div><!-- /collapsible-set -->
</div><!-- /panel -->
</div>
</div><!-- /content -->
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<script type="text/javascript">
$(window).ready(function() {
$('#magazine').turn({
display: 'double',
acceleration: true,
gradients: !$.isTouch,
elevation:50,
when: {
turned: function(e, page) {
/*console.log('Current view: ', $(this).turn('view'));*/
}
}
});
});
$(window).bind('keydown', function(e){
if (e.keyCode==37)
$('#magazine').turn('previous');
else if (e.keyCode==39)
$('#magazine').turn('next');
});
</script>
<script>
//disable elastic screen effect to make it feel more native
document.addEventListener(
'touchmove',
function(e) {
e.preventDefault();
},
false
);
</script>
</body>
</html>