1jQuery(function($){ 2 $(document).ready(function(){ 3 4 //scroll to top 5 $('a[href=#top]').on('click', function(){ 6 $('html, body').animate({scrollTop:0}, 'normal'); 7 return false; 8 }); 9 10 //animate comments scroll 11 $(".comment-scroll a").click(function(event){ 12 event.preventDefault(); 13 $('html,body').animate({scrollTop:$(this.hash).offset().top}, 'normal'); 14 }); 15 16 // superFish 17 $("ul.sf-menu").superfish({ 18 autoArrows: true, 19 animation: {opacity:'show', height:'show'} 20 }); 21 22 // Toggle 23 $(".authentic-toggle-wrap .toggle_container").hide(); 24 var $toggle_trigger = $('.authentic-toggle-wrap h3'); 25 26 $($toggle_trigger).click(function(){ 27 var $toggle_icon = $(this).find("span"); 28 $(this).toggleClass("active").next().slideToggle("fast"); 29 30 if($(this).hasClass('active')){ 31 $toggle_icon.removeClass("authentic-icon-plus-sign").addClass("authentic-icon-minus-sign"); 32 } else { 33 $toggle_icon.removeClass("authentic-icon-minus-sign").addClass("authentic-icon-plus-sign"); 34 } 35 36 return false; //Prevent the browser jump to the link anchor 37 }); 38 39 // UI tabs 40 $( ".tab-shortcode" ).tabs({fx:{opacity: "toggle", duration:'fast'}}); 41 42 // UI accordion 43 $( ".authentic-accordion" ).accordion({autoHeight: false}); 44 $(".authentic-accordion").accordion("option", "icons", 45 { 'header': 'authentic-icon-plus-sign', 'headerSelected': 'authentic-icon-minus-sign' }); 46 47 }); // END doc ready 48}); // END function 49 50jQuery(function($){ 51 $(window).load(function() { 52 53 //equal heights for portfolio entries to avoid float issues 54 $.fn.eqHeights = function() { 55 var el = $(this); 56 if (el.length > 0 && !el.data('eqHeights')) { 57 $(window).bind('resize.eqHeights', function() { 58 el.eqHeights(); 59 }); 60 el.data('eqHeights', true); 61 } 62 return el.each(function() { 63 var curHighest = 0; 64 $(this).children('.portfolio-entry').each(function() { 65 var el = $(this), 66 elHeight = el.height('auto').height(); 67 if (elHeight > curHighest) { 68 curHighest = elHeight; 69 } 70 }).height(curHighest); 71 }); 72 }; 73 $('.portfolio-content').eqHeights(); 74 75 }); // END window ready 76}); // END function
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.