1 2(function($) { 3 $.fn.iosgallery = function(o) { 4 5 var defaults = { 6 } 7 8 o = $.extend(defaults, o); 9 this.each( function() { 10 var cthis = $(this); 11 var total_width = cthis.width(); 12 var total_height = cthis.height(); 13 var currNr=0; 14 var videos = cthis.find('.videos').children(); 15 var i=0; 16 for(i=0; i<videos.length;i++){ 17 videos.eq(i).css({ 18 'position' : 'absolute', 19 'top' : total_height * i 20 }) 21 } 22 cthis.find('.videos-menu').children().click(function(){ 23 var index = ($(this).parent().children().index($(this))); 24 if(index==currNr) return; 25 $(this).parent().children().eq(currNr).removeClass('selected'); 26 videos.eq(currNr).css('top', 0); 27 videos.eq(currNr).animate({ 28 'top' : -total_height -5 29 }, {queue:false, duration: 300}) 30 //videos.eq(currNr).fadeOut('slow'); 31 $(this).parent().children().eq(index).addClass('selected'); 32 videos.eq(index).css('top', total_height); 33 videos.eq(index).animate({ 34 'top' : 0 35 }, {queue:false, duration: 300}) 36 //videos.eq(index).fadeIn('slow'); 37 currNr=index; 38 }) 39 return this; 40 }) 41 } 42})(jQuery); 43 44 45 function is_ios() { 46 return ( 47 (navigator.platform.indexOf("iPhone") != -1) || 48 (navigator.platform.indexOf("iPod") != -1) || 49 (navigator.platform.indexOf("iPad") != -1) 50 ) 51 }
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.