-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathindex.html
139 lines (124 loc) · 5.64 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
133
134
135
136
137
138
139
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>jq-tiles</title>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="js/jquery.tiles.js"></script>
<link href='http://fonts.googleapis.com/css?family=Ubuntu+Mono' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="http://necolas.github.com/normalize.css/2.0.1/normalize.css"/>
<link rel="stylesheet" href="css/jquery.tiles.min.css"/>
<link rel="stylesheet" href="css/styles.css" media="screen"/>
</head>
<body>
<a href="https://github.com/elclanrs/jq-tiles"><img style="position: fixed; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
<header>
<h1><img src="img/logo.png" alt="jq-tiles" /></h1>
<a href="https://github.com/elclanrs/jq-tiles/raw/master/zip/jquery.tiles.zip" id="down">Download</a>
<div class="effects">
</div>
</header>
<section>
<div class="title">
<!--<h3>» default</h3>-->
<label>Effect:</label>
<select id="effects-select">
<option value="default">default</option>
<option value="simple">simple</option>
<option value="left">left</option>
<option value="up">up</option>
<option value="leftright">leftright</option>
<option value="updown">updown</option>
<option value="switchlr">switchlr</option>
<option value="switchud">switchud</option>
<option value="fliplr">fliplr</option>
<option value="flipud">flipud</option>
<option value="reduce">reduce</option>
<option value="360">360</option>
</select>
<div class="code">
<code>x: 6</code>
<code>y: 4</code>
<code>random: true</code>
</div>
<button type="button" class="start action">Play</button>
<button type="button" class="stop action">Stop</button>
</div>
<div class="slider-wrap">
<div class="slider">
<p><strong>Pig ham:</strong> hock pork loin brisket pastrami frankfurter andouille.</p>
<img src="img/img01.jpg"/><p><strong>Sausage:</strong> ground round sirloin ball tip beef ribs.</p>
<img src="img/img02.jpg"/><p><strong>Pig ham:</strong> hock pork loin brisket pastrami frankfurter andouille.</p>
<img src="img/img03.jpg"/><p><strong>Pork turkey:</strong> shoulder, filet mignon chuck t-bone bacon.</p>
<img src="img/img04.jpg"/><p><strong>Short loin:</strong> pig jowl fatback, pork loin pork chop.</p>
<img src="img/img05.jpg"/><p><strong>Sausage:</strong> ground round sirloin ball tip beef ribs.</p>
<img src="img/img06.jpg"/><p><strong>Pig ham:</strong> hock pork loin brisket pastrami frankfurter andouille.</p>
<img src="img/img07.jpg"/><p><strong>Pork turkey:</strong> shoulder, filet mignon chuck t-bone bacon.</p>
<img src="img/img08.jpg"/><p><strong>Short loin:</strong> pig jowl fatback, pork loin pork chop.</p>
<img src="img/img09.jpg"/><p><strong>Sausage:</strong> ground round sirloin ball tip beef ribs.</p>
<img src="img/img10.jpg"/><p><strong>Pig ham:</strong> hock pork loin brisket pastrami frankfurter andouille.</p>
</div>
</div>
</section>
<footer><a id="github" href="https://github.com/elclanrs/jq-tiles">« Back to Github</a></footer>
<script>
var $slider = $('.slider-wrap');
var html = $slider.html();
// Options
var defaults = {
thumbSize: 20,
onSlideshowEnd: function(){ $('.stop, .start').toggle() }
};
var effects = {
'default': { x:6, y:4, random: true },
simple: { x:6, y:4, effect: 'simple', random: true },
left: { x:1, y:8, effect: 'left' },
up: { x:20, y:1, effect: 'up', rewind: 60, backReverse: true },
leftright: { x:1, y:8, effect: 'leftright' },
updown: { x:20, y:1, effect: 'updown', cssSpeed: 500, backReverse: true },
switchlr: { x:20, y:1, effect: 'switchlr', backReverse: true },
switchud: { x:1, y:8, effect: 'switchud' },
fliplr: { x:20, y:1, effect: 'fliplr', backReverse: true },
flipud: { x:20, y:3, effect: 'flipud', reverse: true, rewind: 75 },
reduce: { x:6, y:4, effect: 'reduce' },
360: { x:1, y:1, effect: '360', fade: true, cssSpeed: 600 }
};
$('#effects-select').change(function() {
var effect = $(this).val();
$slider.fadeTo( 0,0 ).html( html );
$('.stop').hide();
$('.start').show();
setTimeout(function() {
$('.slider').tilesSlider( $.extend( {}, defaults, effects[ effect ] ) );
$slider.fadeTo( 0,1 );
$('body').removeClass('tiles-preload');
}, 100 );
$('.code').empty().html(function() {
var e = effects[ effect ], c = [];
for ( var i in e ) {
if ( i !== 'effect' ) {
c.push('<code>'+ i +': '+ e[i] +'</code>');
}
}
return c.join('');
});
});
$('.start').click(function() {
$(this).hide();
$('.stop').show();
$('.slider').tilesSlider('start')
});
$('.stop').click(function() {
$(this).hide();
$('.start').show()
$('.slider').tilesSlider('stop')
});
$('.slider').tilesSlider( $.extend( {}, defaults, effects['default'] ) );
</script>
</body>
</html>