1"use strict"; 2/** 3 * General Custom JS Functions 4 * 5 * @author Themovation <[email protected]> 6 * @copyright 2014 Themovation INC. 7 * @license http://themeforest.net/licenses/regular 8 * @version 1.3 9 */ 10function themo_support_mobile_navigation(){if(Modernizr.mq('(max-width: 767px)')){jQuery("li.dropdown .dropdown-toggle").attr("data-toggle","dropdown");jQuery("li.dropdown .dropdown-toggle").attr("data-target","#")} 11if(Modernizr.mq('(min-width:768px)')){jQuery("li.dropdown .dropdown-toggle").removeAttr("data-toggle","dropdown");jQuery("li.dropdown .dropdown-toggle").removeAttr("data-target","#")}} 12function themo_is_touch_device(checkScreenSize){if(typeof checkScreenSize==="undefined"||checkScreenSize===null){checkScreenSize=!0} 13var deviceAgent=navigator.userAgent.toLowerCase();var isTouch=(deviceAgent.match(/(iphone|ipod|ipad)/)||deviceAgent.match(/(android)/)||deviceAgent.match(/iphone/i)||deviceAgent.match(/ipad/i)||deviceAgent.match(/ipod/i)||deviceAgent.match(/blackberry/i));if(checkScreenSize){var isMobileSize=Modernizr.mq('(max-width:767px)')}else{var isMobileSize=!1} 14if(isTouch||isMobileSize){return!0} 15return!1} 16function themo_no_transparent_header_for_mobile(isTouch){if(jQuery(".navbar[data-transparent-header]").length){if(isTouch){jQuery('.navbar').attr("data-transparent-header","false")}else{jQuery('.navbar').attr("data-transparent-header","true")}}} 17function themo_start_scrollup(){jQuery.scrollUp({animationSpeed:200,animation:'fade',scrollSpeed:500,scrollImg:{active:!0,type:'background',src:'../../images/top.png'}})} 18var nice=!1;(function(){if(!window.console){window.console={}} 19var m=["log","info","warn","error","debug","trace","dir","group","groupCollapsed","groupEnd","time","timeEnd","profile","profileEnd","dirxml","assert","count","markTimeline","timeStamp","clear"];for(var i=0;i<m.length;i++){if(!window.console[m[i]]){window.console[m[i]]=function(){}}}})();jQuery(document).ready(function($){"use strict";if(jQuery("#main-flex-slider")[0]){setTimeout(function(){jQuery('body').addClass('loaded')},10000)}else{jQuery('body').addClass('loaded')} 20if(themo_is_touch_device()){jQuery('body').addClass('th-touch')} 21themo_support_mobile_navigation($);jQuery("body").on("click","ul.dropdown-menu .dropdown-submenu > a[data-toggle='dropdown']",function(event){event.preventDefault();event.stopPropagation();jQuery(this).parents('ul.dropdown-menu .dropdown-submenu').toggleClass('open')});var options={offset:125,classes:{clone:'headhesive--clone',stick:'headhesive--stick',unstick:'headhesive--unstick'},onStick:function(){jQuery('.navbar-collapse').css('height','0');jQuery('.navbar-collapse').removeClass('in')},onUnstick:function(){jQuery('.navbar-collapse').css('height','0');jQuery('.navbar-collapse').removeClass('in')},throttle:250,};try 22{var banner=new Headhesive('body.th-sticky-header .banner, body.ehf-header.th-sticky-header header#masthead',options);jQuery('body.th-sticky-header').addClass('headhesive')}catch(err){console.log('Sticky header deactivated. WP Dash / Appearance / Customize / Theme Options / Menu & Header')} 23jQuery('.navbar-collapse').on("click",'a:not(.dropdown-toggle)',function(){jQuery('.navbar-collapse').css('height','0');jQuery('.navbar-collapse').removeClass('in')});function scroll_if_anchor(href){href=typeof(href)=="string"?href:jQuery(this).attr("href");var fromTop=0;if(jQuery("header").hasClass("headhesive--clone")){fromTop=jQuery(".headhesive--clone").height()} 24if(href.indexOf("#")==0){var $target=jQuery(href);if($target.length){jQuery('html, body').animate({scrollTop:$target.offset().top-fromTop},500,'linear',function(){});if(history&&"pushState" in history){history.pushState({},document.title,window.location.pathname+href);return!1}}}} 25scroll_if_anchor(window.location.hash);var th_offset=0;if(jQuery("header").hasClass("headhesive--clone")){th_offset=jQuery(".headhesive--clone").height()} 26jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addFilter('frontend/handlers/menu_anchor/scroll_top_distance',function(scrollTop){return scrollTop-th_offset})})});jQuery(window).on('load',function($){"use strict";var isTouch=themo_is_touch_device();themo_no_transparent_header_for_mobile(isTouch);themo_start_scrollup()});jQuery(window).resize(function($){"use strict";var isTouch=themo_is_touch_device();themo_support_mobile_navigation();themo_no_transparent_header_for_mobile(isTouch)})
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.