1/* 2 * AIT WordPress Theme 3 * 4 * Copyright (c) 2012, Affinity Information Technology, s.r.o. (http://AitThemes.club) 5 */ 6/* Main Initialization Hook */ 7jQuery(document).ready(function(){ 8 gm_authFailure = function(){ 9 var apiBanner = document.createElement('div'); 10 var a = document.createElement('a'); 11 var linkText = document.createTextNode("Read more"); 12 a.appendChild(linkText); 13 a.title = "Read more"; 14 a.href = "https://www.ait-themes.club/knowledge-base/google-maps-api-error/"; 15 a.target = "_blank"; 16 17 apiBanner.className = "alert alert-info"; 18 var bannerText = document.createTextNode("Please check Google API key settings"); 19 apiBanner.appendChild(bannerText); 20 apiBanner.appendChild(document.createElement('br')); 21 apiBanner.appendChild(a); 22 23 jQuery(".google-map-container").html(apiBanner); 24 }; 25 26 /* menu.js initialization */ 27 desktopMenu(); 28 /* menu.js initialization */ 29 30 /* portfolio-item.js initialization */ 31 portfolioSingleToggles(); 32 /* portfolio-item.js initialization */ 33 34 /* custom.js initialization */ 35 renameUiClasses(); 36 removeUnwantedClasses(); 37 38 touchFriendlyHover([ 39 ".social-icons:before", 40 ".language-icons a", 41 ".header-items:before", 42 ".main-nav-wrap .menu-toggle", 43 ]); 44 45 initWPGallery(); 46 initColorbox(); 47 initRatings(); 48 //initInfieldLabels(); 49 initSelectBox(); 50 51 notificationClose(); 52 /* custom.js initialization */ 53 54 /* Theme Dependent Functions */ 55 /* Theme Dependent Functions */ 56}); 57/* Main Initialization Hook */ 58 59/* Theme Dependenent Functions */ 60 61/* Hide WooCommerce cart when other header buttons clicked and vice versa */ 62jQuery(document).on('touchFriendlyHover_HideOthers', function(){ 63 jQuery('#ait-woocommerce-cart').css({ 64 display: 'none', 65 opacity: '0' 66 }); 67}); 68jQuery('#ait-woocommerce-cart-wrapper').hover(function(){ 69 jQuery(this).parents('.site-header').find('.hover').removeClass('hover'); 70}); 71 72/* Theme Dependenent 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.