1function myChangeLink() { 2 const cartLink = document.getElementById("header-cart-link"); 3 if (cartLink) { 4 cartLink.href = "https://www.cet.edu.vn/thanh-toan"; 5 } 6} 7 8const checkLinkExist = setInterval(function() { 9 if (document.getElementById("header-cart-link")) { 10 myChangeLink(); 11 clearInterval(checkLinkExist); 12 } 13}, 100); 14 15/* 16(function($) { 17 $(document).ready(function() { 18 $(".popup-call-audio").hide(); 19 $(".openpop-call").click(function (e) { 20 e.preventDefault(); 21 $(".popup-call-audio").fadeIn('slow'); 22 }); 23 24 $(".close").click(function () { 25 $(".popup-call-audio").hide(); 26 }); 27 }); 28})(jQuery); 29*/ 30 31window.onscroll = function() {myFunctionScrollProgress()}; 32 33function myFunctionScrollProgress() { 34 var winScroll_progress = document.body.scrollTop || document.documentElement.scrollTop; 35 var height_progress = document.documentElement.scrollHeight - document.documentElement.clientHeight; 36 var scrolled_progress = (winScroll_progress / height_progress) * 100; 37 var progressBar = document.getElementById("progressBar"); 38 if (progressBar) { 39 progressBar.style.width = scrolled_progress + "%"; 40 } 41} 42 43jQuery(function ($) { 44 $('.flickity-viewport .flickity-slider .img').removeAttr('style').removeAttr('aria-hidden'); 45 //$('.flickity-viewport .flickity-slider .img').attr('aria-hidden', 'false'); 46 $('.accordion .accordion-item button.toggle').attr('aria-label', 'toggle'); 47 $('.container-iframe iframe').attr('title', 'Youtube'); 48 49 setInterval(function() { 50 $('.flickity-viewport .flickity-slider .img').attr('aria-hidden', 'false'); 51 }, 5000); 52}); 53 54/*add gclid*/ 55jQuery(function ($) { 56 let current_site_path = window.location.protocol + "//" + window.location.host; 57 let track_current_url = new URL(window.location.href); 58 let track_params = ['gclid', 'utm_source', 'utm_medium', 'utm_campaign', 'utm_content']; 59 let has_param = false; 60 track_params.forEach(function(item){ 61 if(track_current_url.searchParams.get(item)){ 62 has_param = true; 63 } 64 }); 65 if(has_param){ 66 $('a').click(function() { 67 let a_href = $(this).attr('href'); 68 if(a_href && a_href.indexOf('wp-admin') == -1 && a_href.indexOf('wp-login') == -1 && (a_href.indexOf(current_site_path) == 0 || a_href.indexOf("/") == 0)){ 69 let href = new URL(a_href); 70 track_params.forEach(function(item){ 71 if(track_current_url.searchParams.get(item)){ 72 href.searchParams.append(item, track_current_url.searchParams.get(item)); 73 } 74 }); 75 $(this).attr("href", href.toString()); 76 } 77 }); 78 } 79}); 80/*end add gclid*/ 81 82jQuery(function ($) { 83 $('.play-button-video-src').click(function(e) { 84 e.preventDefault(); 85 jQuery(this).hide(); 86 jQuery('.thumbnail-video-src').hide(); 87 jQuery('.video-container-src').find('iframe')[0].src += "?autoplay=1"; 88 }); 89}); 90 91/* Custom menu */ 92/* 93(function($) { 94 Flatsome.behavior("toggle", { 95 attach: function(container) { 96 function toggleSubMenu(event) { 97 var $parent = $(event.currentTarget).parent(); 98 $parent.toggleClass("active"); 99 $parent.attr("aria-expanded", $parent.attr("aria-expanded") === "false" ? "true" : "false"); 100 event.preventDefault(); 101 } 102 103 $([".widget ul.children", ".nav ul.children", ".menu .sub-menu", ".mobile-sidebar-levels-2 .nav ul.children > li > ul"].join(", "), container).each(function() { 104 var $submenu = $(this); 105 var direction = $submenu.parents(".nav-slide").length ? "right" : "down"; 106 $submenu.parent().addClass("has-child").attr("aria-expanded", "false"); 107 $submenu.before('<button class="toggle"><i class="icon-angle-' + direction + '"></i></button>'); 108 }); 109 110 $(".mobile-sidebar-levels-3 .nav ul.children > li > ul > li > ul, .mobile-sidebar-levels-4 .nav ul.children > li > ul > li > ul, .mobile-sidebar-levels-5 .nav ul.children > li > ul > li > ul", container).each(function() { 111 var $submenu = $(this); 112 var direction = $submenu.parents(".nav-slide").length ? "right" : "down"; 113 $submenu.parent().addClass("has-child").attr("aria-expanded", "false"); 114 $submenu.before('<button class="toggle"><i class="icon-angle-' + direction + '"></i></button>'); 115 }); 116 117 $(".toggle", container).on("click", toggleSubMenu); 118 119 var isMobileSubmenuToggle = $("body").hasClass("mobile-submenu-toggle"); 120 $(".sidebar-menu li.menu-item.has-child", container).each(function() { 121 var $menuItem = $(this); 122 var $link = $menuItem.find("> a:first"); 123 124 if ($link.attr("href") === "#") { 125 $link.on("click", function(event) { 126 event.preventDefault(); 127 $menuItem.toggleClass("active"); 128 $menuItem.attr("aria-expanded", $menuItem.attr("aria-expanded") === "fal
128se" ? "true" : "false"); 129 }); 130 } else if (isMobileSubmenuToggle && $link.next(".toggle").length) { 131 $link.on("click", toggleSubMenu); 132 } 133 }); 134 } 135 }); 136})(jQuery); 137*/ 138 139/* End custom menu */
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.