(function (w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', 'GTM-K99FKTV'); window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'AW-354139840'); gtag('event', 'conversion', { 'send_to': 'AW-354139840/puRGCJTe2r4CEMD97qgB' }); window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'G-41SGTQ7YB2'); window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'UA-103610963-34'); window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'AW-661908820'); (function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = 'https://connect.facebook.net/vi_VN/sdk.js#xfbml=1&version=v2.11&appId=235682523509056'; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); let toggle = document.querySelectorAll(".top-nav__toggle"), menuMobi = document.querySelectorAll(".nav-menu") window.addEventListener("scroll", function () { let topNav = document.querySelectorAll('.top-nav'); topNav[0].classList.toggle("fixed", window.scrollY > 0); }) // AOS.init(); $(window).load(function () { render_size(); var url = window.location.href; $('.menu-item a[href="' + url + '"]').parent().addClass('active'); }); // $(window).resize(function() { // render_size(); // }); // function render_size() { // var h_783 = $('.h_783 ').width(); // $('.h_783 ').height(0.7702 * parseInt(h_783)); // } $(function () { $(".slider_features").owlCarousel({ items: 5, responsive: { 1200: { item: 4 }, // breakpoint from 1200 up 982: { items: 4 }, 768: { items: 3 }, 480: { items: 2 }, 0: { items: 1 } }, loop: true, rewind: false, autoplay: true, autoplayTimeout: 4000, autoplayHoverPause: false, smartSpeed: 500, //slide speed smooth dots: false, dotsEach: false, nav: true, navText: ["", "" ], // navSpeed: 250, //slide speed when click button autoWidth: false, margin: 30, lazyContent: false, lazyLoad: false, animateIn: false, animateOut: false, center: false, URLhashListener: false, video: false, videoHeight: false, videoWidth: false }); }); $(function () { $(".slider_dt2").owlCarousel({ items: 1, responsive: { 1200: { item: 1, }, // breakpoint from 1200 up 982: { items: 1, }, 768: { items: 1, }, 480: { items: 1, }, 0: { items: 1, } }, rewind: false, autoplay: true, autoplayTimeout: 2000, autoplayHoverPause: true, smartSpeed: 500, //slide speed smooth dots: false, dotsEach: false, loop: true, nav: true, navText: ['', ''], // navSpeed: 250, //slide speed when click button autoWidth: false, margin: 16, lazyContent: false, lazyLoad: false, animateIn: false, animateOut: false, center: false, URLhashListener: false, video: false, videoHeight: false, videoWidth: false, }); }); $(document).ready(function () { $(".validate").validationEngine(); }); window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'UA-211256706-1'); window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'UA-190793401-1'); $(function () { $(".slider_main").owlCarousel({ items: 1, responsive: { 1200: { item: 1, }, // breakpoint from 1200 up 982: { items: 1, }, 768: { items: 1, }, 480: { items: 1, }, 0: { items: 1, } }, rewind: false, autoplay: true, autoplayTimeout: 4000, autoplayHoverPause: false, smartSpeed: 500, //slide speed smooth dots: true, dotsEach: false, loop: true, nav: true, navText: ['', ''], // navSpeed: 250, //slide speed when click button autoWidth: false, margin: 10, lazyContent: false, lazyLoad: false, animateIn: false, animateOut: false, center: false, URLhashListener: false, video: false, videoHeight: false, videoWidth: false, }); }); $(function () { $(".slider_sevice").owlCarousel({ items: 3, responsive: { 1200: { item: 3, }, // breakpoint from 1200 up 982: { items: 3, }, 768: { items: 3, }, 480: { items: 2, }, 0: { items: 1, } }, rewind: false, autoplay: true, autoplayTimeout: 2000, autoplayHoverPause: true, smartSpeed: 500, //slide speed smooth dots: false, dotsEach: false, loop: true, nav: true, navText: ['', '' ], // navSpeed: 250, //slide speed when click button autoWidth: false, margin: 30, lazyContent: false, lazyLoad: false, animateIn: false, animateOut: false, center: false, URLhashListener: false, video: false, videoHeight: false, videoWidth: false, }); }); $(function () { $(".slider_dt").owlCarousel({ items: 6, responsive: { 1200: { item: 6, }, // breakpoint from 1200 up 982: { items: 5, }, 768: { items: 4, }, 480: { items: 3, }, 0: { items: 2, } }, rewind: false, autoplay: true, autoplayTimeout: 2000, autoplayHoverPause: true, smartSpeed: 500, //slide speed smooth dots: false, dotsEach: false, loop: true, nav: true, navText: ['', ''], // navSpeed: 250, //slide speed when click button autoWidth: false, margin: 16, lazyContent: false, lazyLoad: false, animateIn: false, animateOut: false, center: false, URLhashListener: false, video: false, videoHeight: false, videoWidth: false, }); }); $(function () { $(".slider_lq").owlCarousel({ items: 3, responsive: { 1200: { item: 3, }, // breakpoint from 1200 up 982: { items: 3, }, 768: { items: 3, }, 480: { items: 2, }, 0: { items: 1, } }, rewind: false, autoplay: true, autoplayTimeout: 2000, autoplayHoverPause: true, smartSpeed: 500, //slide speed smooth dots: false, dotsEach: false, loop: true, nav: true, navText: ['', ''], // navSpeed: 250, //slide speed when click button autoWidth: false, margin: 16, lazyContent: false, lazyLoad: false, animateIn: false, animateOut: false, center: false, URLhashListener: false, video: false, videoHeight: false, videoWidth: false, }); }); $("a[href='#top']").click(function () { $("html, body").animate({ scrollTop: 0 }, "slow"); return false; }); $(window).scroll(function () { if ($(window).scrollTop() >= 200) { $('#go_top').show(); } else { $('#go_top').hide(); } }); setTimeout(function () { $('#show_success_mss').fadeOut().empty(); }, 5000); // Removed global contextmenu suppression to allow browser inspect tools. function base_url() { return 'https://vaielevator.com/'; } $(function () { $(".slider_main, .slider_sevice, .slider_dt, .slider_lq").each(function () { $(this).owlCarousel({ items: $(this).hasClass('slider_dt') ? 6 : $(this).hasClass('slider_sevice') || $(this).hasClass('slider_lq') ? 3 : 1, responsive: { 1200: {items: $(this).hasClass('slider_dt') ? 6 : 3}, 982: {items: $(this).hasClass('slider_dt') ? 5 : 3}, 768: {items: 3}, 480: {items: 2}, 0: {items: 1} }, rewind: false, autoplay: true, autoplayTimeout: $(this).hasClass('slider_main') ? 4000 : 2000, autoplayHoverPause: true, smartSpeed: 500, dots: $(this).hasClass('slider_main'), loop: true, nav: true, navText: ['', ''], autoWidth: false, margin: $(this).hasClass('slider_main') ? 10 : 16, lazyLoad: false, center: false }); }); $("a[href='#top']").click(function () { $("html, body").animate({scrollTop: 0}, "slow"); return false; }); $(window).scroll(function () { $('#go_top').toggle($(window).scrollTop() >= 200); }); $(".validate").validationEngine(); }); document.addEventListener('DOMContentLoaded', function() { const toggleButton = document.querySelector('.top-nav__toggle'); const navMenu = document.querySelector('.nav-menu'); toggleButton.addEventListener('click', function() { navMenu.classList.toggle('show'); }); });