PageSourceSearch

https://aau.ac.ae/themes/frontend/2023/js/frontend/custom.js?v=8.12

js aau.ac.ae collected 2026-10-02 07:28:52 UTC 17,723 bytes, 240 lines download raw bytes

1(function ($) {
2        'use strict'; $('.mean-menu').meanmenu({ meanScreenWidth: "991" }); $(window).on('scroll', function () {
3                if ($(this).scrollTop() > 150) { $('.navbar-area').addClass("is-sticky"); }
4                else { $('.navbar-area').removeClass("is-sticky"); }; var scrolled = $(window).scrollTop(); if (scrolled > 300) $('.go-top').addClass('active'); if (scrolled < 300) $('.go-top').removeClass('active');
5        }); $('.study-slider').owlCarousel({ loop: true, margin: 15, nav: true, dots: false, autoplay: false, rtl: (siteLANG === 'ar' ? true : false), smartSpeed: 1000, autoplayHoverPause: true, navText: ["<i class='ri-arrow-left-line'></i>", "<i class='ri-arrow-right-line'></i>",], responsive: { 0: { items: 1, }, 414: { items: 1, }, 576: { items: 2, }, 768: { items: 2, }, 992: { items: 3, }, 1200: { items: 3, }, }, }); $('.campus-experience-slider').owlCarousel({ items: 1, loop: true, margin: 0, nav: true, dots: false, autoplay: true, smartSpeed: 1000, autoplayHoverPause: true, navText: ["<i class='ri-arrow-left-line'></i>", "<i class='ri-arrow-right-line'></i>",], }); $('.popup-youtube, .popup-vimeo').magnificPopup({ disableOn: 300, type: 'iframe', mainClass: 'mfp-fade', removalDelay: 160, preloader: false, fixedContentPos: false, }); $('.gallery-popup').each(function () { $(this).magnificPopup({ delegate: 'a', type: 'image', gallery: { enabled: true } }); }); $('.go-top').on('click', function () { $("html, body").animate({ scrollTop: "0" }, 50); }); $('.accordion').find('.accordion-title').on('click', function () { $(this).toggleClass('active'); $(this).next().slideToggle('fast'); $('.accordion-content').not($(this).next()).slideUp('fast'); $('.accordion-title').not($(this)).removeClass('active'); }); function makeTimer() {
6                var endTime = new Date("november  30, 2021 17:00:00 PDT"); var endTime = (Date.parse(endTime)) / 1000; var now = new Date(); var now = (Date.parse(now) / 1000); var timeLeft = endTime - now; var days = Math.floor(timeLeft / 86400); var hours = Math.floor((timeLeft - (days * 86400)) / 3600); var minutes = Math.floor((timeLeft - (days * 86400) - (hours * 3600)) / 60); var seconds = Math.floor((timeLeft - (days * 86400) - (hours * 3600) - (minutes * 60))); if (hours < "10") { hours = "0" + hours; }
7                if (minutes < "10") { minutes = "0" + minutes; }
8                if (seconds < "10") { seconds = "0" + seconds; }
9                $("#days").html(days + "<span>Days</span>"); $("#hours").html(hours + "<span>Hours</span>"); $("#minutes").html(minutes + "<span>Minutes</span>"); $("#seconds").html(seconds + "<span>Seconds</span>");
10        }
11        setInterval(function () { makeTimer(); }, 300); $(window).on('load', function () { setInterval(function () { $('.preloader').addClass('preloader-deactivate'); }, 500) })
12        //$(".newsletter-form").validator().on("submit",function(event){if(event.isDefaultPrevented()){formErrorSub();submitMSGSub(false,"Please enter your email correctly.");}else{event.preventDefault();}});function callbackFunction(resp){if(resp.result==="success"){formSuccessSub();}
13        //else{formErrorSub();}}
14        //function formSuccessSub(){$(".newsletter-form")[0].reset();submitMSGSub(true,"Thank you for subscribing!");setTimeout(function(){$("#validator-newsletter").addClass('hide');},4000)}
15        //function formErrorSub(){$(".newsletter-form").addClass("animated shake");setTimeout(function(){$(".newsletter-form").removeClass("animated shake");},1000)}
16        //function submitMSGSub(valid,msg){if(valid){var msgClasses="validation-success";}else{var msgClasses="validation-danger";}
17        //$("#validator-newsletter, #validator-newsletter-2").removeClass().addClass(msgClasses).text(msg);}
18        //$(".newsletter-form").ajaxChimp({url:"",callback:callbackFunction});
19        if ($('.wow').length) { var wow = new WOW({ mobile: false }); wow.init(); }
20        $('.odometer').appear(function (e) { var odo = $(".odometer"); odo.each(function () { var countNumber = $(this).attr("data-count"); $(this).html(countNumber); }); }); $('.tab ul.tabs').addClass('active').find('> li:eq(0)').addClass('current'); $('.tab ul.tabs li').on('click', function (g) { var tab = $(this).closest('.tab'), index = $(this).closest('li').index(); tab.find('ul.tabs > li').removeClass('current'); $(this).closest('li').addClass('current'); tab.find('.tab_content').find('div.tabs_item').not('div.tabs_item:eq(' + index + ')').slide
20Up(); tab.find('.tab_content').find('div.tabs_item:eq(' + index + ')').slideDown(); g.preventDefault(); }); $('.input-counter').each(function () {
21                var spinner = jQuery(this), input = spinner.find('input[type="text"]'), btnUp = spinner.find('.plus-btn'), btnDown = spinner.find('.minus-btn'), min = input.attr('min'), max = input.attr('max'); btnUp.on('click', function () {
22                        var oldValue = parseFloat(input.val()); if (oldValue >= max) { var newVal = oldValue; } else { var newVal = oldValue + 1; }
23                        spinner.find("input").val(newVal); spinner.find("input").trigger("change");
24                }); btnDown.on('click', function () {
25                        var oldValue = parseFloat(input.val()); if (oldValue <= min) { var newVal = oldValue; } else { var newVal = oldValue - 1; }
26                        spinner.find("input").val(newVal); spinner.find("input").trigger("change");
27                });
28        }); $('#datetimepicker, #datetimepicker-2').datepicker({ weekStart: 0, todayBtn: "linked", language: "es", orientation: "bottom auto", keyboardNavigation: false, autoclose: true }); var bigimage = $("#big"); var thumbs = $("#thumbs"); var syncedSecondary = true; bigimage.owlCarousel({ items: 1, slideSpeed: 2000, nav: true, autoplay: true, dots: false, loop: true, responsiveRefreshRate: 200, navText: ["<i class='ri-arrow-left-line'></i>", "<i class='ri-arrow-right-line'></i>",] }).on("changed.owl.carousel", syncPosition); thumbs.on("initialized.owl.carousel", function () { thumbs.find(".owl-item").eq(0).addClass("current"); }).owlCarousel({ items: 5, dots: false, nav: false, navText: ["<i class='bx bx-left-arrow-alt'></i>", "<i class='bx bx-right-arrow-alt'></i>",], smartSpeed: 200, slideSpeed: 500, slideBy: 4, responsiveRefreshRate: 100 }).on("changed.owl.carousel", syncPosition2); function syncPosition(el) {
29                var count = el.item.count - 1; var current = Math.round(el.item.index - el.item.count / 2 - 0.5); if (current < 0) { current = count; }
30                if (current > count) { current = 0; }
31                thumbs.find(".owl-item").removeClass("current").eq(current).addClass("current"); var onscreen = thumbs.find(".owl-item.active").length - 1; var start = thumbs.find(".owl-item.active").first().index(); var end = thumbs.find(".owl-item.active").last().index(); if (current > end) { thumbs.data("owl.carousel").to(current, 100, true); }
32                if (current < start) { thumbs.data("owl.carousel").to(current - onscreen, 100, true); }
33        }
34        function syncPosition2(el) { if (syncedSecondary) { var number = el.item.index; bigimage.data("owl.carousel").to(number, 100, true); } }
35        thumbs.on("click", ".owl-item", function (e) { e.preventDefault(); var number = $(this).index(); bigimage.data("owl.carousel").to(number, 300, true); });
36})(jQuery);
37/*-------------------------------------
38 OwlCarousel
39 -------------------------------------*/
40$(document).ready(function () {
41        var owl = $('.owl-carousel');
42        var siteLANG = 'en';
43        if (owl.length > 0) {
44                var rtl = !1;
45                'ar' == siteLANG && (rtl = !0), owl.owlCarousel({
46                        loop: !0,
47                        margin: 0,
48                        navSpeed: 1500,
49                        nav: !0,
50                        dots: !1,
51                        autoplay: !0,
52                        autoplayTimeout: 4000,
53                        smartSpeed: 800,
54                        autoplayHoverPause: !0,
55                        slideTransition: 'linear',
56                        animateOut: 'fadeOutRight',
57                        animateIn: 'fadeInLeft',
58                        autoplaySpeed: 1500,
59                        rewind: !0,
60                        items: 1,
61                        dotsSpeed: 1500,
62                        dragEndSpeed: 1500,
63                        autoplayTimeOut: 5000,
64                        rtl: !rtl,
65                        navText: ['<i class="fas fa-angle-left"></i>', '<i class="fas fa-angle-right"></i>']
66                })
67        }
68});
69$(document).ready(function () {
70        $(".related-carousel").owlCarousel({
71                dots: true,
72                items: 1,
73                loop: true,
74                autoplay: true
75        });
76});
77/* Related Program */
78$(document).ready(function () {
79        var owl = $('.related-carousel');
80        var siteLANG = 'en';
81        if (owl.length > 0) {
82                var rtl = !1;
83                'ar' == siteLANG && (rtl = !0), owl.owlCarousel({
84                        loop: !0,
85                        margin: 0,
86                        navSpeed: 1500,
87                        nav: !0,
88                        dots: !1,
89                        autoplay: !0,
90                        autoplayHoverPause: !0,
91                        slideTransition: 'linear',
92                        //        animateOut: 'slideOutDown',
93                        //        animateIn: 'slideInUp',
94                        autoplaySpeed: 1500,
95                        rewind: !0,
96                        items: 4,
97                        dotsSpeed: 1500,
98                        dragEndSpeed: 1500,
99                        autoplayTimeOut: 5000,
100                        rtl: !rtl,
101                        navText: ['<i class="fas fa-angle-left"></i>', '<i class="fas fa-angle-right"></i>']
102                })
103        }
104});
105/* End Related Program */
106/*-------------------------------------
107 OwlCarousel
108 -------------------------------------*/
109$('.aau-carousel').each(function () {
110        var owlCarousel = $(this),
111                loop = owlCarousel.data('loop'),
112                items = owlCarousel.data('items'),
113                margin = owlCarousel.data('margin'),
114                stagePadding = owlCarousel.data('stage-padding'),
115                autoplay = owlCarousel.data('autoplay'),
116                autoplayTimeout = owlCarousel.data('autoplay-timeout'),
117                smartSpeed = owlCarousel.data('smart-speed'),
118                dots = owlCarousel.data('dots'),
119                nav = owlCarousel.data('nav'),
120                rtl = owlCarousel.data('rtl'),
121                navSpeed = owlCarousel.data('nav-speed'),
122                xsDevice = owlCarousel.data('mobile-device'),
123                xsDeviceNav = owlCarousel.data('mobile-device-nav'),
124                xsDeviceDots = owlCarousel.data('mobile-device-dots'),
125                smDevice = owlCarousel.data('ipad-device'),
126                smDeviceNav = owlCarousel.data('ipad-device-nav'),
127                smDeviceDots = owlCarousel.data('ipad-device-dots'),
128                smDevice2 = owlCarousel.data('ipad-device2'),
129                smDeviceNav2 = owlCarousel.data('ipad-device-nav2'),
130                smDeviceDots2 = owlCarousel.data('ipad-device-dots2'),
131                mdDevice = owlCarousel.data('md-device'),
132                centerMode = owlCarousel.data('center-mode'),
133                HoverPause = owlCarousel.data('hoverpause'),
134                mdDeviceNav = owlCarousel.data('md-device-nav'),
135                mdDeviceDots = owlCarousel.data('md-device-dots');
136        owlCarousel.owlCarousel({
137                loop: (loop ? true : false),
138                items: (items ? items : 4),
139                lazyLoad: true,
140                center: (centerMode ? true : false),
141                autoplayHoverPause: (HoverPause ? true : false),
142                margin: (margin ? margin : 0),
143                //stagePadding: (stagePadding ? stagePadding : 0),
144                autoplay: (autoplay ? true : false),
145                autoplayTimeout: (autoplayTimeout ? autoplayTimeout : 1000),
146                smartSpeed: (smartSpeed ? smartSpeed : 250),
147                dots: (dots ? true : false),
148                nav: (nav ? true : false),
149                navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"],
150                navSpeed: (navSpeed ? true : false),
151                rtl: (rtl ? true : false),
152                responsiveClass: true,
153                responsive: {
154                        0: {
155                                items: (xsDevice ? xsDevice : 1),
156                                nav: (xsDeviceNav ? true : false),
157                                dots: (xsDeviceDots ? true : false),
158                                center: false,
159                        },
160                        576: {
161                                items: (smDevice2 ? smDevice2 : 2),
162                                nav: (smDeviceNav2 ? true : false),
163                                dots: (smDeviceDots2 ? true : false),
164                                center: false,
165                        },
166                        768: {
167                                items: (smDevice ? smDevice : 3),
168                                nav: (smDeviceNav ? true : false),
169                                dots: (smDeviceDots ? true : false),
170                                center: false,
171                        },
172                        992: {
173                                items: (mdDevice ? mdDevice : 4),
174                                nav: (mdDeviceNav ? true : false),
175                                dots: (mdDeviceDots ? true : false),
176                        }
177                }
178        });
179});
180// Acc
181$(document).on("click", ".publication-tabs .menu div", function () {
182        var numberIndex = $(this).index();
183        if (!$(this).is("active")) {
184                $(".publication-tabs .menu div").removeClass("active");
185                $(".publication-tabs ul li").removeClass("active");
186                $(this).addClass("active");
187                $(".publication-tabs ul").find("li:eq(" + numberIndex + ")").addClass("active");
188                var listItemHeight = $(".publication-tabs ul")
189                        .find("li:eq(" + numberIndex + ")")
190                        .innerHeight();
191                $(".publication-tabs ul").height(listItemHeight + "px");
192        }
193});
194$(document).ready(function () {
195        var expanded = 0;
196        $("ul.committees li").click(function (e) {
197                e.preventDefault();
198        });
199        var clicked = $(this).attr("id");
200        if (clicked == expanded) {
201                $(".expanded").slideUp("slow", function () {
202                        $(".expanded").remove();
203                        expanded = 0;
204                        $('ul.committees li').removeClass('active');
205                        $("ul.committees li .collapse-icon i").removeClass('fa-minus-circle').addClass('fa-plus-circle')
206                })
207        } else if (expanded == 0) {
208                $('ul.committees li').removeClass('active');
209                $("ul.committees #" + clicked).addClass('active');
210                $("ul.committees li .collapse-icon i").removeClass('fa-minus-circle').addClass('fa-plus-circle');
211                $("ul.committees #" + clicked + " .collapse-icon i").removeClass('fa-plus-circle').addClass('fa-minus-circle');
212                if ($("ul.committees #" + Math.ceil(clicked / 2) * 2).length && !$("ul.committees #" + clicked).hasClass('col-md-12')) {
213                        $("ul.committees #" + Math.ceil(clicked / 2) * 2).after("<li class='expanded col-md-12'><div class='expanded_inner'>" + $("#" + clicked + " .data_" + clicked).html() + "</div></li>")
214                } else {
215                        $("ul.committees #" + clicked).after("<li class='expanded col-md-12'><div class='expanded_inner'>" + $("#" + clicked + " .data_" + clicked).html() + "</div></li>")
216                }
217                $(".expanded").slideDown("slow");
218                expanded = clicked
219        } else {
220                $(".expanded").slideUp("slow", function () {
221                        $(".expanded").remove(); $('ul.committees li').removeClass('active');
222                        $("ul.committees #" + clicked).addClass('active');
223                        $("ul.committees li .collapse-icon i").removeClass('fa-minus-circle').addClass('fa-plus-circle');
224                        $("ul.committees #" + clicked + " .collapse-icon i").removeClass('fa-plus-circle').addClass('fa-minus-circle');
225                        if ($("ul.committees #" + Math.ceil(clicked / 2) * 2).length) {
226                                $("ul.committees #" + Math.ceil(clicked / 2) * 2).after("<li class='expanded col-md-12'><div class='expanded_inner'>" + $("#" + clicked + " .data_" + clicked).html() + "</div></li>")
227                        } else {
228                                $("ul.committees #" + clicked).after("<li class='expanded col-md-12'><div class='expanded_inner'>" + $("#" + clicked + " .data_" + clicked).html() + "</div></li>")
229                        }
230                        $(".expanded").slideDown("slow", function () {
231                                expanded = clicked
232                        })
233                })
234        }
235});
236$(function () { $('.mouse_scroll').on('click', function (e) { $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top }, 500, 'linear'); }); $(".bell-ann").click(function () { $(".notification_wrap .dropdown").toggleClass("active"); }) });
237
238$(document).ready(function () {
239        $('.match-height .adjust-height').matchHeight();
240});

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.