mirror of
https://github.com/wahyd4/cdnjs.git
synced 2026-08-09 04:46:00 +10:00
remove useless/unsupport html files in galleriffic
This commit is contained in:
@@ -1,142 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>Galleriffic | Minimal implementation</title>
|
||||
<link rel="stylesheet" href="css/basic.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/galleriffic-1.css" type="text/css" />
|
||||
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="jquery.galleriffic.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="page">
|
||||
<div id="container">
|
||||
<h1><a href="index.html">Galleriffic</a></h1>
|
||||
<h2>Minimal implementation</h2>
|
||||
|
||||
<!-- Start Minimal Gallery Html Containers -->
|
||||
<div id="gallery" class="content">
|
||||
<div id="controls" class="controls"></div>
|
||||
<div class="slideshow-container">
|
||||
<div id="loading" class="loader"></div>
|
||||
<div id="slideshow" class="slideshow"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="thumbs" class="navigation">
|
||||
<ul class="thumbs noscript">
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015.jpg" title="Title #0">Title #0</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2404/2538171134_2f77bc00d9.jpg" title="Title #1">Title #1</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2093/2538168854_f75e408156.jpg" title="Title #2">Title #2</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3153/2538167690_c812461b7b.jpg" title="Title #3">Title #3</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3150/2538167224_0a6075dd18.jpg" title="Title #4">Title #4</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3204/2537348699_bfd38bd9fd.jpg" title="Title #5">Title #5</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3124/2538164582_b9d18f9d1b.jpg" title="Title #6">Title #6</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3205/2538164270_4369bbdd23.jpg" title="Title #7">Title #7</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3211/2538163540_c2026243d2.jpg" title="Title #8">Title #8</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2315/2537343449_f933be8036.jpg" title="Title #9">Title #9</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2167/2082738157_436d1eb280.jpg" title="Title #10">Title #10</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2342/2083508720_fa906f685e.jpg" title="Title #11">Title #11</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2132/2082721339_4b06f6abba.jpg" title="Title #12">Title #12</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2139/2083503622_5b17f16a60.jpg" title="Title #13">Title #13</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2041/2083498578_114e117aab.jpg" title="Title #14">Title #14</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2149/2082705341_afcdda0663.jpg" title="Title #15">Title #15</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2014/2083478274_26775114dc.jpg" title="Title #16">Title #16</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2194/2083464534_122e849241.jpg" title="Title #17">Title #17</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3127/2538173236_b704e7622e.jpg" title="Title #18">Title #18</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2375/2538172432_3343a47341.jpg" title="Title #19">Title #19</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2353/2083476642_d00372b96f.jpg" title="Title #20">Title #20</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2201/1502907190_7b4a2a0e34.jpg" title="Title #21">Title #21</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm2.static.flickr.com/1116/1380178473_fc640e097a.jpg" title="Title #22">Title #22</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm2.static.flickr.com/1260/930424599_e75865c0d6.jpg" title="Title #23">Title #23</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- End Minimal Gallery Html Containers -->
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">© 2009 Trent Foley</div>
|
||||
<script type="text/javascript">
|
||||
// We only want these styles applied when javascript is enabled
|
||||
$('div.navigation').css({'width' : '300px', 'float' : 'left'});
|
||||
$('div.content').css('display', 'block');
|
||||
|
||||
$(document).ready(function() {
|
||||
// Initialize Minimal Galleriffic Gallery
|
||||
$('#thumbs').galleriffic({
|
||||
imageContainerSel: '#slideshow',
|
||||
controlsContainerSel: '#controls'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,401 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>Galleriffic | Thumbnail rollover effects and slideshow crossfades</title>
|
||||
<link rel="stylesheet" href="css/basic.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/galleriffic-2.css" type="text/css" />
|
||||
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="jquery.galleriffic.js"></script>
|
||||
<script type="text/javascript" src="jquery.opacityrollover.js"></script>
|
||||
<!-- We only want the thunbnails to display when javascript is disabled -->
|
||||
<script type="text/javascript">
|
||||
document.write('<style>.noscript { display: none; }</style>');
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="page">
|
||||
<div id="container">
|
||||
<h1><a href="index.html">Galleriffic</a></h1>
|
||||
<h2>Thumbnail rollover effects and slideshow crossfades</h2>
|
||||
|
||||
<!-- Start Advanced Gallery Html Containers -->
|
||||
<div id="gallery" class="content">
|
||||
<div id="controls" class="controls"></div>
|
||||
<div class="slideshow-container">
|
||||
<div id="loading" class="loader"></div>
|
||||
<div id="slideshow" class="slideshow"></div>
|
||||
</div>
|
||||
<div id="caption" class="caption-container"></div>
|
||||
</div>
|
||||
<div id="thumbs" class="navigation">
|
||||
<ul class="thumbs noscript">
|
||||
<li>
|
||||
<a class="thumb" name="leaf" href="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015.jpg" title="Title #0">
|
||||
<img src="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015_s.jpg" alt="Title #0" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #0</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" name="drop" href="http://farm3.static.flickr.com/2404/2538171134_2f77bc00d9.jpg" title="Title #1">
|
||||
<img src="http://farm3.static.flickr.com/2404/2538171134_2f77bc00d9_s.jpg" alt="Title #1" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
Any html can be placed here ...
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" name="bigleaf" href="http://farm3.static.flickr.com/2093/2538168854_f75e408156.jpg" title="Title #2">
|
||||
<img src="http://farm3.static.flickr.com/2093/2538168854_f75e408156_s.jpg" alt="Title #2" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2093/2538168854_f75e408156_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #2</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" name="lizard" href="http://farm4.static.flickr.com/3153/2538167690_c812461b7b.jpg" title="Title #3">
|
||||
<img src="http://farm4.static.flickr.com/3153/2538167690_c812461b7b_s.jpg" alt="Title #3" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3153/2538167690_c812461b7b_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #3</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3150/2538167224_0a6075dd18.jpg" title="Title #4">
|
||||
<img src="http://farm4.static.flickr.com/3150/2538167224_0a6075dd18_s.jpg" alt="Title #4" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3150/2538167224_0a6075dd18_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #4</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3204/2537348699_bfd38bd9fd.jpg" title="Title #5">
|
||||
<img src="http://farm4.static.flickr.com/3204/2537348699_bfd38bd9fd_s.jpg" alt="Title #5" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3204/2537348699_bfd38bd9fd_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #5</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3124/2538164582_b9d18f9d1b.jpg" title="Title #6">
|
||||
<img src="http://farm4.static.flickr.com/3124/2538164582_b9d18f9d1b_s.jpg" alt="Title #6" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3124/2538164582_b9d18f9d1b_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #6</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3205/2538164270_4369bbdd23.jpg" title="Title #7">
|
||||
<img src="http://farm4.static.flickr.com/3205/2538164270_4369bbdd23_s.jpg" alt="Title #7" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3205/2538164270_c7d1646ecf_o.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #7</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3211/2538163540_c2026243d2.jpg" title="Title #8">
|
||||
<img src="http://farm4.static.flickr.com/3211/2538163540_c2026243d2_s.jpg" alt="Title #8" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3211/2538163540_c2026243d2_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #8</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2315/2537343449_f933be8036.jpg" title="Title #9">
|
||||
<img src="http://farm3.static.flickr.com/2315/2537343449_f933be8036_s.jpg" alt="Title #9" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2315/2537343449_f933be8036_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #9</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2167/2082738157_436d1eb280.jpg" title="Title #10">
|
||||
<img src="http://farm3.static.flickr.com/2167/2082738157_436d1eb280_s.jpg" alt="Title #10" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2167/2082738157_436d1eb280_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #10</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2342/2083508720_fa906f685e.jpg" title="Title #11">
|
||||
<img src="http://farm3.static.flickr.com/2342/2083508720_fa906f685e_s.jpg" alt="Title #11" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2342/2083508720_fa906f685e_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #11</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2132/2082721339_4b06f6abba.jpg" title="Title #12">
|
||||
<img src="http://farm3.static.flickr.com/2132/2082721339_4b06f6abba_s.jpg" alt="Title #12" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2132/2082721339_4b06f6abba_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #12</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2139/2083503622_5b17f16a60.jpg" title="Title #13">
|
||||
<img src="http://farm3.static.flickr.com/2139/2083503622_5b17f16a60_s.jpg" alt="Title #13" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2139/2083503622_5b17f16a60_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #13</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2041/2083498578_114e117aab.jpg" title="Title #14">
|
||||
<img src="http://farm3.static.flickr.com/2041/2083498578_114e117aab_s.jpg" alt="Title #14" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2041/2083498578_114e117aab_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #14</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2149/2082705341_afcdda0663.jpg" title="Title #15">
|
||||
<img src="http://farm3.static.flickr.com/2149/2082705341_afcdda0663_s.jpg" alt="Title #15" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2149/2082705341_afcdda0663_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #15</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2014/2083478274_26775114dc.jpg" title="Title #16">
|
||||
<img src="http://farm3.static.flickr.com/2014/2083478274_26775114dc_s.jpg" alt="Title #16" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2014/2083478274_26775114dc_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #16</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2194/2083464534_122e849241.jpg" title="Title #17">
|
||||
<img src="http://farm3.static.flickr.com/2194/2083464534_122e849241_s.jpg" alt="Title #17" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2194/2083464534_122e849241_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #17</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3127/2538173236_b704e7622e.jpg" title="Title #18">
|
||||
<img src="http://farm4.static.flickr.com/3127/2538173236_b704e7622e_s.jpg" alt="Title #18" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3127/2538173236_b704e7622e_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #18</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2375/2538172432_3343a47341.jpg" title="Title #19">
|
||||
<img src="http://farm3.static.flickr.com/2375/2538172432_3343a47341_s.jpg" alt="Title #19" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2375/2538172432_3343a47341_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #19</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2353/2083476642_d00372b96f.jpg" title="Title #20">
|
||||
<img src="http://farm3.static.flickr.com/2353/2083476642_d00372b96f_s.jpg" alt="Title #20" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2353/2083476642_d00372b96f_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #20</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2201/1502907190_7b4a2a0e34.jpg" title="Title #21">
|
||||
<img src="http://farm3.static.flickr.com/2201/1502907190_7b4a2a0e34_s.jpg" alt="Title #21" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2201/1502907190_7b4a2a0e34_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #21</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm2.static.flickr.com/1116/1380178473_fc640e097a.jpg" title="Title #22">
|
||||
<img src="http://farm2.static.flickr.com/1116/1380178473_fc640e097a_s.jpg" alt="Title #22" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm2.static.flickr.com/1116/1380178473_fc640e097a_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #22</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm2.static.flickr.com/1260/930424599_e75865c0d6.jpg" title="Title #23">
|
||||
<img src="http://farm2.static.flickr.com/1260/930424599_e75865c0d6_s.jpg" alt="Title #23" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm2.static.flickr.com/1260/930424599_e75865c0d6_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #23</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">© 2009 Trent Foley</div>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($) {
|
||||
// We only want these styles applied when javascript is enabled
|
||||
$('div.navigation').css({'width' : '300px', 'float' : 'left'});
|
||||
$('div.content').css('display', 'block');
|
||||
|
||||
// Initially set opacity on thumbs and add
|
||||
// additional styling for hover effect on thumbs
|
||||
var onMouseOutOpacity = 0.67;
|
||||
$('#thumbs ul.thumbs li').opacityrollover({
|
||||
mouseOutOpacity: onMouseOutOpacity,
|
||||
mouseOverOpacity: 1.0,
|
||||
fadeSpeed: 'fast',
|
||||
exemptionSelector: '.selected'
|
||||
});
|
||||
|
||||
// Initialize Advanced Galleriffic Gallery
|
||||
var gallery = $('#thumbs').galleriffic({
|
||||
delay: 2500,
|
||||
numThumbs: 15,
|
||||
preloadAhead: 10,
|
||||
enableTopPager: true,
|
||||
enableBottomPager: true,
|
||||
maxPagesToShow: 7,
|
||||
imageContainerSel: '#slideshow',
|
||||
controlsContainerSel: '#controls',
|
||||
captionContainerSel: '#caption',
|
||||
loadingContainerSel: '#loading',
|
||||
renderSSControls: true,
|
||||
renderNavControls: true,
|
||||
playLinkText: 'Play Slideshow',
|
||||
pauseLinkText: 'Pause Slideshow',
|
||||
prevLinkText: '‹ Previous Photo',
|
||||
nextLinkText: 'Next Photo ›',
|
||||
nextPageLinkText: 'Next ›',
|
||||
prevPageLinkText: '‹ Prev',
|
||||
enableHistory: false,
|
||||
autoStart: false,
|
||||
syncTransitions: true,
|
||||
defaultTransitionDuration: 900,
|
||||
onSlideChange: function(prevIndex, nextIndex) {
|
||||
// 'this' refers to the gallery, which is an extension of $('#thumbs')
|
||||
this.find('ul.thumbs').children()
|
||||
.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
|
||||
.eq(nextIndex).fadeTo('fast', 1.0);
|
||||
},
|
||||
onPageTransitionOut: function(callback) {
|
||||
this.fadeTo('fast', 0.0, callback);
|
||||
},
|
||||
onPageTransitionIn: function() {
|
||||
this.fadeTo('fast', 1.0);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,441 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>Galleriffic | Integration with history plugin</title>
|
||||
<link rel="stylesheet" href="css/basic.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/galleriffic-3.css" type="text/css" />
|
||||
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/history.js/1.7.1/bundled/html5/jquery.history.js"></script>
|
||||
<script type="text/javascript" src="jquery.galleriffic.js"></script>
|
||||
<script type="text/javascript" src="jquery.opacityrollover.js"></script>
|
||||
<!-- We only want the thunbnails to display when javascript is disabled -->
|
||||
<script type="text/javascript">
|
||||
document.write('<style>.noscript { display: none; }</style>');
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="page">
|
||||
<div id="container">
|
||||
<h1><a href="index.html">Galleriffic</a></h1>
|
||||
<h2>Integration with history plugin</h2>
|
||||
|
||||
<!-- Start Advanced Gallery Html Containers -->
|
||||
<div id="gallery" class="content">
|
||||
<div id="controls" class="controls"></div>
|
||||
<div class="slideshow-container">
|
||||
<div id="loading" class="loader"></div>
|
||||
<div id="slideshow" class="slideshow"></div>
|
||||
</div>
|
||||
<div id="caption" class="caption-container"></div>
|
||||
</div>
|
||||
<div id="thumbs" class="navigation">
|
||||
<ul class="thumbs noscript">
|
||||
<li>
|
||||
<a class="thumb" name="leaf" href="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015.jpg" title="Title #0">
|
||||
<img src="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015_s.jpg" alt="Title #0" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #0</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" name="drop" href="http://farm3.static.flickr.com/2404/2538171134_2f77bc00d9.jpg" title="Title #1">
|
||||
<img src="http://farm3.static.flickr.com/2404/2538171134_2f77bc00d9_s.jpg" alt="Title #1" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
Any html can be placed here ...
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" name="bigleaf" href="http://farm3.static.flickr.com/2093/2538168854_f75e408156.jpg" title="Title #2">
|
||||
<img src="http://farm3.static.flickr.com/2093/2538168854_f75e408156_s.jpg" alt="Title #2" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2093/2538168854_f75e408156_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #2</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" name="lizard" href="http://farm4.static.flickr.com/3153/2538167690_c812461b7b.jpg" title="Title #3">
|
||||
<img src="http://farm4.static.flickr.com/3153/2538167690_c812461b7b_s.jpg" alt="Title #3" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3153/2538167690_c812461b7b_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #3</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3150/2538167224_0a6075dd18.jpg" title="Title #4">
|
||||
<img src="http://farm4.static.flickr.com/3150/2538167224_0a6075dd18_s.jpg" alt="Title #4" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3150/2538167224_0a6075dd18_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #4</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3204/2537348699_bfd38bd9fd.jpg" title="Title #5">
|
||||
<img src="http://farm4.static.flickr.com/3204/2537348699_bfd38bd9fd_s.jpg" alt="Title #5" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3204/2537348699_bfd38bd9fd_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #5</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3124/2538164582_b9d18f9d1b.jpg" title="Title #6">
|
||||
<img src="http://farm4.static.flickr.com/3124/2538164582_b9d18f9d1b_s.jpg" alt="Title #6" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3124/2538164582_b9d18f9d1b_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #6</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3205/2538164270_4369bbdd23.jpg" title="Title #7">
|
||||
<img src="http://farm4.static.flickr.com/3205/2538164270_4369bbdd23_s.jpg" alt="Title #7" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3205/2538164270_c7d1646ecf_o.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #7</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3211/2538163540_c2026243d2.jpg" title="Title #8">
|
||||
<img src="http://farm4.static.flickr.com/3211/2538163540_c2026243d2_s.jpg" alt="Title #8" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3211/2538163540_c2026243d2_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #8</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2315/2537343449_f933be8036.jpg" title="Title #9">
|
||||
<img src="http://farm3.static.flickr.com/2315/2537343449_f933be8036_s.jpg" alt="Title #9" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2315/2537343449_f933be8036_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #9</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2167/2082738157_436d1eb280.jpg" title="Title #10">
|
||||
<img src="http://farm3.static.flickr.com/2167/2082738157_436d1eb280_s.jpg" alt="Title #10" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2167/2082738157_436d1eb280_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #10</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2342/2083508720_fa906f685e.jpg" title="Title #11">
|
||||
<img src="http://farm3.static.flickr.com/2342/2083508720_fa906f685e_s.jpg" alt="Title #11" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2342/2083508720_fa906f685e_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #11</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2132/2082721339_4b06f6abba.jpg" title="Title #12">
|
||||
<img src="http://farm3.static.flickr.com/2132/2082721339_4b06f6abba_s.jpg" alt="Title #12" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2132/2082721339_4b06f6abba_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #12</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2139/2083503622_5b17f16a60.jpg" title="Title #13">
|
||||
<img src="http://farm3.static.flickr.com/2139/2083503622_5b17f16a60_s.jpg" alt="Title #13" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2139/2083503622_5b17f16a60_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #13</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2041/2083498578_114e117aab.jpg" title="Title #14">
|
||||
<img src="http://farm3.static.flickr.com/2041/2083498578_114e117aab_s.jpg" alt="Title #14" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2041/2083498578_114e117aab_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #14</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2149/2082705341_afcdda0663.jpg" title="Title #15">
|
||||
<img src="http://farm3.static.flickr.com/2149/2082705341_afcdda0663_s.jpg" alt="Title #15" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2149/2082705341_afcdda0663_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #15</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2014/2083478274_26775114dc.jpg" title="Title #16">
|
||||
<img src="http://farm3.static.flickr.com/2014/2083478274_26775114dc_s.jpg" alt="Title #16" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2014/2083478274_26775114dc_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #16</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2194/2083464534_122e849241.jpg" title="Title #17">
|
||||
<img src="http://farm3.static.flickr.com/2194/2083464534_122e849241_s.jpg" alt="Title #17" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2194/2083464534_122e849241_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #17</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3127/2538173236_b704e7622e.jpg" title="Title #18">
|
||||
<img src="http://farm4.static.flickr.com/3127/2538173236_b704e7622e_s.jpg" alt="Title #18" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3127/2538173236_b704e7622e_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #18</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2375/2538172432_3343a47341.jpg" title="Title #19">
|
||||
<img src="http://farm3.static.flickr.com/2375/2538172432_3343a47341_s.jpg" alt="Title #19" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2375/2538172432_3343a47341_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #19</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2353/2083476642_d00372b96f.jpg" title="Title #20">
|
||||
<img src="http://farm3.static.flickr.com/2353/2083476642_d00372b96f_s.jpg" alt="Title #20" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2353/2083476642_d00372b96f_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #20</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2201/1502907190_7b4a2a0e34.jpg" title="Title #21">
|
||||
<img src="http://farm3.static.flickr.com/2201/1502907190_7b4a2a0e34_s.jpg" alt="Title #21" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2201/1502907190_7b4a2a0e34_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #21</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm2.static.flickr.com/1116/1380178473_fc640e097a.jpg" title="Title #22">
|
||||
<img src="http://farm2.static.flickr.com/1116/1380178473_fc640e097a_s.jpg" alt="Title #22" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm2.static.flickr.com/1116/1380178473_fc640e097a_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #22</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm2.static.flickr.com/1260/930424599_e75865c0d6.jpg" title="Title #23">
|
||||
<img src="http://farm2.static.flickr.com/1260/930424599_e75865c0d6_s.jpg" alt="Title #23" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm2.static.flickr.com/1260/930424599_e75865c0d6_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #23</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- End Advanced Gallery Html Containers -->
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">© 2009 Trent Foley</div>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($) {
|
||||
// We only want these styles applied when javascript is enabled
|
||||
$('div.navigation').css({'width' : '300px', 'float' : 'left'});
|
||||
$('div.content').css('display', 'block');
|
||||
|
||||
// Initially set opacity on thumbs and add
|
||||
// additional styling for hover effect on thumbs
|
||||
var onMouseOutOpacity = 0.67;
|
||||
$('#thumbs ul.thumbs li').opacityrollover({
|
||||
mouseOutOpacity: onMouseOutOpacity,
|
||||
mouseOverOpacity: 1.0,
|
||||
fadeSpeed: 'fast',
|
||||
exemptionSelector: '.selected'
|
||||
});
|
||||
|
||||
// Initialize Advanced Galleriffic Gallery
|
||||
var gallery = $('#thumbs').galleriffic({
|
||||
delay: 2500,
|
||||
numThumbs: 15,
|
||||
preloadAhead: 10,
|
||||
enableTopPager: true,
|
||||
enableBottomPager: true,
|
||||
maxPagesToShow: 7,
|
||||
imageContainerSel: '#slideshow',
|
||||
controlsContainerSel: '#controls',
|
||||
captionContainerSel: '#caption',
|
||||
loadingContainerSel: '#loading',
|
||||
renderSSControls: true,
|
||||
renderNavControls: true,
|
||||
playLinkText: 'Play Slideshow',
|
||||
pauseLinkText: 'Pause Slideshow',
|
||||
prevLinkText: '‹ Previous Photo',
|
||||
nextLinkText: 'Next Photo ›',
|
||||
nextPageLinkText: 'Next ›',
|
||||
prevPageLinkText: '‹ Prev',
|
||||
enableHistory: true,
|
||||
autoStart: false,
|
||||
syncTransitions: true,
|
||||
defaultTransitionDuration: 900,
|
||||
onSlideChange: function(prevIndex, nextIndex) {
|
||||
// 'this' refers to the gallery, which is an extension of $('#thumbs')
|
||||
this.find('ul.thumbs').children()
|
||||
.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
|
||||
.eq(nextIndex).fadeTo('fast', 1.0);
|
||||
},
|
||||
onPageTransitionOut: function(callback) {
|
||||
this.fadeTo('fast', 0.0, callback);
|
||||
},
|
||||
onPageTransitionIn: function() {
|
||||
this.fadeTo('fast', 1.0);
|
||||
}
|
||||
});
|
||||
|
||||
/**** Functions to support integration of galleriffic with the jquery.history plugin ****/
|
||||
|
||||
// PageLoad function
|
||||
// This function is called when:
|
||||
// 1. after calling $.historyInit();
|
||||
// 2. after calling $.historyLoad();
|
||||
// 3. after pushing "Go Back" button of a browser
|
||||
function pageload(hash) {
|
||||
// alert("pageload: " + hash);
|
||||
// hash doesn't contain the first # character.
|
||||
if(hash) {
|
||||
$.galleriffic.gotoImage(hash);
|
||||
} else {
|
||||
gallery.gotoIndex(0);
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize history plugin.
|
||||
// The callback is called at once by present location.hash.
|
||||
$.historyInit(pageload, "advanced.html");
|
||||
|
||||
// set onlick event for buttons using the jQuery 1.3 live method
|
||||
$("a[rel='history']").live('click', function(e) {
|
||||
if (e.button != 0) return true;
|
||||
|
||||
var hash = this.href;
|
||||
hash = hash.replace(/^.*#/, '');
|
||||
|
||||
// moves to a new page.
|
||||
// pageload is called at once.
|
||||
// hash don't contain "#", "?"
|
||||
$.historyLoad(hash);
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
/****************************************************************************************/
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,542 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>Galleriffic | Insert an image into the gallery after initialization</title>
|
||||
<link rel="stylesheet" href="css/basic.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/galleriffic-4.css" type="text/css" />
|
||||
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/history.js/1.7.1/bundled/html5/jquery.history.js"></script>
|
||||
<script type="text/javascript" src="jquery.galleriffic.js"></script>
|
||||
<script type="text/javascript" src="jquery.opacityrollover.js"></script>
|
||||
<!-- We only want the thunbnails to display when javascript is disabled -->
|
||||
<script type="text/javascript">
|
||||
document.write('<style>.noscript { display: none; }</style>');
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="page">
|
||||
<div id="container">
|
||||
<h1><a href="index.html">Galleriffic</a></h1>
|
||||
<h2>Insert and remove images after initialization</h2>
|
||||
|
||||
<!-- Start Advanced Gallery Html Containers -->
|
||||
<div id="gallery" class="content">
|
||||
<div id="controls" class="controls"></div>
|
||||
<div class="slideshow-container">
|
||||
<div id="loading" class="loader"></div>
|
||||
<div id="slideshow" class="slideshow"></div>
|
||||
<div id="caption" class="caption-container"></div>
|
||||
</div>
|
||||
<div id="captionToggle">
|
||||
<a href="#toggleCaption" class="off" title="Show Caption">Show Caption</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="thumbs" class="navigation">
|
||||
<ul class="thumbs noscript">
|
||||
<li>
|
||||
<a class="thumb" name="leaf" href="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015.jpg" title="Title #0">
|
||||
<img src="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015_s.jpg" alt="Title #0" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #0</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" name="drop" href="http://farm3.static.flickr.com/2404/2538171134_2f77bc00d9.jpg" title="Title #1">
|
||||
<img src="http://farm3.static.flickr.com/2404/2538171134_2f77bc00d9_s.jpg" alt="Title #1" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
Any html can be placed here ...
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" name="bigleaf" href="http://farm3.static.flickr.com/2093/2538168854_f75e408156.jpg" title="Title #2">
|
||||
<img src="http://farm3.static.flickr.com/2093/2538168854_f75e408156_s.jpg" alt="Title #2" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2093/2538168854_f75e408156_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #2</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" name="lizard" href="http://farm4.static.flickr.com/3153/2538167690_c812461b7b.jpg" title="Title #3">
|
||||
<img src="http://farm4.static.flickr.com/3153/2538167690_c812461b7b_s.jpg" alt="Title #3" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3153/2538167690_c812461b7b_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #3</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3150/2538167224_0a6075dd18.jpg" title="Title #4">
|
||||
<img src="http://farm4.static.flickr.com/3150/2538167224_0a6075dd18_s.jpg" alt="Title #4" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3150/2538167224_0a6075dd18_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #4</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3204/2537348699_bfd38bd9fd.jpg" title="Title #5">
|
||||
<img src="http://farm4.static.flickr.com/3204/2537348699_bfd38bd9fd_s.jpg" alt="Title #5" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3204/2537348699_bfd38bd9fd_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #5</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3124/2538164582_b9d18f9d1b.jpg" title="Title #6">
|
||||
<img src="http://farm4.static.flickr.com/3124/2538164582_b9d18f9d1b_s.jpg" alt="Title #6" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3124/2538164582_b9d18f9d1b_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #6</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3205/2538164270_4369bbdd23.jpg" title="Title #7">
|
||||
<img src="http://farm4.static.flickr.com/3205/2538164270_4369bbdd23_s.jpg" alt="Title #7" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3205/2538164270_c7d1646ecf_o.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #7</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3211/2538163540_c2026243d2.jpg" title="Title #8">
|
||||
<img src="http://farm4.static.flickr.com/3211/2538163540_c2026243d2_s.jpg" alt="Title #8" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3211/2538163540_c2026243d2_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #8</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2315/2537343449_f933be8036.jpg" title="Title #9">
|
||||
<img src="http://farm3.static.flickr.com/2315/2537343449_f933be8036_s.jpg" alt="Title #9" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2315/2537343449_f933be8036_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #9</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2167/2082738157_436d1eb280.jpg" title="Title #10">
|
||||
<img src="http://farm3.static.flickr.com/2167/2082738157_436d1eb280_s.jpg" alt="Title #10" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2167/2082738157_436d1eb280_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #10</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2342/2083508720_fa906f685e.jpg" title="Title #11">
|
||||
<img src="http://farm3.static.flickr.com/2342/2083508720_fa906f685e_s.jpg" alt="Title #11" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2342/2083508720_fa906f685e_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #11</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2132/2082721339_4b06f6abba.jpg" title="Title #12">
|
||||
<img src="http://farm3.static.flickr.com/2132/2082721339_4b06f6abba_s.jpg" alt="Title #12" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2132/2082721339_4b06f6abba_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #12</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2139/2083503622_5b17f16a60.jpg" title="Title #13">
|
||||
<img src="http://farm3.static.flickr.com/2139/2083503622_5b17f16a60_s.jpg" alt="Title #13" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2139/2083503622_5b17f16a60_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #13</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2041/2083498578_114e117aab.jpg" title="Title #14">
|
||||
<img src="http://farm3.static.flickr.com/2041/2083498578_114e117aab_s.jpg" alt="Title #14" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2041/2083498578_114e117aab_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #14</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2149/2082705341_afcdda0663.jpg" title="Title #15">
|
||||
<img src="http://farm3.static.flickr.com/2149/2082705341_afcdda0663_s.jpg" alt="Title #15" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2149/2082705341_afcdda0663_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #15</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2014/2083478274_26775114dc.jpg" title="Title #16">
|
||||
<img src="http://farm3.static.flickr.com/2014/2083478274_26775114dc_s.jpg" alt="Title #16" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2014/2083478274_26775114dc_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #16</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2194/2083464534_122e849241.jpg" title="Title #17">
|
||||
<img src="http://farm3.static.flickr.com/2194/2083464534_122e849241_s.jpg" alt="Title #17" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2194/2083464534_122e849241_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #17</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3127/2538173236_b704e7622e.jpg" title="Title #18">
|
||||
<img src="http://farm4.static.flickr.com/3127/2538173236_b704e7622e_s.jpg" alt="Title #18" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3127/2538173236_b704e7622e_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #18</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2375/2538172432_3343a47341.jpg" title="Title #19">
|
||||
<img src="http://farm3.static.flickr.com/2375/2538172432_3343a47341_s.jpg" alt="Title #19" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2375/2538172432_3343a47341_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #19</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2353/2083476642_d00372b96f.jpg" title="Title #20">
|
||||
<img src="http://farm3.static.flickr.com/2353/2083476642_d00372b96f_s.jpg" alt="Title #20" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2353/2083476642_d00372b96f_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #20</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2201/1502907190_7b4a2a0e34.jpg" title="Title #21">
|
||||
<img src="http://farm3.static.flickr.com/2201/1502907190_7b4a2a0e34_s.jpg" alt="Title #21" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2201/1502907190_7b4a2a0e34_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #21</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm2.static.flickr.com/1116/1380178473_fc640e097a.jpg" title="Title #22">
|
||||
<img src="http://farm2.static.flickr.com/1116/1380178473_fc640e097a_s.jpg" alt="Title #22" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm2.static.flickr.com/1116/1380178473_fc640e097a_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #22</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm2.static.flickr.com/1260/930424599_e75865c0d6.jpg" title="Title #23">
|
||||
<img src="http://farm2.static.flickr.com/1260/930424599_e75865c0d6_s.jpg" alt="Title #23" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="download">
|
||||
<a href="http://farm2.static.flickr.com/1260/930424599_e75865c0d6_b.jpg">Download Original</a>
|
||||
</div>
|
||||
<div class="image-title">Title #23</div>
|
||||
<div class="image-desc">Description</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- End Advanced Gallery Html Containers -->
|
||||
|
||||
<!-- Add image link -->
|
||||
<div style="clear: left; float: left; padding-top: 10px;">
|
||||
<a href="#addImage" id="addImageLink">Insert Image into Position 5</a>
|
||||
<br />
|
||||
<a href="#removeImageByIndex" id="removeImageByIndexLink">Remove Image at Position 5</a>
|
||||
<br />
|
||||
<a href="#removeImageByHash" id="removeImageByHashLink">Remove the Lizard Image (by its hash value 'lizard')</a>
|
||||
</div>
|
||||
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">© 2009 Trent Foley</div>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($) {
|
||||
// We only want these styles applied when javascript is enabled
|
||||
$('div.navigation').css({'width' : '300px', 'float' : 'left'});
|
||||
$('div.content').css('display', 'block');
|
||||
|
||||
// Initially set opacity on thumbs and add
|
||||
// additional styling for hover effect on thumbs
|
||||
var onMouseOutOpacity = 0.67;
|
||||
$('#thumbs ul.thumbs li').opacityrollover({
|
||||
mouseOutOpacity: onMouseOutOpacity,
|
||||
mouseOverOpacity: 1.0,
|
||||
fadeSpeed: 'fast',
|
||||
exemptionSelector: '.selected'
|
||||
});
|
||||
|
||||
// Enable toggling of the caption
|
||||
var captionOpacity = 0.0;
|
||||
$('#captionToggle a').click(function(e) {
|
||||
var link = $(this);
|
||||
|
||||
var isOff = link.hasClass('off');
|
||||
var removeClass = isOff ? 'off' : 'on';
|
||||
var addClass = isOff ? 'on' : 'off';
|
||||
var linkText = isOff ? 'Hide Caption' : 'Show Caption';
|
||||
captionOpacity = isOff ? 0.7 : 0.0;
|
||||
|
||||
link.removeClass(removeClass).addClass(addClass).text(linkText).attr('title', linkText);
|
||||
$('#caption span.image-caption').fadeTo(1000, captionOpacity);
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
// Initialize Advanced Galleriffic Gallery
|
||||
var gallery = $('#thumbs').galleriffic({
|
||||
delay: 2500,
|
||||
numThumbs: 15,
|
||||
preloadAhead: 10,
|
||||
enableTopPager: true,
|
||||
enableBottomPager: true,
|
||||
maxPagesToShow: 7,
|
||||
imageContainerSel: '#slideshow',
|
||||
controlsContainerSel: '#controls',
|
||||
captionContainerSel: '#caption',
|
||||
loadingContainerSel: '#loading',
|
||||
renderSSControls: true,
|
||||
renderNavControls: true,
|
||||
playLinkText: 'Play Slideshow',
|
||||
pauseLinkText: 'Pause Slideshow',
|
||||
prevLinkText: '‹ Previous Photo',
|
||||
nextLinkText: 'Next Photo ›',
|
||||
nextPageLinkText: 'Next ›',
|
||||
prevPageLinkText: '‹ Prev',
|
||||
enableHistory: true,
|
||||
autoStart: false,
|
||||
syncTransitions: true,
|
||||
defaultTransitionDuration: 900,
|
||||
onSlideChange: function(prevIndex, nextIndex) {
|
||||
// 'this' refers to the gallery, which is an extension of $('#thumbs')
|
||||
this.find('ul.thumbs').children()
|
||||
.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
|
||||
.eq(nextIndex).fadeTo('fast', 1.0);
|
||||
},
|
||||
onTransitionOut: function(slide, caption, isSync, callback) {
|
||||
slide.fadeTo(this.getDefaultTransitionDuration(isSync), 0.0, callback);
|
||||
caption.fadeTo(this.getDefaultTransitionDuration(isSync), 0.0);
|
||||
},
|
||||
onTransitionIn: function(slide, caption, isSync) {
|
||||
var duration = this.getDefaultTransitionDuration(isSync);
|
||||
slide.fadeTo(duration, 1.0);
|
||||
|
||||
// Position the caption at the bottom of the image and set its opacity
|
||||
var slideImage = slide.find('img');
|
||||
caption.width(slideImage.width())
|
||||
.css({
|
||||
'bottom' : Math.floor((slide.height() - slideImage.outerHeight()) / 2),
|
||||
'left' : Math.floor((slide.width() - slideImage.width()) / 2) + slideImage.outerWidth() - slideImage.width()
|
||||
})
|
||||
.fadeTo(duration, captionOpacity);
|
||||
},
|
||||
onPageTransitionOut: function(callback) {
|
||||
this.fadeTo('fast', 0.0, callback);
|
||||
},
|
||||
onPageTransitionIn: function() {
|
||||
this.fadeTo('fast', 1.0);
|
||||
},
|
||||
onImageAdded: function(imageData, $li) {
|
||||
$li.opacityrollover({
|
||||
mouseOutOpacity: onMouseOutOpacity,
|
||||
mouseOverOpacity: 1.0,
|
||||
fadeSpeed: 'fast',
|
||||
exemptionSelector: '.selected'
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
/**** Functions to support integration of galleriffic with the jquery.history plugin ****/
|
||||
|
||||
// PageLoad function
|
||||
// This function is called when:
|
||||
// 1. after calling $.historyInit();
|
||||
// 2. after calling $.historyLoad();
|
||||
// 3. after pushing "Go Back" button of a browser
|
||||
function pageload(hash) {
|
||||
// alert("pageload: " + hash);
|
||||
// hash doesn't contain the first # character.
|
||||
if(hash) {
|
||||
$.galleriffic.gotoImage(hash);
|
||||
} else {
|
||||
gallery.gotoIndex(0);
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize history plugin.
|
||||
// The callback is called at once by present location.hash.
|
||||
$.historyInit(pageload, "advanced.html");
|
||||
|
||||
// set onlick event for buttons using the jQuery 1.3 live method
|
||||
$("a[rel='history']").live('click', function() {
|
||||
if (e.button != 0) return true;
|
||||
|
||||
var hash = this.href;
|
||||
hash = hash.replace(/^.*#/, '');
|
||||
|
||||
// moves to a new page.
|
||||
// pageload is called at once.
|
||||
// hash don't contain "#", "?"
|
||||
$.historyLoad(hash);
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
/****************************************************************************************/
|
||||
|
||||
/********************** Attach click event to the Add Image Link ************************/
|
||||
|
||||
$('#addImageLink').click(function(e) {
|
||||
gallery.insertImage('<li> \
|
||||
<a class="thumb" href="http://farm1.static.flickr.com/79/263120676_2518b40e5b.jpg" title="Dynamically Added Image">\
|
||||
<img src="http://farm1.static.flickr.com/79/263120676_2518b40e5b_s.jpg" alt="Dynamically Added Image" />\
|
||||
</a> \
|
||||
<div class="caption"> \
|
||||
<div class="download"> \
|
||||
<a href="http://farm1.static.flickr.com/79/263120676_2518b40e5b_o_d.jpg">Download Original</a> \
|
||||
</div> \
|
||||
<div class="image-title">Dynamically Added Image</div> \
|
||||
<div class="image-desc"> \
|
||||
<img src="http://farm1.static.flickr.com/38/buddyicons/77261001@N00.jpg" alt="ringydingydo" /> \
|
||||
Photo taken by <a href="http://www.flickr.com/photos/ringydingydo/">ringydingydo</a> \
|
||||
</div> \
|
||||
</div> \
|
||||
</li>', 5);
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
/****************************************************************************************/
|
||||
|
||||
/***************** Attach click event to the Remove Image By Index Link *****************/
|
||||
|
||||
$('#removeImageByIndexLink').click(function(e) {
|
||||
if (!gallery.removeImageByIndex(5))
|
||||
alert('There is no longer an image at position 5 to remove!');
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
/****************************************************************************************/
|
||||
|
||||
/***************** Attach click event to the Remove Image By Hash Link ******************/
|
||||
|
||||
$('#removeImageByHashLink').click(function(e) {
|
||||
if (!gallery.removeImageByHash('lizard'))
|
||||
alert('The lizard image has already been removed!');
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
/****************************************************************************************/
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,479 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>Galleriffic | Custom layout with external controls</title>
|
||||
<link rel="stylesheet" href="css/basic.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/galleriffic-5.css" type="text/css" />
|
||||
|
||||
<!-- <link rel="stylesheet" href="css/white.css" type="text/css" /> -->
|
||||
<link rel="stylesheet" href="css/black.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/history.js/1.7.1/bundled/html5/jquery.history.js"></script>
|
||||
<script type="text/javascript" src="jquery.galleriffic.js"></script>
|
||||
<script type="text/javascript" src="jquery.opacityrollover.js"></script>
|
||||
<!-- We only want the thunbnails to display when javascript is disabled -->
|
||||
<script type="text/javascript">
|
||||
document.write('<style>.noscript { display: none; }</style>');
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="page">
|
||||
<div id="container">
|
||||
<h1><a href="index.html">Galleriffic</a></h1>
|
||||
<h2>Alternate layout using custom previous/next page controls</h2>
|
||||
|
||||
<!-- Start Advanced Gallery Html Containers -->
|
||||
<div class="navigation-container">
|
||||
<div id="thumbs" class="navigation">
|
||||
<a class="pageLink prev" style="visibility: hidden;" href="#" title="Previous Page"></a>
|
||||
|
||||
<ul class="thumbs noscript">
|
||||
<li>
|
||||
<a class="thumb" name="leaf" href="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015.jpg" title="Title #0">
|
||||
<img src="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015_s.jpg" alt="Title #0" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #0</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" name="drop" href="http://farm3.static.flickr.com/2404/2538171134_2f77bc00d9.jpg" title="Title #1">
|
||||
<img src="http://farm3.static.flickr.com/2404/2538171134_2f77bc00d9_s.jpg" alt="Title #1" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
Any html can be placed here ...
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" name="bigleaf" href="http://farm3.static.flickr.com/2093/2538168854_f75e408156.jpg" title="Title #2">
|
||||
<img src="http://farm3.static.flickr.com/2093/2538168854_f75e408156_s.jpg" alt="Title #2" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #2</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2093/2538168854_f75e408156_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" name="lizard" href="http://farm4.static.flickr.com/3153/2538167690_c812461b7b.jpg" title="Title #3">
|
||||
<img src="http://farm4.static.flickr.com/3153/2538167690_c812461b7b_s.jpg" alt="Title #3" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #3</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3153/2538167690_c812461b7b_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3150/2538167224_0a6075dd18.jpg" title="Title #4">
|
||||
<img src="http://farm4.static.flickr.com/3150/2538167224_0a6075dd18_s.jpg" alt="Title #4" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #4</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3150/2538167224_0a6075dd18_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3204/2537348699_bfd38bd9fd.jpg" title="Title #5">
|
||||
<img src="http://farm4.static.flickr.com/3204/2537348699_bfd38bd9fd_s.jpg" alt="Title #5" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #5</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3204/2537348699_bfd38bd9fd_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3124/2538164582_b9d18f9d1b.jpg" title="Title #6">
|
||||
<img src="http://farm4.static.flickr.com/3124/2538164582_b9d18f9d1b_s.jpg" alt="Title #6" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #6</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3124/2538164582_b9d18f9d1b_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3205/2538164270_4369bbdd23.jpg" title="Title #7">
|
||||
<img src="http://farm4.static.flickr.com/3205/2538164270_4369bbdd23_s.jpg" alt="Title #7" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #7</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3205/2538164270_c7d1646ecf_o.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3211/2538163540_c2026243d2.jpg" title="Title #8">
|
||||
<img src="http://farm4.static.flickr.com/3211/2538163540_c2026243d2_s.jpg" alt="Title #8" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #8</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3211/2538163540_c2026243d2_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2315/2537343449_f933be8036.jpg" title="Title #9">
|
||||
<img src="http://farm3.static.flickr.com/2315/2537343449_f933be8036_s.jpg" alt="Title #9" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #9</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2315/2537343449_f933be8036_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2167/2082738157_436d1eb280.jpg" title="Title #10">
|
||||
<img src="http://farm3.static.flickr.com/2167/2082738157_436d1eb280_s.jpg" alt="Title #10" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #10</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2167/2082738157_436d1eb280_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2342/2083508720_fa906f685e.jpg" title="Title #11">
|
||||
<img src="http://farm3.static.flickr.com/2342/2083508720_fa906f685e_s.jpg" alt="Title #11" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #11</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2342/2083508720_fa906f685e_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2132/2082721339_4b06f6abba.jpg" title="Title #12">
|
||||
<img src="http://farm3.static.flickr.com/2132/2082721339_4b06f6abba_s.jpg" alt="Title #12" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #12</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2132/2082721339_4b06f6abba_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2139/2083503622_5b17f16a60.jpg" title="Title #13">
|
||||
<img src="http://farm3.static.flickr.com/2139/2083503622_5b17f16a60_s.jpg" alt="Title #13" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #13</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2139/2083503622_5b17f16a60_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2041/2083498578_114e117aab.jpg" title="Title #14">
|
||||
<img src="http://farm3.static.flickr.com/2041/2083498578_114e117aab_s.jpg" alt="Title #14" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #14</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2041/2083498578_114e117aab_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2149/2082705341_afcdda0663.jpg" title="Title #15">
|
||||
<img src="http://farm3.static.flickr.com/2149/2082705341_afcdda0663_s.jpg" alt="Title #15" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #15</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2149/2082705341_afcdda0663_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2014/2083478274_26775114dc.jpg" title="Title #16">
|
||||
<img src="http://farm3.static.flickr.com/2014/2083478274_26775114dc_s.jpg" alt="Title #16" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #16</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2014/2083478274_26775114dc_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2194/2083464534_122e849241.jpg" title="Title #17">
|
||||
<img src="http://farm3.static.flickr.com/2194/2083464534_122e849241_s.jpg" alt="Title #17" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #17</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2194/2083464534_122e849241_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm4.static.flickr.com/3127/2538173236_b704e7622e.jpg" title="Title #18">
|
||||
<img src="http://farm4.static.flickr.com/3127/2538173236_b704e7622e_s.jpg" alt="Title #18" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #18</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm4.static.flickr.com/3127/2538173236_b704e7622e_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2375/2538172432_3343a47341.jpg" title="Title #19">
|
||||
<img src="http://farm3.static.flickr.com/2375/2538172432_3343a47341_s.jpg" alt="Title #19" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #19</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2375/2538172432_3343a47341_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2353/2083476642_d00372b96f.jpg" title="Title #20">
|
||||
<img src="http://farm3.static.flickr.com/2353/2083476642_d00372b96f_s.jpg" alt="Title #20" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #20</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2353/2083476642_d00372b96f_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm3.static.flickr.com/2201/1502907190_7b4a2a0e34.jpg" title="Title #21">
|
||||
<img src="http://farm3.static.flickr.com/2201/1502907190_7b4a2a0e34_s.jpg" alt="Title #21" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #21</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm3.static.flickr.com/2201/1502907190_7b4a2a0e34_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm2.static.flickr.com/1116/1380178473_fc640e097a.jpg" title="Title #22">
|
||||
<img src="http://farm2.static.flickr.com/1116/1380178473_fc640e097a_s.jpg" alt="Title #22" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #22</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm2.static.flickr.com/1116/1380178473_fc640e097a_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="thumb" href="http://farm2.static.flickr.com/1260/930424599_e75865c0d6.jpg" title="Title #23">
|
||||
<img src="http://farm2.static.flickr.com/1260/930424599_e75865c0d6_s.jpg" alt="Title #23" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
<div class="image-title">Title #23</div>
|
||||
<div class="image-desc">Description</div>
|
||||
<div class="download">
|
||||
<a href="http://farm2.static.flickr.com/1260/930424599_e75865c0d6_b.jpg">Download Original</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a class="pageLink next" style="visibility: hidden;" href="#" title="Next Page"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="slideshow-container">
|
||||
<div id="controls" class="controls"></div>
|
||||
<div id="loading" class="loader"></div>
|
||||
<div id="slideshow" class="slideshow"></div>
|
||||
</div>
|
||||
<div id="caption" class="caption-container">
|
||||
<div class="photo-index"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End Gallery Html Containers -->
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">© 2009 Trent Foley</div>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($) {
|
||||
// We only want these styles applied when javascript is enabled
|
||||
$('div.content').css('display', 'block');
|
||||
|
||||
// Initially set opacity on thumbs and add
|
||||
// additional styling for hover effect on thumbs
|
||||
var onMouseOutOpacity = 0.67;
|
||||
$('#thumbs ul.thumbs li, div.navigation a.pageLink').opacityrollover({
|
||||
mouseOutOpacity: onMouseOutOpacity,
|
||||
mouseOverOpacity: 1.0,
|
||||
fadeSpeed: 'fast',
|
||||
exemptionSelector: '.selected'
|
||||
});
|
||||
|
||||
// Initialize Advanced Galleriffic Gallery
|
||||
var gallery = $('#thumbs').galleriffic({
|
||||
delay: 2500,
|
||||
numThumbs: 10,
|
||||
preloadAhead: 10,
|
||||
enableTopPager: false,
|
||||
enableBottomPager: false,
|
||||
imageContainerSel: '#slideshow',
|
||||
controlsContainerSel: '#controls',
|
||||
captionContainerSel: '#caption',
|
||||
loadingContainerSel: '#loading',
|
||||
renderSSControls: true,
|
||||
renderNavControls: true,
|
||||
playLinkText: 'Play Slideshow',
|
||||
pauseLinkText: 'Pause Slideshow',
|
||||
prevLinkText: '‹ Previous Photo',
|
||||
nextLinkText: 'Next Photo ›',
|
||||
nextPageLinkText: 'Next ›',
|
||||
prevPageLinkText: '‹ Prev',
|
||||
enableHistory: true,
|
||||
autoStart: false,
|
||||
syncTransitions: true,
|
||||
defaultTransitionDuration: 900,
|
||||
onSlideChange: function(prevIndex, nextIndex) {
|
||||
// 'this' refers to the gallery, which is an extension of $('#thumbs')
|
||||
this.find('ul.thumbs').children()
|
||||
.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
|
||||
.eq(nextIndex).fadeTo('fast', 1.0);
|
||||
|
||||
// Update the photo index display
|
||||
this.$captionContainer.find('div.photo-index')
|
||||
.html('Photo '+ (nextIndex+1) +' of '+ this.data.length);
|
||||
},
|
||||
onPageTransitionOut: function(callback) {
|
||||
this.fadeTo('fast', 0.0, callback);
|
||||
},
|
||||
onPageTransitionIn: function() {
|
||||
var prevPageLink = this.find('a.prev').css('visibility', 'hidden');
|
||||
var nextPageLink = this.find('a.next').css('visibility', 'hidden');
|
||||
|
||||
// Show appropriate next / prev page links
|
||||
if (this.displayedPage > 0)
|
||||
prevPageLink.css('visibility', 'visible');
|
||||
|
||||
var lastPage = this.getNumPages() - 1;
|
||||
if (this.displayedPage < lastPage)
|
||||
nextPageLink.css('visibility', 'visible');
|
||||
|
||||
this.fadeTo('fast', 1.0);
|
||||
}
|
||||
});
|
||||
|
||||
/**************** Event handlers for custom next / prev page links **********************/
|
||||
|
||||
gallery.find('a.prev').click(function(e) {
|
||||
gallery.previousPage();
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
gallery.find('a.next').click(function(e) {
|
||||
gallery.nextPage();
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
/****************************************************************************************/
|
||||
|
||||
/**** Functions to support integration of galleriffic with the jquery.history plugin ****/
|
||||
|
||||
// PageLoad function
|
||||
// This function is called when:
|
||||
// 1. after calling $.historyInit();
|
||||
// 2. after calling $.historyLoad();
|
||||
// 3. after pushing "Go Back" button of a browser
|
||||
function pageload(hash) {
|
||||
// alert("pageload: " + hash);
|
||||
// hash doesn't contain the first # character.
|
||||
if(hash) {
|
||||
$.galleriffic.gotoImage(hash);
|
||||
} else {
|
||||
gallery.gotoIndex(0);
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize history plugin.
|
||||
// The callback is called at once by present location.hash.
|
||||
$.historyInit(pageload, "advanced.html");
|
||||
|
||||
// set onlick event for buttons using the jQuery 1.3 live method
|
||||
$("a[rel='history']").live('click', function(e) {
|
||||
if (e.button != 0) return true;
|
||||
|
||||
var hash = this.href;
|
||||
hash = hash.replace(/^.*#/, '');
|
||||
|
||||
// moves to a new page.
|
||||
// pageload is called at once.
|
||||
// hash don't contain "#", "?"
|
||||
$.historyLoad(hash);
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
/****************************************************************************************/
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,220 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>Galleriffic | A jQuery plugin for rendering fast-performing photo galleries</title>
|
||||
<link rel="stylesheet" href="css/basic.css" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="page">
|
||||
<div id="container">
|
||||
<h1>Galleriffic</h1>
|
||||
<h2>A jQuery plugin for rendering rich, fast-performing photo galleries</h2>
|
||||
<p>
|
||||
Galleriffic is a jQuery plugin that provides a rich, post-back free experience optimized to handle high volumes of
|
||||
photos while conserving bandwidth. I am not so great at spelling, and it was much later that I realized that the more appropriate spellings would be Galle<em>rif</em>ic or Galle<em>rrif</em>ic, but is too late now for a name change, so Galleriffic remains.
|
||||
</p>
|
||||
|
||||
<div style="float: right;">
|
||||
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
||||
<input type="hidden" name="cmd" value="_s-xclick">
|
||||
<input type="hidden" name="hosted_button_id" value="3012662">
|
||||
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="">
|
||||
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<h3>Features</h3>
|
||||
<ul>
|
||||
<li>Smart image preloading <strong>after</strong> the page is loaded</li>
|
||||
<li>Thumbnail navigation (with pagination)</li>
|
||||
<li>jQuery.history plugin integration to support bookmark-friendly URLs per-image</li>
|
||||
<li>Slideshow (with optional auto-updating url bookmarks)</li>
|
||||
<li>Keyboard navigation</li>
|
||||
<li>Events that allow for adding your own custom transition effects</li>
|
||||
<li>API for controlling the gallery with custom controls</li>
|
||||
<li>Support for image captions</li>
|
||||
<li>Flexible configuration</li>
|
||||
<li>Graceful degradation when javascript is not available</li>
|
||||
<li>Support for multiple galleries per page</li>
|
||||
</ul>
|
||||
|
||||
<h3>Examples</h3>
|
||||
<ul>
|
||||
<li><a href="example-1.html">Minimal implementation</a></li>
|
||||
<li><a href="example-2.html">Thumbnail rollover effects and slideshow crossfades</a></li>
|
||||
<li><a href="example-3.html">Integration with history plugin</a></li>
|
||||
<li><a href="example-4.html">Insert and remove images after initialization</a></li>
|
||||
<li><a href="example-5.html">Alternate layout using custom previous/next page controls</a></li>
|
||||
</ul>
|
||||
|
||||
<h3>Usage</h3>
|
||||
<ol>
|
||||
<li>Download the latest version of Galleriffic below and jQuery 1.3.2 or later (use other versions of jQuery at your own risk)</li>
|
||||
<li>Setup the script references in the header:
|
||||
<pre class="jush">
|
||||
<head>
|
||||
...
|
||||
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
|
||||
<script type="text/javascript" src="js/jquery.galleriffic.js"></script>
|
||||
|
||||
<!-- Optionally include jquery.history.js for history support -->
|
||||
<script type="text/javascript" src="js/jquery.history.js"></script>
|
||||
<script type="text/javascript" src="js/jquery.opacityrollover.js"></script>
|
||||
...
|
||||
</head>
|
||||
</pre>
|
||||
</li>
|
||||
<li>Add container elements to your page. All container elements are optional, so you may choose to not include an area (such as the loading or caption container elements). Here is an example of all the elements needed for a full-featured setup:
|
||||
<pre class="jush">
|
||||
<div id="controls"></div>
|
||||
<div id="loading"></div>
|
||||
<div id="slideshow"></div>
|
||||
<div id="caption"></div>
|
||||
<div id="thumbs">
|
||||
... graceful degrading list of thumbnails (specific format specified below) ...
|
||||
</div>
|
||||
</pre>
|
||||
</li>
|
||||
<li>Within the thumbnails container element, build your graceful degrading unordered list of thumbnails linking to the image slides as such:
|
||||
<pre class="jush">
|
||||
<div id="thumbs">
|
||||
<ul class="thumbs noscript">
|
||||
<li>
|
||||
<a class="thumb" name="optionalCustomIdentifier" href="path/to/slide" title="your image title">
|
||||
<img src="path/to/thumbnail" alt="your image title again for graceful degradation" />
|
||||
</a>
|
||||
<div class="caption">
|
||||
(Any html can go here)
|
||||
</div>
|
||||
</li>
|
||||
... (repeat for every image in the gallery)
|
||||
</ul>
|
||||
</div>
|
||||
</pre>
|
||||
It is important to specify the 'thumb' class for the link that should serve as the thumbnail and the 'caption' class for
|
||||
the element that should serve as the caption. When an image is selected for display in the slideshow, any elements with the 'caption' class will be rendered within the specified caption container element above.
|
||||
</li>
|
||||
<li>Initialize the gallery by calling the <em>galleriffic</em> initialization function on the thumbnails container, passing in optional settings. The following example shows the default options:
|
||||
<pre class="jush-js">
|
||||
jQuery(document).ready(function($) {
|
||||
var gallery = $('#thumbs').galleriffic({
|
||||
delay: 3000, // in milliseconds
|
||||
numThumbs: 20, // The number of thumbnails to show page
|
||||
preloadAhead: 40, // Set to -1 to preload all images
|
||||
enableTopPager: false,
|
||||
enableBottomPager: true,
|
||||
maxPagesToShow: 7, // The maximum number of pages to display in either the top or bottom pager
|
||||
imageContainerSel: '', // The CSS selector for the element within which the main slideshow image should be rendered
|
||||
controlsContainerSel: '', // The CSS selector for the element within which the slideshow controls should be rendered
|
||||
captionContainerSel: '', // The CSS selector for the element within which the captions should be rendered
|
||||
loadingContainerSel: '', // The CSS selector for the element within which should be shown when an image is loading
|
||||
renderSSControls: true, // Specifies whether the slideshow's Play and Pause links should be rendered
|
||||
renderNavControls: true, // Specifies whether the slideshow's Next and Previous links should be rendered
|
||||
playLinkText: 'Play',
|
||||
pauseLinkText: 'Pause',
|
||||
prevLinkText: 'Previous',
|
||||
nextLinkText: 'Next',
|
||||
nextPageLinkText: 'Next &rsaquo;',
|
||||
prevPageLinkText: '&lsaquo; Prev',
|
||||
enableHistory: false, // Specifies whether the url's hash and the browser's history cache should update when the current slideshow image changes
|
||||
enableKeyboardNavigation: true, // Specifies whether keyboard navigation is enabled
|
||||
autoStart: false, // Specifies whether the slideshow should be playing or paused when the page first loads
|
||||
syncTransitions: false, // Specifies whether the out and in transitions occur simultaneously or distinctly
|
||||
defaultTransitionDuration: 1000, // If using the default transitions, specifies the duration of the transitions
|
||||
onSlideChange: undefined, // accepts a delegate like such: function(prevIndex, nextIndex) { ... }
|
||||
onTransitionOut: undefined, // accepts a delegate like such: function(slide, caption, isSync, callback) { ... }
|
||||
onTransitionIn: undefined, // accepts a delegate like such: function(slide, caption, isSync) { ... }
|
||||
onPageTransitionOut: undefined, // accepts a delegate like such: function(callback) { ... }
|
||||
onPageTransitionIn: undefined, // accepts a delegate like such: function() { ... }
|
||||
onImageAdded: undefined, // accepts a delegate like such: function(imageData, $li) { ... }
|
||||
onImageRemoved: undefined // accepts a delegate like such: function(imageData, $li) { ... }
|
||||
});
|
||||
});
|
||||
</pre>
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<h3>FAQ</h3>
|
||||
<h4>Will Galleriffic generate the slide and thumbnail images automatically?</h4>
|
||||
<p>I have been asked a lot if Galleriffic automatically generates the thumbnails and slides. Galleriffic by itself does <strong>not</strong> do any image processiong or generation; however, there is a great tool that does: <a title="jAlbum" href="http://jalbum.net">jAlbum</a>. I have created a <a title="Galleriffic jAlbum Skin" href="http://jalbum.net/skins/skin/Galleriffic">jAlbum skin</a> that I use myself for creating my personal galleries. After installing jAlbum and the Galleriffic jAlbum skin, simply choose your source image directory and an output directory, click "Make Album", and wallah, you now have a complete html gallery with 3 different size versions of each image.</p>
|
||||
<h4>How can I change the number of thumbnail columns?</h4>
|
||||
<p>With the stylesheet used in these examples, each thumbnail is floated left, and thus as many thumbnails that will fit in the width of the column will be displayed. If you want fewer or more columns, make the width of the navigation panel smaller or larger. In all but the last example, I am setting the width using javascript with the following lines in the html page:
|
||||
<pre class="jush-js">
|
||||
$('div.navigation').css({'width' : '300px', 'float' : 'left'});
|
||||
$('div.content').css('display', 'block');
|
||||
</pre>
|
||||
|
||||
<h3>Download</h3>
|
||||
|
||||
Download latest (release 2.0):
|
||||
<ul>
|
||||
<li>Examples: <a href="galleriffic-2.0.zip">galleriffic-2.0.zip</a> ( ~135 kb )</li>
|
||||
<li>Script only: <a href="js/jquery.galleriffic.js">jquery.galleriffic.js</a> ( ~32 kb )</li>
|
||||
</ul>
|
||||
|
||||
<h3>Extras</h3>
|
||||
|
||||
<p>I put together a <a href="http://jalbum.net/skins/skin/Galleriffic">jAlbum skin</a> to make building static albums a breeze. Check it out <a href="http://jalbum.net/skins/skin/Galleriffic">here</a>.</p>
|
||||
|
||||
<h3>Source Code</h3>
|
||||
|
||||
<p>The SVN repo is located at <a href="http://code.google.com/p/galleriffic/source/browse/#svn/trunk/example">Google Code</a></p>
|
||||
|
||||
<h3>Feedback</h3>
|
||||
|
||||
<p>
|
||||
For general feedback, please leave a comment <a href="http://trentacular.com/2009/10/galleriffic-2-0/">here</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
If you feel you have encountered a legitimate issue or have a valuable enhancement request, you are welcome to add it to the <a href="http://code.google.com/p/galleriffic/issues/list">issues list</a> which I am working off of for future releases.
|
||||
</p>
|
||||
|
||||
<p>I'd also like to keep a list of sites making use of Galleriffic, so if this is you, please email me (trent [at] twospy.com) your Web site's URL and indicate whether or not I may list it publicly.</p>
|
||||
|
||||
<h3>Donate</h3>
|
||||
|
||||
<p>If you find Galleriffic useful and would sleep better knowing you gave something back, feel free to make a donation!
|
||||
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="text-align: center;">
|
||||
<input type="hidden" name="cmd" value="_s-xclick">
|
||||
<input type="hidden" name="hosted_button_id" value="3012662">
|
||||
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="">
|
||||
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
||||
</form>
|
||||
</p>
|
||||
|
||||
<div id="ads">
|
||||
<!-- Google Ads -->
|
||||
<script type="text/javascript"><!--
|
||||
google_ad_client = "pub-4720581481756902";
|
||||
/* 728x90, created 9/19/08 */
|
||||
google_ad_slot = "7729547492";
|
||||
google_ad_width = 728;
|
||||
google_ad_height = 90;
|
||||
//-->
|
||||
</script>
|
||||
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
|
||||
<!-- End Google Ads -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">© 2009 Trent Foley</div>
|
||||
<!-- Syntax Highlighting -->
|
||||
|
||||
<script type="text/javascript">
|
||||
jush.style('css/jush.css');
|
||||
jush.highlight_tag('pre');
|
||||
</script>
|
||||
|
||||
<!-- Start of Google Analytics -->
|
||||
<script type="text/javascript">
|
||||
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
var pageTracker = _gat._getTracker("UA-1812771-1");
|
||||
pageTracker._trackPageview();
|
||||
</script>
|
||||
<!-- End of Google Analytics -->
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user