PageSourceSearch

https://elejido.es/wp-content/themes/bani/js/bani-main.js?ver=7.1.2

js elejido.es collected 2026-10-02 04:36:24 UTC 1,913 bytes, 66 lines download raw bytes

1jQuery(document).ready(function($) {
2
3    "use strict";
4
5    $(".loading-screen").fadeOut('slow', function(){
6       $(".loading-screen").addClass('hide-screen');
7    });
8
9    // For Fixed header & Scroll to top
10	$(window).on("scroll resize", function() {
11		if ($(window).scrollTop() >= 500) {
12            $(".scroll-to-top").css("bottom", "15px");
13            $(".appear-fixed-on-scroll").css("top", "0px");
14			$(".admin-bar .appear-fixed-on-scroll").css("top", "32px");
15		}
16		if ($(window).scrollTop() < 500) {
17            $(".scroll-to-top").css("bottom", "-60px");
18			$(".appear-fixed-on-scroll").css("top", "-90px");
19		}
20	});
21
22    // Adjust margin-top
23    //var headerHt = $('.st-header-area').height();
24    //$('.st-content-area').css('margin-top', headerHt);
25
26    // For Scroll to top
27    $(".scroll-to-top").on("click", function() {
28		return $("html, body").animate({
29			scrollTop: 0
30		});
31    });
32
33    // Add dropdown arrow to parent menu
34    $(".bani-main-menu .menu-item-has-children > a").append("<i class='fa fa-chevron-down ml-2 float-right'></i>");
35
36    // For menu on mobile
37    $(".bani-main-menu .menu-item-has-children a .fa").on("click", function(e){
38        e.preventDefault();
39          //console.log(this);
40        $(this).parent().parent().find(" > .sub-menu").toggleClass("showSubMenu");
41    });
42
43        // bxSlider for gallery post
44    $('.bxslider').bxSlider({
45        infiniteLoop: true,
46        nextText: '<i class="fa fa-angle-right"></i>',
47        prevText: '<i class="fa fa-angle-left"></i>',
48        mode: 'fade'
49    });
50
51    // For Featured Posts
52    var featuredPosts = new Swiper('.gallery-top', {
53        nextButton: '.swiper-button-next',
54        prevButton: '.swiper-button-prev',
55        spaceBetween: 10,
56    });
57
58
59    // Check cover content height
60    var coverContentHt = $('.bani-content-height').height();
61    $('.bani-cover-wrapper').height(coverContentHt);
62
63});
64
65
66

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.