Widget:Frontpagegallery: Difference between revisions
From CSDMS
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>This widget displays a gallery of images for the main page. | <noinclude>This widget displays a gallery of images for the main page. | ||
{{#Widget:Frontpagegallery}} | {{#Widget:Frontpagegallery}} | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<!--Widget: | <!--Widget:MainPageGallery--> | ||
<style type="text/css"> | <style type="text/css"> | ||
. | #photos { } | ||
. | |||
. | /* GALLERY CONTAINER */ | ||
. | .gallery { background: #888f88; border: 1px solid #aaa; padding: 1px;} | ||
. | |||
/* LOADING BOX */ | |||
.loader { background: url(loader.gif) center center no-repeat #000; } | |||
/* GALLERY PANELS */ | |||
.panel {} | |||
/* DEFINE HEIGHT OF PANEL OVERLAY */ | |||
/* NOTE - It is best to define padding here as well so overlay and background retain identical dimensions */ | |||
.panel .panel-overlay, | |||
.panel .overlay-background { height: 50px; padding: 0 1em; } | |||
/* PANEL OVERLAY BACKGROUND */ | |||
.panel .overlay-background { background: #000; } | |||
/* PANEL OVERLAY CONTENT */ | |||
.panel .panel-overlay { text-align: left; color: white; font-size: 1em; } | |||
.panel .panel-overlay a { text-align: left; color: #87d5fd; font-size: 1.2em; text-decoration: none; font-weight: bold; } | |||
/* FILMSTRIP */ | |||
/* 'margin' will define top/bottom margin in completed gallery */ | |||
.filmstrip {display:block;} | |||
/* FILMSTRIP FRAMES (contains both images and captions) */ | |||
.frame { background: #000;} | |||
/* WRAPPER FOR FILMSTRIP IMAGES */ | |||
.frame .img_wrap { border: 1px solid #aaa; } | |||
/* WRAPPER FOR CURRENT FILMSTRIP IMAGE */ | |||
.frame.current .img_wrap { border-color: #fff; } | |||
/* FRAME IMAGES */ | |||
.frame img { border: 1px #fff; } | |||
/* FRAME CAPTION */ | |||
.frame .caption { font-size: 11px; text-align: center; color: #888; } | |||
/* CURRENT FRAME CAPTION */ | |||
.frame.current .caption { color: #ddd; } | |||
/* POINTER FOR CURRENT FRAME */ | |||
.pointer { | |||
border-color: #fff; | |||
} | |||
/* TRANSPARENT BORDER FIX FOR IE6 */ | |||
/* NOTE - DO NOT CHANGE THIS RULE */ | |||
*html .pointer { | |||
filter: chroma(color=pink); | |||
} | |||
</style> | </style> | ||
<script type="text/javascript" src="/mediawiki/skins/csdmsskin_new/galleryview-2.1.1/jquery-1.4.2.min.js"></script> | |||
<script type="text/javascript" src="/mediawiki/skins/csdmsskin_new/galleryview-2.1.1/jquery.easing.1.3.js"></script> | |||
<script type="text/javascript" src="/mediawiki/skins/csdmsskin_new/galleryview-2.1.1/jquery.galleryview-2.1.1-pack.js"></script> | <script type="text/javascript" src="/mediawiki/skins/csdmsskin_new/galleryview-2.1.1/jquery.galleryview-2.1.1-pack.js"></script> | ||
<script type="text/javascript" src="/mediawiki/skins/csdmsskin_new/galleryview-2.1.1/jquery.timers-1.2.js"></script> | <script type="text/javascript" src="/mediawiki/skins/csdmsskin_new/galleryview-2.1.1/jquery.timers-1.2.js"></script> | ||
<script type="text/javascript"> | |||
$(document).ready(function(){ | <script type="text/javascript"> | ||
$(document).ready(function(){ | |||
$('#photos').galleryView({ panel_width: 680, panel_height: 320, transition_interval: | $('#photos').galleryView({ | ||
panel_width: 680, | |||
}); | panel_height: 320, | ||
frame_width: 50, | |||
frame_height: 30, | |||
transition_speed: 1200, | |||
transition_interval: 6000, | |||
background_color: '#222', | |||
border: 'none', | |||
easing: 'easeInOutBack', | |||
pause_on_hover: true, | |||
nav_theme: 'light', | |||
overlay_opacity: 0.5, | |||
filmstrip_position: 'bottom', | |||
overlay_position: 'bottom' | |||
}); | |||
}); | |||
</script> | </script> | ||
< | |||
<ul id="photos"> | |||
<li> | |||
<span class="panel-overlay"><a href="/wiki/SummerInstitute2011">The AJU Encyclopedia - Click here</a><br />Search the web's most comprehensive glossary on jewelry related terms</span> | |||
< | <img src="/mediawiki/images/Votingfrontpage.jpg" /> | ||
< | </li> | ||
</ul> | |||
</includeonly> | |||
</ | |||
<img src="/mediawiki/images/ | |||
</ | |||
< | |||
Revision as of 09:54, 23 June 2011
This widget displays a gallery of images for the main page.