PageSourceSearch

https://goup.vn/skins/goup/app.js?time=2026.05.15_07

js goup.vn collected 2026-10-02 00:04:31 UTC 15,992 bytes, 126 lines download raw bytes

1(function ($) {
2    $("body, html").on("click", ".go-to-top", function (e) {
3        e.preventDefault();
4        $('html, body').animate({scrollTop: 0}, 800);
5    });
6	$(window).bind('scroll', function () {
7		if ($(window).scrollTop() > 50) { $('.go-to-fixed').addClass('fixed');
8		} else {
9			$('.go-to-fixed').removeClass('fixed');
10		}
11		try{
12		if ($(window).scrollTop() > 100) { $('.go-to-top').removeClass('hidden');
13		} else {
14			$('.go-to-top').addClass('hidden');
15		}}catch(b){}
16	});
17	$.each($('.owlslide'),function(){
18		var items=1;
19	    try {
20	        //items = parseInt($(this).attr('items')) || 1;
21	    } catch (b) { items = 1; }
22	    $(this).owlCarousel({ autoplay: true, items: items, itemsDesktop: [1024, items], itemsDesktopSmall: [900, items], itemsTablet: [600, items], itemsMobile: [320, items], navigation: true, navigationText: ["<i class=&#39;fa fa-chevron-left&#39;></i>", "<i class=&#39;fa fa-chevron-right&#39;></i>"], slideSpeed: 500, pagination: false });
23	});
24})(jQuery);
25(function () { var t, e, n, i, o, r = function (t, e) { return function () { return t.apply(e, arguments) } }, s = [].indexOf || function (t) { for (var e = 0, n = this.length; n > e; e++) if (e in this && this[e] === t) return e; return -1 }; e = function () { function t() { } return t.prototype.extend = function (t, e) { var n, i; for (n in e) i = e[n], null == t[n] && (t[n] = i); return t }, t.prototype.isMobile = function (t) { return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t) }, t.prototype.createEvent = function (t, e, n, i) { var o; return null == e && (e = !1), null == n && (n = !1), null == i && (i = null), null != document.createEvent ? (o = document.createEvent("CustomEvent"), o.initCustomEvent(t, e, n, i)) : null != document.createEventObject ? (o = document.createEventObject(), o.eventType = t) : o.eventName = t, o }, t.prototype.emitEvent = function (t, e) { return null != t.dispatchEvent ? t.dispatchEvent(e) : e in (null != t) ? t[e]() : "on" + e in (null != t) ? t["on" + e]() : void 0 }, t.prototype.addEvent = function (t, e, n) { return null != t.addEventListener ? t.addEventListener(e, n, !1) : null != t.attachEvent ? t.attachEvent("on" + e, n) : t[e] = n }, t.prototype.removeEvent = function (t, e, n) { return null != t.removeEventListener ? t.removeEventListener(e, n, !1) : null != t.detachEvent ? t.detachEvent("on" + e, n) : delete t[e] }
vendor: 6,109 bytes, line 25
25, t.prototype.innerHeight = function () { return "innerHeight" in window ? window.innerHeight : document.documentElement.clientHeight }, t }(), n = this.WeakMap || this.MozWeakMap || (n = function () { function t() { this.keys = [], this.values = [] } return t.prototype.get = function (t) { var e, n, i, o, r; for (r = this.keys, e = i = 0, o = r.length; o > i; e = ++i) if (n = r[e], n === t) return this.values[e] }, t.prototype.set = function (t, e) { var n, i, o, r, s; for (s = this.keys, n = o = 0, r = s.length; r > o; n = ++o) if (i = s[n], i === t) return void (this.values[n] = e); return this.keys.push(t), this.values.push(e) }, t }()), t = this.MutationObserver || this.WebkitMutationObserver || this.MozMutationObserver || (t = function () { function t() { "undefined" != typeof console && null !== console && console.warn("MutationObserver is not supported by your browser."), "undefined" != typeof console && null !== console && console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.") } return t.notSupported = !0, t.prototype.observe = function () { }, t }()), i = this.getComputedStyle || function (t) { return this.getPropertyValue = function (e) { var n; return "float" === e && (e = "styleFloat"), o.test(e) && e.replace(o, function (t, e) { return e.toUpperCase() }), (null != (n = t.currentStyle) ? n[e] : void 0) || null }, this }, o = /(\-([a-z]){1})/g, this.WOW = function () { function o(t) { null == t && (t = {}), this.scrollCallback = r(this.scrollCallback, this), this.scrollHandler = r(this.scrollHandler, this), this.resetAnimation = r(this.resetAnimation, this), this.start = r(this.start, this), this.scrolled = !0, this.config = this.util().extend(t, this.defaults), null != t.scrollContainer && (this.config.scrollContainer = document.querySelector(t.scrollContainer)), this.animationNameCache = new n, this.wowEvent = this.util().createEvent(this.config.boxClass) } return o.prototype.defaults = { boxClass: "wow", animateClass: "animated", offset: 0, mobile: !0, live: !0, callback: null, scrollContainer: null }, o.prototype.init = function () { var t; return this.element = window.document.documentElement, "interactive" === (t = document.readyState) || "complete" === t ? this.start() : this.util().addEvent(document, "DOMContentLoaded", this.start), this.finished = [] }, o.prototype.start = function () { var e, n, i, o; if (this.stopped = !1, this.boxes = function () { var t, n, i, o; for (i = this.element.querySelectorAll("." + this.config.boxClass), o = [], t = 0, n = i.length; n > t; t++) e = i[t], o.push(e); return o }.call(this), this.all = function () { var t, n, i, o; for (i = this.boxes, o = [], t = 0, n = i.length; n > t; t++) e = i[t], o.push(e); return o }.call(this), this.boxes.length) if (this.disabled()) this.resetStyle(); else for (o = this.boxes, n = 0, i = o.length; i > n; n++) e = o[n], this.applyStyle(e, !0); return this.disabled() || (this.util().addEvent(this.config.scrollContainer || window, "scroll", this.scrollHandler), this.util().addEvent(window, "resize", this.scrollHandler), this.interval = setInterval(this.scrollCallback, 50)), this.config.live ? new t(function (t) { return function (e) { var n, i, o, r, s; for (s = [], n = 0, i = e.length; i > n; n++) r = e[n], s.push(function () { var t, e, n, i; for (n = r.addedNodes || [], i = [], t = 0, e = n.length; e > t; t++) o = n[t], i.push(this.doSync(o)); return i }.call(t)); return s } }(this)).observe(document.body, { childList: !0, subtree: !0 }) : void 0 }, o.prototype.stop = function () { return this.stopped = !0, this.util().removeEvent(this.config.scrollContainer || window, "scroll", this.scrollHandler), this.util().removeEvent(window, "resize", this.scrollHandler), null != this.interval ? clearInterval(this.interval) : void 0 }, o.prototype.sync = function () { return t.notSupported ? this.doSync(this.element) : void 0 }, o.prototype.doSync = function (t) { var e, n, i, o, r; if (null == t && (t = this.element), 1 === t.nodeType) { for (t = t.parentNode || t, o = t.querySelectorAll("." + this.config.boxClass), r = [], n = 0, i = o.length; i > n; n++) e = o[n], s.call(this.all, e) < 0 ? (this.boxes.push(e), this.all.push(e), this.stopped || this.disabled() ? this.resetStyle() : this.applyStyle(e, !0), r.push(this.scrolled = !0)) : r.push(void 0); return r } }, o.prototype.show = function (t) { return this.applyStyle(t), t.className = t.className + " " + this.config.animateClass, null != this.config.callback && this.config.callback(t), this.util().emitEvent(t, this.wowEvent), this.util().addEvent(t, "animationend", this.resetAnimation), this.util().addEvent(t, "oanimationend", this.resetAnimation), this.util().addEvent(t, "webkitAnimationEnd", this.resetAnimation), this.util().addEvent(t, "MSAnimationEnd", this.resetAnimation), t }, o.prototype.applyStyle = function (t, e) { var n, i, o; return i = t.getAttribute("data-wow-duration"), n = t.getAttribute("data-wow-delay"), o = t.getAttribute("data-wow-iteration"), this.animate(function (r) { return function () { return r.customStyle(t, e, i, n, o) } }(this)) }, o.prototype.animate = function () { return "requestAnimationFrame" in window ? function (t) { return window.requestAnimationFrame(t) } : function (t) { return t() } }(), o.prototype.resetStyle = function () { var t, e, n, i, o; for (i = this.boxes, o = [], e = 0, n = i.length; n > e; e++) t = i[e], o.push(t.style.visibility = "visible"); return o }, o.prototype.resetAnimation = function (t) { var e; return t.type.toLowerCase().indexOf("animationend") >= 0 ? (e = t.target || t.srcElement, e.className = e.className.replace(this.config.animateClass, "").trim()) : void 0 }, o.prototype.customStyle = function (t, e, n, i, o) { return e && this.cacheAnimationName(t), t.style.visibility = e ? "hidden" : "visible", n && this.vendorSet(t.style, { animationDuration: n }), i && this.vendorSet(t.style, { animationDelay: i }), o && this.vendorSet(t.style, { animationIterationCount: o }), this.vendorSet(t.style, { animationName: e ? "none" : this.cachedAnimationName(t) }), t }
25, o.prototype.vendors = ["moz", "webkit"], o.prototype.vendorSet = function (t, e) { var n, i, o, r; i = []; for (n in e) o = e[n], t["" + n] = o, i.push(function () { var e, i, s, l; for (s = this.vendors, l = [], e = 0, i = s.length; i > e; e++) r = s[e], l.push(t["" + r + n.charAt(0).toUpperCase() + n.substr(1)] = o); return l }.call(this)); return i }, o.prototype.vendorCSS = function (t, e) { var n, o, r, s, l, a; for (l = i(t), s = l.getPropertyCSSValue(e), r = this.vendors, n = 0, o = r.length; o > n; n++) a = r[n], s = s || l.getPropertyCSSValue("-" + a + "-" + e); return s }, o.prototype.animationName = function (t) { var e; try { e = this.vendorCSS(t, "animation-name").cssText } catch (n) { e = i(t).getPropertyValue("animation-name") } return "none" === e ? "" : e }, o.prototype.cacheAnimationName = function (t) { return this.animationNameCache.set(t, this.animationName(t)) }, o.prototype.cachedAnimationName = function (t) { return this.animationNameCache.get(t) }, o.prototype.scrollHandler = function () { return this.scrolled = !0 }, o.prototype.scrollCallback = function () { var t; return !this.scrolled || (this.scrolled = !1, this.boxes = function () { var e, n, i, o; for (i = this.boxes, o = [], e = 0, n = i.length; n > e; e++) t = i[e], t && (this.isVisible(t) ? this.show(t) : o.push(t)); return o }.call(this), this.boxes.length || this.config.live) ? void 0 : this.stop() }, o.prototype.offsetTop = function (t) { for (var e; void 0 === t.offsetTop;) t = t.parentNode; for (e = t.offsetTop; t = t.offsetParent;) e += t.offsetTop; return e }, o.prototype.isVisible = function (t) { var e, n, i, o, r; return n = t.getAttribute("data-wow-offset") || this.config.offset, r = this.config.scrollContainer && this.config.scrollContainer.scrollTop || window.pageYOffset, o = r + Math.min(this.element.clientHeight, this.util().innerHeight()) - n, i = this.offsetTop(t), e = i + t.clientHeight, o >= i && e >= r }, o.prototype.util = function () { return null != this._util ? this._util : this._util = new e }, o.prototype.disabled = function () { return !this.config.mobile && this.util().isMobile(navigator.userAgent) }, o }() }).call(this);
26var array = [];
27$(document).ready(function () {
28    if ($(window).width() > 1200) {
29        $("*").each(function () {
30            var attr = $(this).attr('data-animate');
31            if (typeof attr !== typeof undefined && attr !== false) {
32                array.push($(this));
33                if (attr.split("-").length > 1) {
34                    $(this).children().css("opacity", "0");
35                }
36                else {
37                    $(this).css("opacity", "0");
38                }
39            }
40        });
41    }
42    try {
43        wow = new WOW({ animateClass: 'animated', offset: 100 });
44        wow.init();
45    } catch (ec) { }
46});
47$(window).on("load scroll", function () {
48    if ($(window).width() > 1200) {
49        var window_offset_top = $(window).scrollTop();
50        var window_offset_bottom = $(window).scrollTop() + $(window).height();
51        var elementRemoveArray = [];
52        var timeRunAnimate = 0;
53        for (var i = 0; i < array.length; i++) {
54            var currentElement = array[i];
55            var animateCss = array[i].attr("data-animate");
56            var split = animateCss.split("-");
57            //scroll show
58            var element_offset_top = currentElement.offset().top;
59            var element_offset_bottom = currentElement.offset().top + currentElement.height();
60            if (element_offset_top >= window_offset_top && element_offset_top <= window_offset_bottom || element_offset_bottom <= window_offset_bottom && element_offset_bottom >= window_offset_top) {
61                if (split.length > 1) {
62                    for (var j = 0; j < currentElement.children().length ; j++) {
63                        showSort(currentElement.children().eq(j), split[0], timeRunAnimate);
64                        timeRunAnimate += 200;
65                        removeClassAnimate(currentElement.children(), split[0]);
66                    }
67                    elementRemoveArray.push(i);
68                }
69                else {
70                    currentElement.removeAttr("style").addClass('animated ' + animateCss);
71                    elementRemoveArray.push(i);
72                    removeClassAnimate(currentElement, animateCss);
73                }
74            }
75        }
76        for (var i = elementRemoveArray.length - 1; i >= 0; i--) {
77            array.splice(elementRemoveArray[i], 1);
78        }
79    }
80});
81function removeClassAnimate(id, animateCss) { setTimeout(function () { id.removeClass("animated " + animateCss); }, 3000); };
82function showSort(currentElement, animateCss, timeRunAnimate) { setTimeout(function () { currentElement.removeAttr("style").addClass('animated ' + animateCss); }, timeRunAnimate); };
83function showcontent1(id, control) {
84	if(GoUP.url){
85        $('.side-nav--items').addClass('isopen');$('.cchelpdoc').text('+');
86        if (GoUP.url.code != undefined) {
87            window.history.pushState(null, null, "/huong-dan-su-dung/" + (GoUP.url.code || "erp") + "?chapterid=" + id+(GoUP.url.popup?'&popup=1':'')+ "&helpcontrol
87=" + control);
88        } else { window.history.pushState(null, null, window.location.pathname + "?code=" + GoUP.url.code + "&chapterid=" + id+(GoUP.url.popup?'&popup=1':'')+ "&helpcontrol=" + control); }
89		var op={ mode: "content", id: id, control: control, code: GoUP.url.code };
90		console.log('op',op);
91        GoUP.filter("o_help_all", op, function(o1){			
92		//console.log('help',o1);
93		var o=o1[0];
94        $("#helpcontent").html("<h2>" + o.name + "</h2><p>" + o.content + "</p>"); 
95		scrolltoel($('#helpcontent>h2.chapname'),$('#helpcontent'));
96		window.title = o.name2;
97		}, function(er){console.log('err:',er);});
98	}
99}
100function showcontent(id, control, a) {
101    GoUP = GoUP || {};
102    if (GoUP.url) {
103        if (GoUP.url.code != undefined) {
104            window.history.pushState(null, null, "/huong-dan-su-dung/" + (GoUP.url.code || "erp") + ((control || '') != '' ? '/' + control : '') + "?chapterid=" + id);
105        } else { window.history.pushState(null, null, window.location.pathname + "?code=" + GoUP.url.code + "&chapterid=" + id); }
106        var o = GoUP.filter("o_help_all", { mode: "content", id: id, control: control, code: GoUP.url.code }, null, null, 0).data[0];
107        $("#helpcontent").html("<h2 class=chapname>" + o.name + "</h2><p>" + o.content + "</p>");
108		$('html').animate({ scrollTop: 10 }); window.aftershowhelpcontent&&window.aftershowhelpcontent();
109		window.title = o.name2;
110    }
111    if (a) {
112        $(a).closest('.side-nav__sub-nav').find('>li').removeClass('side-nav__sub-nav-item--active');
113        $(a).closest('.side-nav__sub-nav-item').addClass('side-nav__sub-nav-item--active');
114    }
115};
116$(document).ready(function () {
117        if (GoUP.url&&GoUP.url.chapterid + "" != "") {
118            try {
119                document.getElementById("" + GoUP.url.chapterid).scrollIntoView({ block: "start", behavior: "smooth" });
120            } catch (bb) { }
121        }
122    });
123GoUP.sendtoparent = function (o) {
124            var target = window.parent.postMessage ? window.parent : (window.parent.document.postMessage ? window.parent.document : undefined);
125            if (typeof target != "undefined") { target.postMessage(o, "*"); };
126        };

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.