uawdijnntqw1x1x1
IP : 216.73.216.46
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
public
/
.
/
assets
/
js
/
.
/
main.js
/
/
function searchToggle(elem){ $("body").removeClass("menu-open"); if($("body").hasClass("search-open") == true){ $("body").removeClass("search-open"); } else { $("body").addClass("search-open"); setTimeout(function () { $("#search").focus(); }, 200); } } function menuToggle(){ if($("body").hasClass("menu-open") == true){ $("body").removeClass("menu-open"); console.log("menu-hide"); } else { console.log("menu-open"); $("body").addClass("menu-open"); } } function mobileMenuToggle() { $("nav.popup-menu .arrow").click(function () { if( $(this).siblings("ul").is(":visible")){ $("nav.popup-menu ul ul").hide(); $("nav.popup-menu ul li").removeClass("on"); $(this).siblings("ul").hide(); $(this).closest("li").removeClass("on"); } else { $("nav.popup-menu ul ul").hide(); $("nav.popup-menu ul li").removeClass("on"); $(this).siblings("ul").show(); $(this).closest("li").addClass("on"); } }); $(".form-field .form-control").each(function () { if(!$(this).val() ) { $(this).parents('.form-field').removeClass('active'); } else { $(this).parents('.form-field').addClass('active'); } }); $('.form-control').focus(function(){ $(this).parents('.form-field').addClass('active'); }).blur(function(){ if($(this).val() == ""){ $(this).parents('.form-field').removeClass('active'); } }); setTimeout(function() { $('.form-control').focus(function(){ $(this).parents('.form-field').addClass('active'); }).blur(function(){ if($(this).val() == ""){ $(this).parents('.form-field').removeClass('active'); } }); }, 2000); } function scrollTo(target){ var offset = 0; if($(window).width() > 992) { offset = 150 } $('html, body').animate({ scrollTop: $(target).offset().top - offset }, 500); } function skipToMainContent(elem) { sectionArray = $("main.main-content section"); section = $(sectionArray[0]); sectionData = section.attr("id"); console.log("Page"); $("header.main-header").addClass("sticky-off"); $(elem).attr("href", "#"+sectionData ); $(elem).remove(); } $(window).resize(function() { if($(window).width() < 1200) { $('header.main-header').removeClass("sticky"); $(window).scroll(function() { $('header.main-header').removeClass("sticky-is"); $('header.main-header').removeClass("sticky"); }); } }); $(document).ready(function () { $("nav.popup-menu .menu ul li.has-children").append("<span class='arrow'></span>") mobileMenuToggle(); var hash = window.location.hash; if(hash && hash.startsWith('#section-')){ scrollTo(hash); } if(hash && hash.startsWith('#contact-form-')){ var tabTrigger = document.querySelector('a.nav-link[href="'+ hash +'"]'); var tab = new bootstrap.Tab(tabTrigger); tab.show() // Select tab by name scrollTo(hash); } $("nav.footer-menu .menu ul ul li a").click(function (){ if($(this).data("tab") == "tab" && $("#contact-form").length){ var link = $(this).attr("href").split('#')[1]; var tabTrigger = document.querySelector('a.nav-link[href="#'+ link +'"]'); var tab = new bootstrap.Tab(tabTrigger); tab.show() // Select tab by name scrollTo("#" + link); } }) $("a.button-custom").click(function (e){ if($(this).attr("href").startsWith('#')){ e=e||window.event; if(e.preventDefault)e.preventDefault(); scrollTo($(this).attr("href")); } }) if($('.content table').length) { $('.content table').addClass("table table-hover"); } if($(window).width() > 1200) { $(window).scroll(function() { $('body').removeClass("search-open"); if ($(this).scrollTop() > 400){ $('header.main-header').addClass("sticky-is"); } else{ $('header.main-header').removeClass("sticky-is"); } if ($(this).scrollTop() > 600){ $('header.main-header').addClass("sticky"); } else{ $('header.main-header').removeClass("sticky"); } }); } /*Slick Slider*/ if($('.info-box-slider').length) { $('.info-box-slider').slick({ autoplay: true, speed: 1000, loop: true, autoplaySpeed: 5000, focusOnSelect: true, vertical: false, fade: true, dots: false, arrows: false }); } if($('.testimonials-slider').length) { $('.testimonials-slider').slick({ autoplay: true, speed: 1000, loop: true, autoplaySpeed: 5000, focusOnSelect: true, vertical: false, fade: false, dots: true, arrows: false }); } $('.button-search').click(function() { searchToggle(); }); $('.button-menu').click(function() { menuToggle(); }); $('.main-content').click(function() { if($("body").hasClass("menu-open") == true){ $("body").removeClass("menu-open"); } }); $('.main-footer').click(function() { $("body").removeClass("menu-open"); }); $(".scroll-to").click(function (e) { e=e||window.event; if(e.preventDefault)e.preventDefault(); scrollTo($(this)); }); /* Scroll to TOP */ var scrollTop = $(".scroll-top"); $(window).scroll(function() { // declare variable var topPos = $(this).scrollTop(); // if user scrolls down - show scroll to top button if (topPos > 100) { $(scrollTop).addClass("active"); } else { $(scrollTop).removeClass("active"); } }); // scroll END //Click event to scroll to top $(scrollTop).click(function() { $('html, body').animate({ scrollTop: 0 }, 800); return false; }); // click() scroll top EMD $(".show-more-button").click(function() { if($(this).attr("aria-expanded") == "false"){ $(this).html('<i class="fa fa-angle-down" aria-hidden="false"></i> Show Details '); } else { $(this).html('<i class="fa fa-angle-up" aria-hidden="true"></i> Hide Details '); } }); // click() scroll top EMD if($(".js-modal-video-youtube").length){ $(".js-modal-video-youtube").each(function () { if($(this).hasClass("video-initialized") == false){ $(this).addClass("video-initialized").modalVideo({ channel:'youtube', youtube: { autoplay: 1, mute: 1 } }); } }) } $(".params-button").click(function (){ if( $(this).hasClass("active")){ $(this).removeClass("active") $("nav.params-menu").slideUp(); } else { $(this).addClass("active") $("nav.params-menu").slideDown(); } }); });
/srv/users/craft4/apps/craft4-newsite-space/public/./assets/js/./main.js