1// Expand Buttons 2jQuery(function($) { 3 $('.btn-show').click(function(e){ 4 e.preventDefault(); 5 var parentBox = $(this).closest(".b2g-package"); 6 var closestHideBtn = $(this).prev(".btn-hide"); 7 8 $(".b2g-package__benefits").slideUp(); 9 parentBox.find(".b2g-package__benefits").slideDown(); 10 11 $(".btn-hide").hide(); 12 $(".btn-show").show(); 13 $(this).hide(); 14 closestHideBtn.show(); 15 }); 16 $('.btn-hide').click(function(e){ 17 e.preventDefault(); 18 var parentBox = $(this).closest(".b2g-package"); 19 var closestShowBtn = $(this).next(".btn-show"); 20 21 parentBox.find(".b2g-package__benefits").slideUp(); 22 23 $(this).hide(); 24 closestShowBtn.show(); 25 }); 26}); 27 28; 29(function($, window, document, undefined) { 30 //Genaral Global variables 31 //"use strict"; 32 var $win = $(window); 33 var $doc = $(document); 34 var $winW = function() { return $(window).width(); }; 35 var $winH = function() { return $(window).height(); }; 36 var $screensize = function(element) { 37 $(element).width($winW()).height($winH()); 38 }; 39 40 var screencheck = function(mediasize) { 41 if (typeof window.matchMedia !== "undefined") { 42 var screensize = window.matchMedia("(max-width:" + mediasize + "px)"); 43 if (screensize.matches) { 44 return true; 45 } else { 46 return false; 47 } 48 } else { // for IE9 and lower browser 49 if ($winW() <= mediasize) { 50 return true; 51 } else { 52 return false; 53 } 54 } 55 }; 56 57 58 59 $doc.ready(function() { 60 $('.menu-icon').on('click', function() { 61 $(this).toggleClass('open'); 62 $('.nav-menu').toggleClass('open'); 63 $('body').toggleClass('overlay'); 64 }); 65 66 $(document).on('click', '.menu li a', function(e) { 67 $(this).parent("li").siblings("li").children("a").removeClass("active") 68 $(this).parent("li").siblings("li").children(".submenu").slideUp() 69 70 if($(this).next('.submenu').length){ 71 e.preventDefault(); 72 $(this).toggleClass('active') 73 } 74 $(this).next('.submenu').slideToggle(); 75 }) 76 77 $('.menu li').each(function(){ 78 if($(this).children(".submenu").length){ 79 $(this).children("a").addClass("has-submenu") 80 } 81 }) 82 83 $(document).click(function(event) { 84 if ($(event.target).closest('nav').length===0) { 85 $('.nav-menu').removeClass('open'); 86 $('.menu-icon').removeClass('open'); 87 $('body').removeClass('overlay'); 88 } 89 }); 90 91 92 93 $('.close-nav').click(function(event) { 94 event.stopPropagation(); 95 $(this).parents('.nav-menu').removeClass('open'); 96 $(this).parents('.nav-menu').siblings(".menu-toggle").find('.menu-icon').removeClass('open'); 97 $('body').removeClass('overlay'); 98 }); 99 100 $('.has-submenu').click(function(){ 101 $(this).toggleClass('open') 102 }) 103 }); 104 105jQuery(document).ready(function ($) { 106 if (acf_disclaimer.enabled) { 107 var disclaimerHTML = '<div class="wapf-field-description disclaimer"><p>' + acf_disclaimer.text + '</p></div>'; 108 109 $('.wapf-wrapper .wapf-field-container:last').after(disclaimerHTML); 110 } 111}); 112 113 114 /*All function need to define here for use strict mode 115 ----------------------------------------------------------------------------------------------------------------------------------------*/ 116 117 118 119 /*--------------------------------------------------------------------------------------------------------------------------------------*/ 120})(jQuery, window, document);
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.