PageSourceSearch

https://somersetacademybethany.org/js/main.js

js somersetacademybethany.org collected 2026-09-29 19:07:04 UTC 3,968 bytes, 149 lines download raw bytes

1
2    $(".loader").delay(400).fadeOut("slow");
3    new WOW().init();
4
5    $(function () {
6        $('.marquee').marquee({
7            allowCss3Support: true,
8            css3easing: 'linear',
9            easing: 'linear',
10            delayBeforeStart: 0,
11            direction: 'left',
12            duplicated: true,
13            duration: 40000,
14            gap: 30,
15            pauseOnCycle: false,
16            pauseOnHover: true,
17            startVisible: true,
18        });
19    });
20    // $('.common--tabs .nav-link').click(function(){
21    //     new WOW().init();
22    // })
23
24    jQuery(function($) {
25        $("video").lazy();
26    });
27
28    $('.open-lang').on('click', function () {
29        $('.lang-inner').toggleClass('show');
30        $(this).toggleClass('active');
31    });
32
33    $( "#account-mobile-toggle" ).click(function() {
34        $( ".left-menu ul" ).slideToggle( "slow" );
35    });
36
37    $(function() {
38        $('.lazy').lazy();
39    });
40
41
42
43    //margin of content with fixed header block
44    $( document ).ready(function() {
45        (function () {
46            var height = $('.header').outerHeight();
47            $('main').css("margin-top", height);
48        }());
49    });
50
51    if ($('.home--video-album-section').length) {
52
53        $('.home--video-album-section .video-holder video').on('click', function (e) {
54            $(this).closest('.video-holder').toggleClass('active');
55        });
56        $('.home--video-album-section .video-holder .play').on('click', function (e) {
57            $(this).closest('.video-holder').toggleClass('active');
58
59        });
60
61        $(document).on('click', '.home--video-album-section .video-holder video', function (e) {
62            var video = $(this).get(0);
63            if (video.paused === false) {
64                video.pause();
65            } else {
66                video.play();
67            }
68            return false;
69        });
70
71        $(document).on('click', '.home--video-album-section .video-holder play', function (e) {
72            var video = this.find('.home--video-album-section .video-holder video').get(0);
73            if (video.paused === false) {
74                video.pause();
75            } else {
76                video.play();
77            }
78            return false;
79        });
80        document.getElementById('playVid').onclick = function () {
81            var video = document.getElementById('videoPlayer');
82            if (video.paused === false) {
83                video.pause();
84            } else {
85                video.play();
86            }
87            return false;
88        };
89
90    }
91
92$(function () {
93    $(window).scroll(function () {
94        if ($(this).scrollTop() > 50) {
95            $('.header').addClass("header header-scroll");
96        } else {
97            $('.header').removeClass("header-scroll");
98        }
99    });
100
101
102    (function mobileBtn() {
103        var mobileBtnOpen = $('.open-nav-btn'),
104            mobileMenu = $('.header-nav');
105        mobileBtnOpen.on('click', function(){
106            mobileMenu.toggleClass('show');
107            $(this).toggleClass('active');
108            $('.overlay').toggleClass('show');
109            $('body').toggleClass('no-scroll');
110            $('html').toggleClass('no-scroll');
111        });
112    }());
113
114    if ($(window).outerWidth() > 767) {
115        $(".text-scroll").mCustomScrollbar({
116            theme:"minimal"
117        });
118    }
119
120
121
122    if ($(window).outerWidth() < 1100) {
123        $( ".header-nav li a" ).click(function() {
124            $(this).closest('li').find( ".drop" ).slideToggle( "slow" );
125            $(this).closest('li').find( ".drop" ).toggleClass('opened');
126        });
127    }
128    if ($(".Mylightgallery").length) {
129        $('.Mylightgallery').lightGallery({
130            thumbnail: true,
131            showThumbByDefault: true,
132            loop: true,
133            zoom: true,
134            scale: 1.2,
135            actualSize: false,
136            appendSubHtmlTo: '.lg-sub-html',
137            download: false,
138        });
139    }
140
141
142});
143
144
145
146
147
148
149

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.