PageSourceSearch

https://oeru.org/themes/oeru/js/global.js

js oeru.org collected 2026-10-01 10:34:36 UTC 4,500 bytes, 114 lines download raw bytes

1jQuery.noConflict();
2
3(function ($) {
4    $(document).ready(function () {
5        if ($('#partnerMainPage').length > 0) {
6            $('#isotope-partners').isotope({
7                itemSelector: '.item',
8                layoutMode: 'fitRows'
9            });
10            $('#isotope-partners-filter a').click(function () {
11                var selector = $(this).attr('data-filter');
12                $('#isotope-partners').isotope({ filter: selector });
13                return false;
14            });
15        }
16        if ($('#homePage').length > 0) {
17            $('#home-carousel').flexslider({
18                animation: "slide",
19                animationLoop: true,
20                video: true,
21                before: (function (slider) {
22                    var newHeight = slider.slides.eq(slider.animatingTo).height();
23                    slider.find(".flex-viewport").animate({ height: (20 + newHeight) + "px" }, 50);
24                    slider.pause();
25                })
26            });
27        }
28
29        $('details').details();
30
31        $('summary').on('click', function () {
32            if ($(this).attr('aria-expanded') == 'true') {
33                $(this).find('.accordion-icon').html('-');
34            }
35            else {
36                $(this).find('.accordion-icon').html('+');
37            }
38        });
39
40        $('.navbar-form').on('focus', 'input[type=text]', function () {
41            $(this).parent().siblings('input[type=submit]').css('background', 'url(/themes/oeru/img/search.png) 19px 0');
42        });
43        $('.navbar-form').on('focusout', 'input[type=text]', function () {
44            $(this).parent().siblings('input[type=submit]').css('background', 'url(/themes/oeru/img/search.png) 0 0');
45        });
46        
47    });
48
49    $(window).load(function () {
50        $("#isotope-partners .isotope-item").each(function () {
51            $(this).find('img').css('padding-top', ($(this).height() - $(this).find('img').height()) / 2);
52        });
53
54        if ($('#homePage').length > 0) {
55            $('#partners-carousel').flexslider({
56                animation: "slide",
57                animationLoop: true,
58                slideshow: false,
59                controlNav: false,
60                itemWidth: 240,
61                start: (function () {
62                    $("#partners-carousel .slides li").each(function () {
63                        $(this).find('img').css('padding-top', ($(this).height() - $(this).find('img').height()) / 2);
64                    });
65                })
66            });
67        }
68    });
69
70    if ($('#homePage').length > 0) {
71        function debouncer(func, timeout) {
72            var timeoutID, timeout = timeout || 200;
73            return function () {
74                var scope = this, args = arguments;
75                clearTimeout(timeoutID);
76                timeoutID = setTimeout(function () {
77                    func.apply(scope, Array.prototype.slice.call(args));
78                }, timeout);
79            }
80        }
81
82        $(window).resize(debouncer(function (e) {
83            var slider = $('#home-carousel').data('flexslider');
84            var newHeight = slider.slides.eq(slider.currentSlide).height();
85            slider.find(".flex-viewport").animate({ height: (20 + newHeight) + "px" }, 50);
86        }));
87
88        $(window).scroll(function () {
89            clearTimeout($.data(this, 'scrollTimer'));
90            $.data(this, 'scrollTimer', setTimeout(function () {
91                var slider = $('#home-carousel').data('flexslider');
92                if($('#home-carousel').visible( true )) {
93                    slider.play();
94                }
95                else {
96                    slider.pause();
97                }
98            }, 250));
99        });
100    }
101
102
103})(jQuery);
104
105//jquery.visible.min.js
106(function (d) { d.fn.visible = function (e, i) { var a = d(this).eq(0), f = a.get(0), c = d(window), g = c.scrollTop(); c = g + c.height(); var b = a.offset().top, h = b + a.height(); a = e === true ? h : b; b = e === true ? b : h; return !!(i === true ? f.offsetWidth * f.offsetHeight : true) && b <= c && a >= g } })(jQuery);
vendor: 330 bytes, lines 106-113
106
107
108(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
109(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
110m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
111})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
112
113ga('create', '
113UA-32554974-2
vendor: 50 bytes, lines 113-114
113', 'oeruniversitas.org');
114ga('send', 'pageview');

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.