1 2 3/* custom functions for image_zoom */ 4function image_zoom_initialize() { 5 $('a.ajax:has(img):not(:has(span.image_zoom))').each(function() { 6 $(this).append('<span class="image_zoom">+</span>'); 7 }); 8 9 $('a.ajax[href^="https://www.youtube"], a.ajax[href^="http://www.youtube"]').each(function() { 10 if ($(this).attr('href').match(/youtube/)) { 11 $(this) 12 .addClass('iframe') 13 .removeClass('ajax') 14 .attr('href', 'http://www.youtube.com/embed/' + getUrlVars($(this).attr('href'))['v'] + '?rel=0&wmode=transparent'); 15 } 16 }); 17 18 /* Generic styles */ 19 $('main a.ajax').swipebox({ 20 afterMedia: function(index) { 21 var waitForSlideLoaded = window.setInterval( 22 function () { 23 var curSlide = $('#swipebox-slider .slide').eq(index); 24 25 if (curSlide.attr('data-loaded') || curSlide.attr('data-type') != 'ajaxload') { 26 window.clearInterval(waitForSlideLoaded); 27 28 if (curSlide.attr('data-type') == 'ajaxload') { 29 if(typeof media == 'function'){ media() }; 30 if(typeof fluid_width == 'function'){ fluid_width() }; 31 if(typeof handleTables == 'function'){ handleTables() }; 32 if(typeof tabs == 'function'){ tabs() }; 33 if(typeof foldable == 'function'){ foldable() }; 34 if(typeof accordion == 'function'){ accordion() }; 35 $('#swipebox-container .ajax').css('cursor', 'default'); 36 $('#swipebox-container .ajax').on('click', function(e) { 37 e.preventDefault(); 38 }); 39 } 40 } 41 } 42 , 50); 43 } 44 }); 45}; 46 47$(document).ready(function() { 48 image_zoom_initialize(); 49});
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.