1/* Script for the Meteor Slides 1.5.7 slideshow 2 3 Copy "slideshow.js" from "/meteor-slides/js/" to your theme's directory to replace 4 the plugin's default slideshow script. 5 6 Learn more about customizing the slideshow script for Meteor Slides: 7 http://www.jleuze.com/plugins/meteor-slides/customizing-the-slideshow-script/ 8*/ 9 10// Set custom shortcut to avoid conflicts 11var $j = jQuery.noConflict(); 12 13$j(document).ready(function() { 14 15 // Get the slideshow options 16 var $slidespeed = parseInt( meteorslidessettings.meteorslideshowspeed ); 17 var $slidetimeout = parseInt( meteorslidessettings.meteorslideshowduration ); 18 var $slideheight = parseInt( meteorslidessettings.meteorslideshowheight ); 19 var $slidewidth = parseInt( meteorslidessettings.meteorslideshowwidth ); 20 var $slidetransition = meteorslidessettings.meteorslideshowtransition; 21 22 // Setup jQuery Cycle 23 $j('.meteor-slides').cycle({ 24 cleartypeNoBg: true, 25 fit: 1, 26 fx: $slidetransition, 27 height: $slideheight, 28 next: '#meteor-next', 29 pager: '#meteor-buttons', 30 pagerEvent: 'click', 31 pause: 1, 32 prev: '#meteor-prev', 33 slideExpr: '.mslide', 34 speed: $slidespeed, 35 timeout: $slidetimeout, 36 width: $slidewidth 37 }); 38 39 // Setup jQuery TouchWipe 40 $j('.meteor-slides').touchwipe({ 41 wipeLeft: function() { 42 $j('.meteor-slides').cycle('next'); 43 }, 44 wipeRight: function() { 45 $j('.meteor-slides').cycle('prev'); 46 }, 47 preventDefaultEvents: false 48 }); 49 50 // Add class to hide and show prev/next nav on hover 51 $j('.meteor-slides').hover(function () { 52 $j(this).addClass('navhover'); 53 }, function () { 54 $j(this).removeClass('navhover'); 55 }); 56 57 // Set a fixed height for prev/next nav in IE6 58 if(typeof document.body.style.maxWidth === 'undefined') { 59 $j('.meteor-nav a').height($slideheight); 60 } 61 62 // Add align class if set in metadata 63 $j('.meteor-slides').each(function () { 64 meteormetadata = $j(this).metadata(); 65 if (meteormetadata.align == 'left') { 66 $j(this).addClass('meteor-left'); 67 } else if (meteormetadata.align == 'right') { 68 $j(this).addClass('meteor-right'); 69 } else if (meteormetadata.align == 'center') { 70 $j(this).addClass('meteor-center'); 71 } 72 }); 73 74});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.