1jQuery( document ).ready(function() { 2 3 jQuery(".fitvids").fitVids(); 4 5 // mobile nav function 6 jQuery('#mmicon').click(function(){ 7 jQuery('#catalog-btn, #btn-two').hide('fast'); 8 jQuery('.headergreybackground').slideToggle('fast'); 9 10 if (!jQuery('#mmicon img').hasClass('open')) { 11 jQuery('#mmicon img').attr('src', '/wp-content/themes/adcentives-child/images/mmenuicon.png'); 12 jQuery('#mmicon img').addClass('open'); 13 jQuery('#catalog-btn, #btn-two').fadeIn('fast'); 14 } else { 15 jQuery('#mmicon img').attr('src', '/wp-content/themes/adcentives-child/images/mmenuicon.png'); 16 jQuery('#mmicon img').removeClass('open'); 17 } 18 }); 19 20 // active state for nav link 21 jQuery('.nav-links ul li a').click(function(){ 22 jQuery('.nav-links ul li a').removeClass('active'); 23 jQuery(this).addClass('active'); 24 }); 25 26 27 // Add Active Class to Current Webpage 28 jQuery(function(){ 29 if(location.pathname.split("/")[1] != ""){ 30 jQuery('.nav-links ul li a[href^="/' + location.pathname.split("/")[1] + '"]').addClass('active'); 31 } 32 }); 33 34 jQuery("#brand").click(function(){ 35 jQuery("#brandclick").slideToggle( "fast", function() { 36 jQuery(this).customScrollbar(); 37 }); 38 }); 39 40 jQuery('#brandclick ul li a').hover( 41 function() { 42 var text = jQuery(this).text(); 43 jQuery('#leftbrand p').html(text); 44 }, function() { 45 jQuery('#leftbrand p').html('Brand'); 46 } 47 ); 48 49 50 jQuery( ".srvimg" ).hover( 51 function() { 52 if (jQuery(window).width() > 767) { 53 jQuery( this ).find(".servicestext").addClass("orange"); 54 jQuery( this ).find(".serviceimghover").fadeIn('fast'); 55 } 56 }, function() { 57 if (jQuery(window).width() > 767) { 58 jQuery( this ).find(".serviceimghover").fadeOut('fast'); 59 jQuery( this ).find(".servicestext").removeClass("orange"); 60 } 61 } 62 ); 63 64 jQuery( ".client-logo" ).hover( 65 function() { 66 if (jQuery(window).width() > 767) { 67 jQuery( this ).find(".clientimghover").fadeIn('fast'); 68 } 69 }, function() { 70 if (jQuery(window).width() > 767) { 71 jQuery( this ).find(".clientimghover").fadeOut('fast'); 72 } 73 } 74 ); 75 76 jQuery( ".teammember" ).hover( 77 function() { 78 if (jQuery(window).width() > 767) { 79 jQuery( this ).find(".brainimghover").fadeIn('fast'); 80 jQuery( this ).find(".namentitle").fadeOut('fast'); 81 } 82 }, function() { 83 if (jQuery(window).width() > 767) { 84 jQuery( this ).find(".brainimghover").fadeOut('fast'); 85 jQuery( this ).find(".namentitle").fadeIn('fast'); 86 } 87 } 88 ); 89 90 91 92 jQuery('.posty').addClass("bt_hidden").viewportChecker({ 93 classToAdd: 'bt_visible animated slideInLeft', 94 offset: 100, 95 repeat: false, 96 callbackFunction: function(elem, action){}, 97 scrollHorizontal: false 98 }); 99 100 jQuery('.postyright').addClass("bt_hidden").viewportChecker({ 101 classToAdd: 'bt_visible animated slideInRight', 102 offset: 100, 103 repeat: false, 104 callbackFunction: function(elem, action){}, 105 scrollHorizontal: false 106 }); 107 108 jQuery('.flipper').addClass("bt_hidden").viewportChecker({ 109 classToAdd: 'bt_visible animated bounceInDown', 110 offset: 100, 111 repeat: false, 112 callbackFunction: function(elem, action){}, 113 scrollHorizontal: false 114 }); 115 116 jQuery('.fader').addClass("bt_hidden").viewportChecker({ 117 classToAdd: 'bt_visible animated fadeInUp', 118 offset: 100, 119 repeat: false, 120 callbackFunction: function(elem, action){}, 121 scrollHorizontal: false 122 }); 123 124 125 //Lightbox Stuff 126 jQuery( document ).on( "click", ".teammember", function(event) { 127 event.preventDefault(event); 128 jQuery("#overlay").show(); 129 var bio = jQuery(this).find('.biolightboxinfo').html(); 130 jQuery('#biolightbox').append(bio).show(); 131 }); 132 133 jQuery( "#overlay" ).on( "click", function() { 134 jQuery("#overlay").hide(); 135 jQuery("#biolightbox").empty().hide(); 136 }); 137 138 jQuery( document ).on( "click", ".xmark", function() { 139 jQuery("#overlay").hide(); 140 jQuery("#biolightbox").empty().hide(); 141 }); 142 143 144}); 145 146 147 148jQuery(window).on('resize', function(event){ 149 // Do stuff here 150}); 151 152 153 154 155 156//Fid Vids 157!function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0],a=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",d=document.createElement("div");d.innerHTML='<p>x</p><style id="fit-vids-style">'+a+"</style>",r.appendChild(d.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','
157iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var r=".fitvidsignore";i.ignore&&(r=r+", "+i.ignore);var a=t(this).find(e.join(","));a=a.not("object object"),a=a.not(r),a.each(function(){var e=t(this);if(!(e.parents(r).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var i="object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height(),a=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10),d=i/a;if(!e.attr("name")){var o="fitvid"+t.fn.fitVids._count;e.attr("name",o),t.fn.fitVids._count++}e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*d+"%"),e.removeAttr("height").removeAttr("width")}})})},t.fn.fitVids._count=0}(window.jQuery||window.Zepto); 158//# sourceMappingURL=jquery.fitvids.min.js.map 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
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.