PageSourceSearch

https://www.huongnghiepaau.com/wp-content/themes/huongnghiepaau-child/assets/js/custom.js?v=1790236559

js huongnghiepaau.com collected 2026-09-24 11:57:55 UTC 6,590 bytes, 126 lines download raw bytes

1if (document.querySelector('.product-videos')) {
2    const productMain = document.querySelector('.product-main');
3    if (productMain) {
4        productMain.classList.add('product-main-videos');
5    }
6}
7function myChangeLink() {
8	document.getElementsByClassName("header-cart-link")[0].setAttribute("id", "header-cart-link");     
9  	document.getElementById("header-cart-link").href = "https://www.huongnghiepaau.com/thanh-toan";
10}
11myChangeLink();
12
13const links = document.querySelectorAll('.product_tag-hoc-bep-gia-dinh .product-link-loadmore');
14
15if (links.length > 0) {
16    links.forEach(function(link) {
17        link.href = 'https://www.huongnghiepaau.com/hoc-nau-an-gia-dinh';
18        // link.addEventListener('click', function(event) {
19        //     event.preventDefault();
20        //     event.stopPropagation();
21        // });
22    });
23}
24
25(function($) {
26    $(window).ready(function () {   
27        $("#click-tel").click(function (e) {
28            e.preventDefault();
29            $("#popup-tel").fadeIn();
30        });
31        $("#popup-tel, .close-tel").click(function () {
32            $("#popup-tel").fadeOut();
33        });
34        $("#popup-tel-content").click(function (event) {
35            event.stopPropagation();
36        });
37    });
38})(jQuery);
39
40window.onscroll = function() {myFunctionScrollProgress()};
41
42function myFunctionScrollProgress() {
43    var winScroll_progress = document.body.scrollTop || document.documentElement.scrollTop;
44    var height_progress = document.documentElement.scrollHeight - document.documentElement.clientHeight;
45    var scrolled_progress = (winScroll_progress / height_progress) * 100;
46    var progressBar = document.getElementById("progressBar");
47    if (progressBar) {
48        progressBar.style.width = scrolled_progress + "%";
49    }
50}
51
52/*
53function lt_init_img() {
54    var imgDefer = document.getElementsByTagName('img');
55    for (var i=0; i<imgDefer.length; i++) {
56        if(imgDefer[i].getAttribute('data-src')) {
57            imgDefer[i].setAttribute('src',imgDefer[i].getAttribute('data-src'));
58        }
59    }
60}
61window.onload = lt_init_img;
62*/
63
64jQuery(function ($) {
65    $('.styleCET #tel-home a').text('1800 6552');
66    $('.styleCET #tel-home a, .styleCET .tel-info-column .call-tel, .styleCET .footer-bottom-wrapper-mobile .click-tel').attr('href', 'tel:18006552');
67    $('.styleCET .tel-info-column .call-tel').html('<i class="fa fa-phone" aria-hidden="true"></i> 1800 6552');
68    $('.styleCET .tel-info-column .call-tel-hide').remove();
69    $('.styleCET .tel-popup-mobile a.call-tel-popup').attr('href', 'tel:18006552');
70    $('.styleCET .tel-popup-mobile a.call-tel-popup').html('<i class="fa fa-phone" aria-hidden="true"></i> 1800 6552');
71
72    $('.styleBB #tel-home a').text('1800 255 508');
73    $('.styleBB #tel-home a, .styleBB .tel-info-column .call-tel, .styleBB .footer-bottom-wrapper-mobile .click-tel').attr('href', 'tel:1800255508');
74    $('.styleBB .tel-info-column .call-tel').html('<i class="fa fa-phone" aria-hidden="true"></i> 1800 255 508');
75    $('.styleBB .tel-info-column .call-tel-hide').remove();
76    $('.styleBB .tel-popup-mobile a.call-tel-popup').attr('href', 'tel:1800255508');
77    $('.styleBB .tel-popup-mobile a.call-tel-popup').html('<i class="fa fa-phone" aria-hidden="true"></i> 1800 255 508');
78    $('.styleBB #col-block_widget-4 .list-items-footer li:first-child a').attr('href', 'tel:1800255508');
79    $('.styleBB #col-block_widget-4 .list-items-footer li:first-child a').html('<strong> 1800 255 508</strong>');
80
81    $('.stylePC #tel-home a').text('1800 255 848');
82    $('.stylePC #tel-home a, .stylePC .tel-info-column .call-tel, .stylePC .footer-bottom-wrapper-mobile .click-tel').attr('href', 'tel:1800255848');
83    $('.stylePC .tel-info-column .call-tel').html('<i class="fa fa-phone" aria-hidden="true"></i> 1800 255 848');
84    $('.stylePC .tel-info-column .call-tel-hide').remove();
85    $('.stylePC .tel-popup-mobile a.call-tel-popup').attr('href', 'tel:1800255848');
86    $('.stylePC .tel-popup-mobile a.call-tel-popup').html('<i class="fa fa-phone" aria-hidden="true"></i>
86 1800 255 848');
87    $('.stylePC #col-block_widget-4 .list-items-footer li:first-child a').attr('href', 'tel:1800255848');
88    $('.stylePC #col-block_widget-4 .list-items-footer li:first-child a').html('<strong> 1800 255 848</strong>');
89
90	$('#weform-74306 .we_form_txtPSubmit').after("<p class='text-center title-popup02' style='font-size:16px;margin:0 auto'>(*Chương trình quà tặng, ưu đãi/trả góp học phí tùy thuộc từng khóa học)</p>");
91    $('#weform-77677 .we_form_txtPSubmit').after("<p class='text-center title-popup02' style='font-size:16px;margin:0 auto'>(*Chương trình quà tặng, ưu đãi/trả góp học phí tùy thuộc từng khóa học)</p>");
92    $('#weform-74258 .we_form_txtPSubmit').after("<p class='text-center title-popup02' style='font-size:16px;margin:0 auto'>(*Chương trình quà tặng, ưu đãi/trả góp học phí tùy thuộc từng khóa học)</p>");
93    $('.flickity-viewport .flickity-slider .img').removeAttr('style').removeAttr('aria-hidden');
94    $('.flickity-viewport .flickity-slider .img').attr('aria-hidden', 'false');
95    $('.accordion .accordion-item button.toggle').attr('aria-label', 'toggle');
96    $('.container-iframe iframe').attr('title', 'Youtube');
97    $('.we_lecturer-item-ctn a').attr('target', '_blank');
98});
99
100/*add gclid*/
101jQuery(function ($) {
102	let current_site_path = window.location.protocol + "//" + window.location.host;
103    let track_current_url = new URL(window.location.href);
104    let track_params = ['gclid', 'utm_source', 'utm_medium', 'utm_campaign'];
105    let has_param = false;
106    track_params.forEach(function(item){
107        if(track_current_url.searchParams.get(item)){
108            has_param = true;
109        }
110    });
111    if(has_param){
112        $('a').click(function() {
113            let a_href = $(this).attr('href');
114            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)){
115                let href = new URL(a_href);
116                track_params.forEach(function(item){
117                    if(track_current_url.searchParams.get(item)){
118                        href.searchParams.append(item, track_current_url.searchParams.get(item));
119                    }
120                });
121                $(this).attr("href", href.toString());
122            }
123        });
124    }
125});
126/*end add gclid*/

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.