Difference between revisions of "Team:Vilnius-Lithuania/Vilnius15 Script"
Line 14: | Line 14: | ||
captions: true | captions: true | ||
}); | }); | ||
+ | |||
+ | $("div.thumbinner > a img").slimbox({}, function(el) { | ||
+ | url = el.src; | ||
+ | if (url.indexOf('thumb') != -1) { | ||
+ | url = url.substring(0, url.lastIndexOf('/')); | ||
+ | url = url.replace('/thumb/', '/'); | ||
+ | } | ||
+ | description = $(el).parents("div.thumbinner").children("div.thumbcaption").text(); | ||
+ | return [url, description]; | ||
+ | }, function(el) { | ||
+ | return (this == el); | ||
+ | }); | ||
$('.bxgallery').bxSlider({ | $('.bxgallery').bxSlider({ |
Revision as of 09:06, 12 August 2015
function myWikiReady() {
// put the footer in the right place
$("#footer-box").prepend($("#social-footer"));
// Slideshows
$('.bxslider').bxSlider({ responsive: false, auto: true, autoHover: true, captions: true });
$("div.thumbinner > a img").slimbox({}, function(el) { url = el.src; if (url.indexOf('thumb') != -1) { url = url.substring(0, url.lastIndexOf('/')); url = url.replace('/thumb/', '/'); } description = $(el).parents("div.thumbinner").children("div.thumbcaption").text(); return [url, description]; }, function(el) { return (this == el); });
$('.bxgallery').bxSlider({ captions: true, slideMargin: 10, minSlides: 3, maxSlides: 3, moveSlides: 1, slideWidth: 5000 });
}
$(document).ready(myWikiReady);