PageSourceSearch

https://www.mirandahouse.ac.in/informationcentre/assets/global/scripts/app.min.js

js mirandahouse.ac.in collected 2026-10-02 18:09:16 UTC 24,496 bytes, 487 lines download raw bytes

1var App = function() {
2    var t, e = !1,
3        o = !1,
4        a = !1,
5        i = !1,
6        n = [],
7        l = "../assets/",
8        s = "global/img/",
9        r = "global/plugins/",
10        c = "global/css/",
11        d = {
12            blue: "#89C4F4",
13            red: "#F3565D",
14            green: "#1bbc9b",
15            purple: "#9b59b6",
16            grey: "#95a5a6",
17            yellow: "#F8CB00"
18        },
19        p = function() {
20            "rtl" === $("body").css("direction") && (e = !0), o = !!navigator.userAgent.match(/MSIE 8.0/), a = !!navigator.userAgent.match(/MSIE 9.0/), i = !!navigator.userAgent.match(/MSIE 10.0/), i && $("html").addClass("ie10"), (i || a || o) && $("html").addClass("ie")
21        },
22        h = function() {
23            for (var t = 0; t < n.length; t++) {
24                var e = n[t];
25                e.call()
26            }
27        },
28        u = function() {
29            var t, e = $(window).width();
30            if (o) {
31                var a;
32                $(window).resize(function() {
33                    a != document.documentElement.clientHeight && (t && clearTimeout(t), t = setTimeout(function() {
34                        h()
35                    }, 50), a = document.documentElement.clientHeight)
36                })
37            } else $(window).resize(function() {
38                $(window).width() != e && (e = $(window).width(), t && clearTimeout(t), t = setTimeout(function() {
39                    h()
40                }, 50))
41            })
42        },
43        f = function() {
44            $("body").on("click", ".portlet > .portlet-title > .tools > a.remove", function(t) {
45                t.preventDefault();
46                var e = $(this).closest(".portlet");
47                $("body").hasClass("page-portlet-fullscreen") && $("body").removeClass("page-portlet-fullscreen"), e.find(".portlet-title .fullscreen").tooltip("destroy"), e.find(".portlet-title > .tools > .reload").tooltip("destroy"), e.find(".portlet-title > .tools > .remove").tooltip("destroy"), e.find(".portlet-title > .tools > .config").tooltip("destroy"), e.find(".portlet-title > .tools > .collapse, .portlet > .portlet-title > .tools > .expand").tooltip("destroy"), e.remove()
48            }), $("body").on("click", ".portlet > .portlet-title .fullscreen", function(t) {
49                t.preventDefault();
50                var e = $(this).closest(".portlet");
51                if (e.hasClass("portlet-fullscreen")) $(this).removeClass("on"), e.removeClass("portlet-fullscreen"), $("body").removeClass("page-portlet-fullscreen"), e.children(".portlet-body").css("height", "auto");
52                else {
53                    var o = App.getViewPort().height - e.children(".portlet-title").outerHeight() - parseInt(e.children(".portlet-body").css("padding-top")) - parseInt(e.children(".portlet-body").css("padding-bottom"));
54                    $(this).addClass("on"), e.addClass("portlet-fullscreen"), $("body").addClass("page-portlet-fullscreen"), e.children(".portlet-body").css("height", o)
55                }
56            }), $("body").on("click", ".portlet > .portlet-title > .tools > a.reload", function(t) {
57                t.preventDefault();
58                var e = $(this).closest(".portlet").children(".portlet-body"),
59                    o = $(this).attr("data-url"),
60                    a = $(this).attr("data-error-display");
61                o ? (App.blockUI({
62                    target: e,
63                    animate: !0,
64                    overlayColor: "none"
65                }), $.ajax({
66                    type: "GET",
67                    cache: !1,
68                    url: o,
69                    dataType: "html",
70                    success: function(t) {
71                        App.unblockUI(e), e.html(t), App.initAjax()
72                    },
73                    error: function(t, o, i) {
74                        App.unblockUI(e);
75                        var n = "Error on reloading the content. Please check your connection and try again.";
76                        "toastr" == a && toastr ? toastr.error(n) : "notific8" == a && $.notific8 ? ($.notific8("zindex", 11500), $.notific8(n, {
77                            theme: "ruby",
78                            life: 3e3
79                        })) : alert(n)
80                    }
81                })) : (App.blockUI({
82                    target: e,
83                    animate: !0,
84                    overlayColor: "none"
85                }), window.setTimeout(function() {
86                    App.unblockUI(e)
87                }, 1e3))
88            }), $('.portlet .portlet-title a.reload[data-load="true"]').click(), $("body").on("click", ".portlet > .portlet-title > .tools > .collapse, .portlet .portlet-title > .tools > .expand", function(t) {
89                t.preventDefault();
90                var e = $(this).closest(".portlet").children(".portlet-body");
91                $(this).hasClass("collapse") ? ($(this).removeClass("collapse").addClass("expand"), e.slideUp(200)) : ($(this).removeClass("expand").addClass("collapse"), e.slideDown(200))
92            })
93        },
94        b = function() {
95            if ($("body").on("click", ".md-checkbox > label, .md-radio > label", function() {
96                    var t = $(this),
97                        e = $(this).children("span:first-child");
98                    e.addClass("inc");
99                    var o = e.clone(!0);
100                    e.before(o), $("." + e.attr("class") + ":last", t).remove()
101                }), $("body").hasClass("page-md")) {
102                var t, e, o, a, i;
103                $("body").on("click", "a.btn, button.btn, input.btn, label.btn", function(n) {
104                    t = $(this), 0 == t.find(".md-click-circle").length && t.prepend("<span class='md-click-circle'></span>"), e = t.find(".md-click-circle"), e.removeClass("md-click-animate"), e.height() || e.width() || (o = Math.max(t.outerWidth(), t.outerHeight()), e.css({
105                        height: o,
106                        width: o
107                    })), a = n.pageX - t.offset().left - e.width() / 2, i = n.pageY - t.offset().top - e.height() / 2, e.css({
108                        top: i + "px",
109                        left: a + "px"
110                    }).addClass("md-click-animate"), setTimeout(function() {
111                        e.remove()
112                    }, 1e3)
113                })
114            }
115            var n = function(t) {
116                "" != t.val() ? t.addClass("edited") : t.removeClass("edited")
117            };
118            $("body").on("keydown", ".form-md-floating-label .form-control", function(t) {
119                n($(this))
120            }), $("body").on("blur", ".form-md-floating-label .form-control", function(t) {
121                n($(this))
122            }), $(".form-md-floating-label .form-control").each(function() {
123                $(this).val().length > 0 && $(this).addClass("edited")
124            })
125        },
126        g = function() {
127            $().iCheck && $(".icheck").each(function() {
128                var t = $(this).attr("data-checkbox") ? $(this).attr("data-checkbox") : "icheckbox_minimal-grey",
129                    e = $(this).attr("data-radio") ? $(this).attr("data-radio") : "iradio_minimal-grey";
130                t.indexOf("_line") > -1 || e.indexOf("_line") > -1 ? $(this).iCheck({
131                    checkboxClass: t,
132                    radioClass: e,
133                    insert: '<div class="icheck_line-icon"></div>' + $(this).attr("data-label")
134                }) : $(this).iCheck({
135                    checkboxClass: t,
136                    radioClass: e
137                })
138            })
139        },
140        m = function() {
141            $().bootstrapSwitch && $(".make-switch").bootstrapSwitch()
142        },
143        v = function() {
144            $().confirmation && $("[data-toggle=confirmation]").confirmation({
145                btnOkClass: "btn btn-sm btn-success",
146                btnCancelClass: "btn btn-sm btn-danger"
147            })
148        },
149        y = function() {
150            $("body").on("shown.bs.collapse", ".accordion.scrollable", function(t) {
151                App.scrollTo($(t.target))
152            })
153        },
154        C = function() {
155            if (encodeURI(location.hash)) {
156                var t = encodeURI(location.hash.substr(1));
157                $('a[href="#' + t + '"]').parents(".tab-pane:hidden").each(function() {
158                    var t = $(this).attr("id");
159                    $('a[href="#' + t + '"]').click()
160                }), $('a[href="#' + t + '"]').click()
161            }
162            $().tabdrop && $(".tabbable-tabdrop .nav-pills, .tabbable-tabdrop .nav-tabs").tabdrop({
163                text: '<i class="fa fa-ellipsis-v"></i>&nbsp;<i class="fa fa-angle-down"></i>'
164            })
165        },
166        w = function() {
167            $("body").on("hide.bs.modal", function() {
168                $(".modal:visible").size() > 1 && $("html").hasClass("modal-open") === !1 ? $("html").addClass("modal-open") : $(".modal:visible").size() <= 1 && $("html").removeClass("modal-open")
169            }), $("body").on("show.bs.modal", ".modal", function() {
170                $(this).hasClass("modal-scroll") && $("body").addClass("modal-open-noscroll")
171            }), $("body").on("hidden.bs.modal", ".modal", function() {
172                $("body").removeClass("modal-open-noscroll")
173            }), $("body").on("hidden.bs.modal", ".modal:not(.modal-cached)", function() {
174                $(this).removeData("bs.modal")
175            })
176        },
177        x = function() {
178            $(".tooltips").tooltip(), $(".portlet > .portlet-title .fullscreen").tooltip({
179                trigger: "hover",
180                container: "body",
181                title: "Fullscreen"
182            }), $(".portlet > .portlet-title > .tools > .reload").tooltip({
183                trigger: "hover",
184                container: "body",
185                title: "Reload"
186            }), $(".portlet > .portlet-title > .tools > .remove").tooltip({
187                trigger: "hover",
188                container: "body",
189                title: "Remove"
190            }), $(".portlet > .portlet-title > .tools > .config").tooltip({
191                trigger: "hover",
192                container: "body",
193                title: "Settings"
194            }), $(".portlet > .portlet-title > .tools > .collapse, .portlet > .portlet-title > .tools > .expand").tooltip({
195                trigger: "hover",
196                container: "body",
197                title: "Collapse/Expand"
198            })
199        },
200        k = function() {
201            $("body").on("click", ".dropdown-menu.hold-on-click", function(t) {
202                t.stopPropagation()
203            })
204        },
205        I = function() {
206            $("body").on("click", '[data-close="alert"]', function(t) {
207                $(this).parent(".alert").hide(), $(this).closest(".
207note").hide(), t.preventDefault()
208            }), $("body").on("click", '[data-close="note"]', function(t) {
209                $(this).closest(".note").hide(), t.preventDefault()
210            }), $("body").on("click", '[data-remove="note"]', function(t) {
211                $(this).closest(".note").remove(), t.preventDefault()
212            })
213        },
214        A = function() {
215            "function" == typeof autosize && autosize(document.querySelectorAll("textarea.autosizeme"))
216        },
217        S = function() {
218            $(".popovers").popover(), $(document).on("click.bs.popover.data-api", function(e) {
219                t && t.popover("hide")
220            })
221        },
222        z = function() {
223            App.initSlimScroll(".scroller")
224        },
225        P = function() {
226            jQuery.fancybox && $(".fancybox-button").size() > 0 && $(".fancybox-button").fancybox({
227                groupAttr: "data-rel",
228                prevEffect: "none",
229                nextEffect: "none",
230                closeBtn: !0,
231                helpers: {
232                    title: {
233                        type: "inside"
234                    }
235                }
236            })
237        },
238        T = function() {
239            $().counterUp && $("[data-counter='counterup']").counterUp({
240                delay: 10,
241                time: 1e3
242            })
243        },
244        D = function() {
245            (o || a) && $("input[placeholder]:not(.placeholder-no-fix), textarea[placeholder]:not(.placeholder-no-fix)").each(function() {
246                var t = $(this);
247                "" === t.val() && "" !== t.attr("placeholder") && t.addClass("placeholder").val(t.attr("placeholder")), t.focus(function() {
248                    t.val() == t.attr("placeholder") && t.val("")
249                }), t.blur(function() {
250                    "" !== t.val() && t.val() != t.attr("placeholder") || t.val(t.attr("placeholder"))
251                })
252            })
253        },
254        U = function() {
255            $().select2 && ($.fn.select2.defaults.set("theme", "bootstrap"), $(".select2me").select2({
256                placeholder: "Select",
257                width: "auto",
258                allowClear: !0
259            }))
260        },
261        E = function() {
262            $("[data-auto-height]").each(function() {
263                var t = $(this),
264                    e = $("[data-height]", t),
265                    o = 0,
266                    a = t.attr("data-mode"),
267                    i = parseInt(t.attr("data-offset") ? t.attr("data-offset") : 0);
268                e.each(function() {
269                    "height" == $(this).attr("data-height") ? $(this).css("height", "") : $(this).css("min-height", "");
270                    var t = "base-height" == a ? $(this).outerHeight() : $(this).outerHeight(!0);
271                    t > o && (o = t)
272                }), o += i, e.each(function() {
273                    "height" == $(this).attr("data-height") ? $(this).css("height", o) : $(this).css("min-height", o)
274                }), t.attr("data-related") && $(t.attr("data-related")).css("height", t.height())
275            })
276        };
277    return {
278        init: function() {
279            p(), u(), b(), g(), m(), z(), P(), U(), f(), I(), k(), C(), x(), S(), y(), w(), v(), A(), T(), this.addResizeHandler(E), D()
280        },
281        initAjax: function() {
282            g(), m(), z(), U(), P(), k(), x(), S(), y(), v()
283        },
284        initComponents: function() {
285            this.initAjax()
286        },
287        setLastPopedPopover: function(e) {
288            t = e
289        },
290        addResizeHandler: function(t) {
291            n.push(t)
292        },
293        runResizeHandlers: function() {
294            h()
295        },
296        scrollTo: function(t, e) {
297            var o = t && t.size() > 0 ? t.offset().top : 0;
298            t && ($("body").hasClass("page-header-fixed") ? o -= $(".page-header").height() : $("body").hasClass("page-header-top-fixed") ? o -= $(".page-header-top").height() : $("body").hasClass("page-header-menu-fixed") && (o -= $(".page-header-menu").height()), o += e ? e : -1 * t.height()), $("html,body").animate({
299                scrollTop: o
300            }, "slow")
301        },
302        initSlimScroll: function(t) {
303            $().slimScroll && $(t).each(function() {
304                if (!$(this).attr("data-initialized")) {
305                    var t;
306                    t = $(this).attr("data-height") ? $(this).attr("data-height") : $(this).css("height"), $(this).slimScroll({
307                        allowPageScroll: !0,
308                        size: "7px",
309                        color: $(this).attr("data-handle-color") ? $(this).attr("data-handle-color") : "#bbb",
310                        wrapperClass: $(this).attr("data-wrapper-class") ? $(this).attr("data-wrapper-class") : "slimScrollDiv",
311                        railColor: $(this).attr("data-rail-color") ? $(this).attr("data-rail-color") : "#eaeaea",
312                        position: e ? "left" : "right",
313                        height: t,
314                        alwaysVisible: "1" == $(this).attr("data-always-visible"),
315                        railVisible: "1" == $(this).attr("data-rail-visible"),
316                        disableFadeOut: !0
317                    }), $(this).attr("data-initialized", "1")
318                }
319            })
320        },
321        destroySlimScroll: function(t) {
322            $().slimScroll && $(t).each(function() {
323                if ("1" === $(this).attr("data-initialized")) {
324                    $(this).removeAttr("data-initialized"), $(this).removeAttr("style");
325                    var t = {};
326                    $(this).attr("data-handle-color") && (t["data-handle-color"] = $(this).attr("data-handle-color")), $(this).attr("data-wrapper-class") && (t["data-wrapper-class"] = $(this).attr("data-wrapper-class")), $(this).attr("data-rail-color") && (t["data-rail-color"] = $(this).attr("data-rail-color")), $(this).attr("data-always-visible") && (t["data-always-visible"] = $(this).attr("data-always-visible")), $(this).attr("data-rail-visible") && (t["data-rail-visible"] = $(this).attr("data-rail-visible")), $(this).slimScroll({
327                        wrapperClass: $(this).attr("data-wrapper-class") ? $(this).attr("data-wrapper-class") : "slimScrollDiv",
328                        destroy: !0
329                    });
330                    var e = $(this);
331                    $.each(t, function(t, o) {
332                        e.attr(t, o)
333                    })
334                }
335            })
336        },
337        scrollTop: function() {
338            App.scrollTo()
339        },
340        blockUI: function(t) {
341            t = $.extend(!0, {}, t);
342            var e = "";
343            if (e = t.animate ? '<div class="loading-message ' + (t.boxed ? "loading-message-boxed" : "") + '"><div class="block-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div></div>' : t.iconOnly ? '<div class="loading-message ' + (t.boxed ? "loading-message-boxed" : "") + '"><img src="' + this.getGlobalImgPath() + 'loading-spinner-grey.gif" align=""></div>' : t.textOnly ? '<div class="loading-message ' + (t.boxed ? "loading-message-boxed" : "") + '"><span>&nbsp;&nbsp;' + (t.message ? t.message : "LOADING...") + "</span></div>" : '<div class="loading-message ' + (t.boxed ? "loading-message-boxed" : "") + '"><img src="' + this.getGlobalImgPath() + 'loading-spinner-grey.gif" align=""><span>&nbsp;&nbsp;' + (t.message ? t.message : "LOADING...") + "</span></div>", t.target) {
344                var o = $(t.target);
345                o.height() <= $(window).height() && (t.cenrerY = !0), o.block({
346                    message: e,
347                    baseZ: t.zIndex ? t.zIndex : 1e3,
348                    centerY: void 0 !== t.cenrerY && t.cenrerY,
349                    css: {
350                        top: "10%",
351                        border: "0",
352                        padding: "0",
353                        backgroundColor: "none"
354                    },
355                    overlayCSS: {
356                        backgroundColor: t.overlayColor ? t.overlayColor : "#555",
357                        opacity: t.boxed ? .05 : .1,
358                        cursor: "wait"
359                    }
360                })
361            } else $.blockUI({
362                message: e,
363                baseZ: t.zIndex ? t.zIndex : 1e3,
364                css: {
365                    border: "0",
366                    padding: "0",
367                    backgroundColor: "none"
368                },
369                overlayCSS: {
370                    backgroundColor: t.overlayColor ? t.overlayColor : "#555",
371                    opacity: t.boxed ? .05 : .1,
372                    cursor: "wait"
373                }
374            })
375        },
376        unblockUI: function(t) {
377            t ? $(t).unblock({
378                onUnblock: function() {
379                    $(t).css("position", ""), $(t).css("zoom", "")
380                }
381            }) : $.unblockUI()
382        },
383        startPageLoading: function(t) {
384            t && t.animate ? ($(".page-spinner-bar").remove(), $("body").append('<div class="page-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>')) : ($(".page-loading").remove(), $("body").append('<div class="page-loading"><img src="' + this.getGlobalImgPath() + 'loading-spinner-grey.gif"/>&nbsp;&nbsp;<span>' + (t && t.message ? t.message : "Loading...") + "</span></div>"))
385        },
386        stopPageLoading: function() {
387            $(".page-loading, .page-spinner-bar").remove()
388        },
389        alert: function(t) {
390            t = $.extend(!0, {
391                container: "",
392                place: "append",
393                type: "success",
394                message: "",
395                close: !0,
396                reset: !0,
397                focus: !0,
398                closeInSeconds: 0,
399                icon: ""
400            }, t);
401            var e = App.getUniqueID("App_alert"),
402                o = '<div id="' + e + '" class="custom-alerts alert alert-' + t.type + ' fade in">' + (t.close ? '<button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>' : "") + ("" !== t.icon ? '<i class="fa-lg fa fa-' + t.icon + '"></i>  ' : "") + t.message + "</div>";
403            return t.reset && $(".custom-alerts").remove(), t.container ? "append" == t.place ? $(t.container).append(o) : $(t.container).prepend(o) : 1 === $(".page-fixed-main-content").size() ? $(".page-fixed-main-content").prepend(o) : ($("body").hasClass("page-container-bg-solid") || $("body").hasClass("page-content-white")) && 0 === $(".page-head").size() ? $(".page-title").after(o) : $(".page-bar").size() > 0 ? $(".page-bar").after(o) : $(".page-breadcrumb, .breadcrumbs").after(o), t.focus && App.scrollTo($("#" + e)), t.closeInSeconds > 0 && setTimeout(function() {
404                $("#" + e).remove()
405            }, 1e3 * t.closeInSeconds), e
406        },
407        initFancybox: function() {
408            P()
409        },
410        getActualVal: function(t) {
411            return t = $(t), t.val() === t.attr("placeholder") ? "" : t.val()
412        },
413        getURLParameter: function(t) {
414            var e, o, a = window.location.search.substring(1),
415                i = a.split("&");
416            for (e = 0; e < i.length; e++)
417                if (o = i[e].split("="), o[0] == t) return unescape(o[1]);
418            return null
419        },
420        isTouchDevice: function() {
421            try {
422                return document.createEvent("TouchEvent"), !0
423            } catch (t) {
424                return !1
425            }
426        },
427        getViewPort: function() {
428            var t = window,
429                e = "inner";
430            return "innerWidth" in window || (e = "client", t = document.documentElement || document.body), {
431                width: t[e + "Width"],
432                height: t[e + "Height"]
433            }
434        },
435        getUniqueID: function(t) {
436            return "prefix_" + Math.floor(Math.random() * (new Date).getTime())
437        },
438        isIE8: function() {
439            return o
440        },
441        isIE9: function() {
442            return a
443        },
444        isRTL: function() {
445            return e
446        },
447        isAngularJsApp: function() {
448            return "undefined" != typeof angular
449        },
450        getAssetsPath: function() {
451            return l
452        },
453        setAssetsPath: function(t) {
454            l = t
455        },
456        setGlobalImgPath: function(t) {
457            s = t
458        },
459        getGlobalImgPath: function() {
460            return l + s
461        },
462        setGlobalPluginsPath: function(t) {
463            r = t
464        },
465        getGlobalPluginsPath: function() {
466            return l + r
467        },
468        getGlobalCssPath: function() {
469            return l + c
470        },
471        getBrandColor: function(t) {
472            return d[t] ? d[t] : ""
473        },
474        getResponsiveBreakpoint: function(t) {
475            var e = {
476                xs: 480,
477                sm: 768,
478                md: 992,
479                lg: 1200
480            };
481            return e[t] ? e[t] : 0
482        }
483    }
484}();
485jQuery(document).ready(function() {
486    App.init()
487});

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.