https://kompostkids.org/wp-content/themes/default/js/p2-init.js?ver=2b31de7fa509c6c301a6a96f9c527915
1/*jQuery.noConflict();*/ 2jQuery(document).ready(function($){ 3 4/*-----------------------------------------------------------------------------------*/ 5/* Tooltip 6/*-----------------------------------------------------------------------------------*/ 7 if($().tipTip) { 8 $(".tooltip").tipTip({maxWidth: 'auto', edgeOffset: 10 }); 9 } 10 11/*-----------------------------------------------------------------------------------*/ 12/* Fittext 13/*-----------------------------------------------------------------------------------*/ 14 if($().fitText) { 15 $(".respond_1").fitText(0.7); 16 } 17 18/*-----------------------------------------------------------------------------------*/ 19/* Superfish 20/*-----------------------------------------------------------------------------------*/ 21 $("ul.sf-menu").supersubs({ 22 minWidth: 12, // minimum width of sub-menus in em units 23 maxWidth: 45, // maximum width of sub-menus in em units 24 extraWidth: 1 // extra width can ensure lines don't sometimes turn over 25 // due to slight rounding differences and font-family 26 }).superfish({ 27 28 dropShadows: false 29 }); // call supersubs first, then superfish, so that subs are 30 // not display:none when measuring. Call before initialising 31 // containing tabs for same reason. 32 33/*-----------------------------------------------------------------------------------*/ 34/* Mobile Menu 35/*-----------------------------------------------------------------------------------*/ 36 $('ul.sf-menu').mobileMenu(); 37 38/*-----------------------------------------------------------------------------------*/ 39/* Remove Image Attributes 40/*-----------------------------------------------------------------------------------*/ 41 $('img').each(function(){ 42 $(this).removeAttr('width') 43 $(this).removeAttr('height'); 44 }); 45 46 47/*-----------------------------------------------------------------------------------*/ 48/* Scroll to Top 49/*-----------------------------------------------------------------------------------*/ 50 $("#back-top").hide(); // Hide #back-top first 51 $(function () { // fade in #back-top 52 $(window).scroll(function () { 53 if ($(this).scrollTop() > 150) { 54 $('#back-top').fadeIn(); 55 } else { 56 $('#back-top').fadeOut(); 57 } 58 }); 59 60 // scroll body to 0px on click 61 $('#back-top a').click(function () { 62 $('body,html').animate({ 63 scrollTop: 0 64 }, 500); 65 return false; 66 }); 67 }); 68 69/*-----------------------------------------------------------------------------------*/ 70/* Clickable Div 71/*-----------------------------------------------------------------------------------*/ 72 $(".clickable, .landing-mod").click(function(){ 73 window.location=$(this).find("a").attr("href"); 74 return false; 75 }); 76 77/*===================================================================================*/ 78/* ColorBox 79/*===================================================================================*/ 80 if($().colorbox) { 81 82 $(".video_modal").colorbox({iframe:true, innerWidth:"50%", innerHeight:"50%", opacity:"0.7"}); 83 $("a[rel='cb-image'], a[rel='cb-thumb'], .cb-single, .cb").colorbox({transition:"fade", opacity:"0.7"}); 84 }; 85 86 87/*-----------------------------------------------------------------------------------*/ 88/* Tabs Shortcode 89/*-----------------------------------------------------------------------------------*/ 90 if($().tabs) { 91 $(".tabs").tabs({ 92 fx: { opacity: 'toggle', duration: 100} 93 }); 94 }; 95 96/*-----------------------------------------------------------------------------------*/ 97/* Features Shortcode 98/*-----------------------------------------------------------------------------------*/ 99 if($().tabs) { 100 $('.features .nav a').click( function (e) { 101 e.preventDefault(); 102 }); 103 $(".features").tabs({ 104 fx: { opacity: 'toggle', duration: 150} 105 }); 106 } 107 108/*-----------------------------------------------------------------------------------*/ 109/* Accordion Shortcode 110/*-----------------------------------------------------------------------------------*/ 111 112 //Set default open/close settings 113 $('.acc_inner').hide(); //Hide/close all containers 114 $('.acc_toggler:first').addClass('active').next().show(); 115 116 //On Click 117 $('.acc_toggler').click(function(){ 118 if( $(this).next().is(':hidden') ) { 119 $('.acc_toggler').removeClass('active').next().slideUp(); 120 $(this).toggleClass('active').next().slideDown(); 121 } 122 return false; 123 }); 124 125/*-----------------------------------------------------------------------------------*/ 126/* Toggle Shortcode 127/*-----------------------------------------------------------------------------------*/ 128 129 $(".toggle_inner").hide(); //Hide on load 130 131 $("h4.toggler").click(function(){ 132 $(this).toggleClass("active").next().slideToggle(); 133 return false; //Prevent the browser jump to the link anchor 134 }); 135 136/*-----------------------------------------------------------------------------------*/ 137/* Gallery hover effect 138/*-----------------------------------------------------------------------------------*/ 139
140 $('.gallery_module').mouseenter(function(e) { 141 $('a span', this).fadeIn(300, "swing"); 142 }).mouseleave(function(e) { 143 $('a span', this).fadeOut(300); 144 }); 145 146 147});
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.