PageSourceSearch

https://uinmadura.id/js/main.js

js uinmadura.id collected 2026-10-07 00:08:11 UTC 5,461 bytes, 179 lines download raw bytes

1(function ($) {
2    "use strict";
3
4    // loader
5    var loader = function () {
6        setTimeout(function () {
7            if ($("#loader").length > 0) {
8                $("#loader").removeClass("show");
9            }
10        }, 1);
11    };
12    loader();
13
14    // Back to top button
15    $(window).scroll(function () {
16        if ($(this).scrollTop() > 200) {
17            $(".back-to-top").fadeIn("slow");
18        } else {
19            $(".back-to-top").fadeOut("slow");
20        }
21    });
22    $(".back-to-top").click(function () {
23        $("html, body").animate({ scrollTop: 0 }, 1500, "easeInOutExpo");
24        return false;
25    });
26
27    // Sticky Navbar
28    $(window).scroll(function () {
29        if ($(this).scrollTop() > 90) {
30            $(".nav-bar").addClass("nav-sticky");
31            $(".language-bar").addClass("language-sticky");
32            $(".carousel, .page-header").css("margin-top", "73px");
33        } else {
34            $(".nav-bar").removeClass("nav-sticky");
35            $(".language-bar").removeClass("language-sticky");
36            $(".carousel, .page-header").css("margin-top", "0");
37        }
38    });
39
40    // Dropdown on mouse hover
41    $(document).ready(function () {
42        function toggleNavbarMethod() {
43            if ($(window).width() > 992) {
44                // $(".navbar .dropdown")
45                //     .on("mouseover", function () {
46                //         $(".nav-link.dropdown-toggle", this).trigger("click");
47                //     })
48                //     .on("mouseout", function () {
49                //         $(".nav-link.dropdown-toggle", this)
50                //             .trigger("click")
51                //             .blur();
52                //     });
53            } else {
54                $(".navbar .dropdown").off("mouseover").off("mouseout");
55            }
56        }
57        toggleNavbarMethod();
58        $(window).resize(toggleNavbarMethod);
59    });
60
61    // Kode Etik Carousel
62    $(".carousel .owl-carousel.kode-etik").owlCarousel({
63        autoplay: true,
64        items: 1,
65        loop: true,
66        rewind: true,
67        nav: false,
68        smartSpeed: 500,
69        autoplayHoverPause: true,
70        dots: true,
71    });
72
73    // Main carousel
74    $(".carousel .owl-carousel").owlCarousel({
75        autoplay: true,
76        animateOut: "fadeOut",
77        animateIn: "fadeIn",
78        items: 1,
79        smartSpeed: 300,
80        dots: false,
81        loop: true,
82        nav: true,
83        autoplayHoverPause: true,
84        navText: [
85            '<i class="fa fa-angle-left" aria-hidden="true"></i>',
86            '<i class="fa fa-angle-right" aria-hidden="true"></i>',
87        ],
88    });
89
90    // Facts counter
91    $('[data-toggle="counter-up"]').counterUp({
92        delay: 10,
93        time: 2000,
94    });
95
96    // Testimonials carousel
97    $(".testimonials-carousel").owlCarousel({
98        center: true,
99        autoplay: true,
100        smartSpeed: 2000,
101        dots: true,
102        loop: true,
103        responsive: {
104            0: {
105                items: 1,
106            },
107            576: {
108                items: 1,
109            },
110            768: {
111                items: 2,
112            },
113            992: {
114                items: 3,
115            },
116        },
117    });
118
119    // Related post carousel
120    $(".related-slider").owlCarousel({
121        autoplay: true,
122        dots: false,
123        loop: true,
124        nav: true,
125        navText: [
126            '<i class="fa fa-angle-left" aria-hidden="true"></i>',
127            '<i class="fa fa-angle-right" aria-hidden="true"></i>',
128        ],
129        responsive: {
130            0: {
131                items: 1,
132            },
133            576: {
134                items: 1,
135            },
136            768: {
137                items: 2,
138            },
139        },
140    });
141
142    $("#indonesia").click(function () {
143        $("#indonesia").attr("checked", "checked");
144        $("#arabic, #unitedKingdom").attr("checked", false);
145        $("#indonesia").addClass("current");
146        $("#arabic, #unitedKingdom").removeClass("current");
147        $("#lang2, #lang3").toggle("slow", function () {});
148        jQuery("#\\:1\\.container").contents().find("#\\:1\\.restore").
148click();
149        // changeLanguage("id");
150    });
151    $("#arabic").click(function () {
152        $("#arabic").attr("checked", "checked");
153        $("#indonesia, #unitedKingdom").attr("checked", false);
154        $("#arabic").addClass("current");
155        $("#indonesia, #unitedKingdom").removeClass("current");
156        $("#lang1, #lang3").toggle("slow", function () {});
157        changeLanguage("ar");
158    });
159    $("#unitedKingdom").click(function () {
160        $("#unitedKingdom").attr("checked", "checked");
161        $("#indonesia, #arabic").attr("checked", false);
162        $("#unitedKingdom").addClass("current");
163        $("#indonesia, #arabic").removeClass("current");
164        $("#lang1, #lang2").toggle("slow", function () {});
165        changeLanguage("en");
166    });
167    $("#mandarin").click(function () {
168        changeLanguage("zh-TW");
169    });
170    $("#madura").click(function () {
171        changeLanguage("mad");
172    });
173
174    $(".open-btnsearch").click(function () {
175        $(this).toggleClass("btnactive");
176        $("#search-wrap").toggleClass("panelactive");
177        $("#search-text").focus();
178    });
179})(jQuery);

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.