1jQuery(document).ready(function(){ 2 jQuery('.minifrontpage-tabbed-slide-down-up').each(function(){ 3 var theId = jQuery(this).attr('id'); 4 5 var mfpElement = jQuery('#'+theId+' .animate'); 6 var mfpElementLength = mfpElement.length; 7 8 if(mfpElementLength>1){ 9 var addto = '<ul>'; 10 for(var i=0;i<mfpElementLength;i++){ 11 addto += '<li><span>'+ (i+1) + '</span></li>'; 12 } 13 addto += '</ul>'; 14 addto += '<div class="clr"> </div>'; 15 jQuery(addto).appendTo('#'+theId+' #mfptabs'); 16 } 17 jQuery('#'+theId+' .minifrontpageid').css('height', jQuery('.animate:first').css('height')); 18 jQuery('#'+theId+' .minifrontpageid').css('overflow', 'hidden'); 19 20 21 var elWidth = mfpElement.css('width').replace('px',''); 22 var elHeight = mfpElement.css('height').replace('px',''); 23 jQuery('#'+theId+' .anim').css('width', elWidth+'px'); 24 jQuery('#'+theId+' .anim').css('height', elHeight+'px'); 25 jQuery('#'+theId+' .anim').css('overflow', 'hidden'); 26 27 mfpElement.css('position', 'absolute'); 28 mfpElement.css('z-index', '10 !important'); 29 //mfpElement.css('width',mpfAnimateDiv+'%'); 30 31 var bottomPos = 0; 32 var arrBottomPos = new Array; 33 34 for(var i=0; i<mfpElement.length; i++){ 35 arrBottomPos[i] = bottomPos; 36 if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ 37 jQuery(mfpElement[i]).css('margin-top', bottomPos+'px !important'); 38 } 39 else{ 40 jQuery(mfpElement[i]).css('margin-top', bottomPos+'px'); 41 } 42 bottomPos = bottomPos+parseInt(jQuery(mfpElement[i]).css('height').replace('px','')); 43 } 44 45 jQuery('#'+theId+' .animate:first').addClass('activex'); 46 jQuery('#'+theId+' #mfptabs li:first').addClass('activex'); 47 48 jQuery('#'+theId+' #mfptabs li').live('click', function(){ 49 var current = jQuery('#'+theId+' #mfptabs li.activex').index(); 50 var index = jQuery(this).index(); 51 if( current != index ){ 52 jQuery('#'+theId+' #mfptabs li.activex').removeClass('activex'); 53 jQuery(this).addClass('activex'); 54 55 jQuery('#'+theId+' .minifrontpageid').animate({ 56 height: jQuery(mfpElement[index]).css('height') 57 }); 58 59 jQuery('#'+theId+' .anim').animate({ 60 height: jQuery(mfpElement[index]).css('height') 61 }); 62 63 jQuery('#'+theId+' .anim-div').animate({ 64 marginTop:-(arrBottomPos[index])+'px' 65 }); 66 } 67 return false; 68 }); 69 }); 70});
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.