-
Notifications
You must be signed in to change notification settings - Fork 12
/
demo.html
101 lines (88 loc) · 3.49 KB
/
demo.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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Quote Rotator</title>
<!-- javascripts -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="https://github.com/coryschires/quote-rotator/raw/master/src/jquery.quote_rotator.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('ul#quotes').quote_rotator();
$('ul#button_quotes').quote_rotator({
buttons: { next: '>>', previous: '<<' }
});
});
</script>
<style type="text/css" media="screen">
body { font-family: helvetica, verdana, sans-serif; }
em { color: #95A105; font-style: normal; }
#documentation { float: right; }
#page_wrap { margin: 0 auto; width: 800px; }
.example { clear: both; height: 210px; }
h3 { border-bottom: 2px #e0e0e0 solid; padding-bottom: 3px; margin-top: 30px; }
pre { background: #e0e0e0; padding: 20px 30px 20px 0; float: right; min-width: 350px; margin: 0; }
ul { list-style: none; width: 300px; cursor: pointer; margin: 0; padding: 0; }
ul blockquote { list-style: none; margin: 0; }
</style>
</head>
<body>
<div id="page_wrap">
<a href="https://github.com/coryschires/quote-rotator" id="documentation">Back to the documentation</a>
<h1>jQuery <em>Quote Rotator</em> Plugin</h1>
<div class="example">
<h3>Basic example using default configuration</h3>
<pre>
$('ul#quotes').quote_rotator();</pre>
<ul id="quotes">
<li>
<blockquote>Lorem ipsum dolor sit amet, consectetur adipisicing elit!</blockquote>
<cite>— Alabama</cite>
</li>
<li>
<blockquote>Excepteur sint occaecat cupidatat non proident!</blockquote>
<cite>— Georgia</cite>
</li>
<li>
<blockquote>Duis aute irure dolor in reprehenderit?</blockquote>
<cite>— Illinois</cite>
</li>
<li>
<blockquote>Dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est laborum.</blockquote>
<cite>— West Virginia</cite>
</li>
</ul>
</div><!--example-->
<div class="example">
<h3>Example using next/previous buttons</h3>
<pre>
$('ul#button_quotes').quote_rotator({
buttons: {
next: '>>',
previous: '<<'
}
});</pre>
<ul id="button_quotes">
<li>
<blockquote>Lorem ipsum dolor sit amet, consectetur adipisicing elit!</blockquote>
<cite>— Alabama</cite>
</li>
<li>
<blockquote>Excepteur sint occaecat cupidatat non proident!</blockquote>
<cite>— Georgia</cite>
</li>
<li>
<blockquote>Duis aute irure dolor in reprehenderit?</blockquote>
<cite>— Illinois</cite>
</li>
<li>
<blockquote>Dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est laborum.</blockquote>
<cite>— West Virginia</cite>
</li>
</ul>
</div><!--example-->
</div><!-- page_wrap -->
</body>
</html>