PageSourceSearch

https://cmsc.lk/js/main.js

js cmsc.lk collected 2026-10-09 01:58:49 UTC 1,731 bytes, 84 lines download raw bytes

1(function ($) {
2    "use strict";
3
4    // Spinner
5    var spinner = function () {
6        setTimeout(function () {
7            if ($('#spinner').length > 0) {
8                $('#spinner').removeClass('show');
9            }
10        }, 1);
11    };
12    spinner();
13    
14    
15    // Initiate the wowjs
16    new WOW().init();
17
18
19    // Sticky Navbar
20    $(window).scroll(function () {
21        if ($(this).scrollTop() > 300) {
22            $('.sticky-top').addClass('shadow-sm').css('top', '0px');
23        } else {
24            $('.sticky-top').removeClass('shadow-sm').css('top', '-100px');
25        }
26    });
27    
28    
29    // Back to top button
30    $(window).scroll(function () {
31        if ($(this).scrollTop() > 300) {
32            $('.back-to-top').fadeIn('slow');
33        } else {
34            $('.back-to-top').fadeOut('slow');
35        }
36    });
37    $('.back-to-top').click(function () {
38        $('html, body').animate({scrollTop: 0}, 1500, 'easeInOutExpo');
39        return false;
40    });
41
42
43    // Facts counter
44    $('[data-toggle="counter-up"]').counterUp({
45        delay: 10,
46        time: 2000
47    });
48
49
50    // Date and time picker
51    $('.date').datetimepicker({
52        format: 'L'
53    });
54    $('.time').datetimepicker({
55        format: 'LT'
56    });
57
58
59    // Header carousel
60    $(".header-carousel").owlCarousel({
61        autoplay: true,
62        smartSpeed: 1500,
63        loop: true,
64        nav: false,
65        dots: true,
66        items: 1,
67        dotsData: true,
68    });
69
70
71    // Testimonials carousel
72    $('.testimonial-carousel').owlCarousel({
73        autoplay: true,
74        smartSpeed: 1000,
75        loop: true,
76        nav: false,
77        dots: true,
78        items: 1,
79        dotsData: true,
80    });
81
82    
83})(jQuery);
84

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.