forked from andypa/jquerymobile-carousel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
42 lines (40 loc) · 1.64 KB
/
demo.html
File metadata and controls
42 lines (40 loc) · 1.64 KB
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>jQuery Mobile</title>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=1" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.css" />
<script src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.js"></script>
<link rel="stylesheet" href="css/jquery.mobile.carousel.css" />
<script src="js/jquery.mobile.carousel.js"></script>
<script>
$(document).ready(function() {
$('#carousel').carousel({endless: true});
});
</script>
</head>
<body>
<div data-role="page">
<div data-role="header" data-position="inline" id="header">
<h1>jQuery mobile carousel</h1>
</div>
<!-- /header -->
<div data-role="content">
<ul id="carousel">
<li><img src="http://lorempixum.com/500/500/nature/1" width="100%"></li>
<li><img src="http://lorempixum.com/500/500/nature/2" width="100%"></li>
<li><img src="http://lorempixum.com/500/500/nature/3" width="100%"></li>
<li><img src="http://lorempixum.com/500/500/nature/4" width="100%"></li>
</ul>
</div>
<!-- /content -->
<div data-role="footer">
<h4>jQuery mobile carousel</h4>
</div>
</div>
<!-- /footer -->
</div>
<!-- /page -->
</body>
</html>