PageSourceSearch

https://www.gov.rw/_assets/b2ee7e11602f92239d61e026cd4ed9a2/Javascript/scripts.js?1787571380

js www.gov.rw collected 2026-09-24 17:56:51 UTC 2,699 bytes, 109 lines download raw bytes

1$(document).ready(function () {
2
3    if ($("#contact_form_page_section")) {
4        $('form').attr('autocomplete', 'off');
5        $('input').attr('autocomplete', 'off');
6    }
7
8    $(function () {
9        $('#navbarSupportedContent')
10            .on('shown.bs.collapse', function () {
11                $('#navbar-hamburger').addClass('hidden');
12                $('#navbar-close').removeClass('hidden');
13            })
14            .on('hidden.bs.collapse', function () {
15                $('#navbar-hamburger').removeClass('hidden');
16                $('#navbar-close').addClass('hidden');
17            });
18
19    });
20
21    $(".owl-carousel").owlCarousel({
22
23        center: true,
24        loop: true,
25        dots: true,
26        margin: 0,
27        autoplay: true,
28        autoplayTimeout: 10000,
29        navContainer: '.main-content .custom-nav',
30        navText: [
31            '<i class="fas fa-chevron-left txt_subtitle txt_black upd_ctrl"></i>',
32            '<i class="fas fa-chevron-right txt_subtitle txt_black upd_ctrl"></i>'
33        ],
34        dots: true,
35        responsive: {
36            0: {
37                items: 1
38            },
39            600: {
40                items: 2
41            },
42            1000: {
43                items: 3
44            }
45        }
46    });
47});
48
49function run(interval, frames) {
50    var int = 1;
51    if (document.getElementById('h') !== null) {
52        function func() {
53            document.getElementById('h').id = "b" + int;
54            int++;
55            if (int === frames) {
56                int = 1;
57            }
58        }
59
60        var swap = window.setInterval(func, interval);
61    }
62}
63
64run(1000, 10); //milliseconds, frames
65
66
67// When the user scrolls down 20px from the top of the document, show the button
68window.onscroll = function () {
69    scrollFunction()
70};
71
72function scrollFunction() {
73    if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
74        document.getElementById("backToTop").style.display = "block";
75    } else {
76        document.getElementById("backToTop").style.display = "none";
77    }
78}
79
80// When the user clicks on the button, scroll to the top of the document
81function topFunction() {
82    // document.body.scrollTop = 0; // For Safari
83    // document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
84    window.scroll({
85        top: 0,
86        left: 0,
87        behavior: 'smooth'
88    });
89}
90
91$(document).ready(function () {
92
93    var owl = $("#owl-demo");
94
95    owl.owlCarousel();
96
97    // Custom Navigation Events
98    $(".next").click(function () {
99        owl.trigger('owl.next');
100    })
101    $(".prev").click(function () {
102        owl.trigger('owl.prev');
103    })
104
105});
106
107new WOW().init();
108
109      

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.