PageSourceSearch

https://taxila.guru/wp-content/themes/scholarship/assets/js/custom-script.js?ver=1.0

js taxila.guru collected 2026-10-04 00:15:49 UTC 3,217 bytes, 103 lines download raw bytes

1/**
2 * Added or define custom $ taks in this file
3 *
4 * @package Scholarship
5 *
6 * Distributed under the MIT license - http://opensource.org/licenses/MIT
7 */
8
9jQuery(document).ready(function($) {
10    "use strict";
11    
12    /**
13     * Homepage slider
14     */
15    $('.homepage-slider').lightSlider({
16        adaptiveHeight:true,
17        item:1,
18        slideMargin:0,
19        loop:true,
20        pager:false,
21        auto:false,
22        speed: 700,
23        pause: 4200,
24        onSliderLoad: function() {
25            $('.homepage-slider').removeClass('cS-hidden');
26        }
27    });
28
29    /**
30     * Testimonials slider
31     */
32    $('.testimonialsSlider').lightSlider({
33        adaptiveHeight:true,
34        item: 2,
35        slideMargin: 30,
36        loop:true,
37        enableDrag:false,
38        controls:false,
39        pager:true,
40        auto:false,
41        speed: 700,
42        pause: 4200,
43        responsive : [
44                {
45                    breakpoint:840,
46                    settings: {
47                        item:2,
48                        slideMove:1,
49                        slideMargin:6,
50                      }
51                },
52                {
53                    breakpoint:600,
54                    settings: {
55                        item:1,
56                        slideMove:1,
57                      }
58                }
59            ]
60    });
61    
62    // Scroll To Top
63    $(window).scroll(function() {
64        if ($(this).scrollTop() > 1000) { 
65            $('#mt-scrollup').fadeIn('slow');
66        } else {
67            $('#mt-scrollup').fadeOut('slow');
68        }
69    });
70
71    $('#mt-scrollup').click(function() {
72        $("html, body").animate({
73            scrollTop: 0
74        }, 600);
75        return false;
76    });
77    
78    // toggle-menu
79    $('.menu-toggle').click(function(event) {
80        $('#primary-menu').slideToggle('slow');
81    });
82    
83    //responsive sub menu toggle
84    /*$('#site-navigation .menu-item-has-children').append('<span class="sub-toggle"> <i class="fa fa-angle-right"></i> </span>');
85    $('#site-navigation .page_item_has_children').append('<span class="sub-toggle"> <i class="fa fa-angle-right"></i> </span>');*/
86    $('<a class="sub-toggle" href="javascript:void(0);"><i class="fa fa-angle-right"></i></a>').insertAfter('#site-navigation .menu-item-has-children>a, #site-navigation .page_item_has_children>a');
87    
88
89    $('#site-navigation .menu-item-has-children .sub-toggle').click(function() {
90        $(this).parent('.menu-item-has-children').children('ul.sub-menu').first().slideToggle('1000');
91        $(this).children('.fa-angle-right').first().toggleClass('fa-angle-down');
92    });
93
94    $('#site-navigation .page_item_has_children .sub-toggle').click(function() {
95        $(this).parent('.page_item_has_children').children('ul.children').first().slideToggle('1000');
96        $(this).children('.fa-angle-right').first().toggleClass('fa-angle-down');
97    });
98    
99    //home page search
100    $('.header-search-wrapper .search-main').click(function() {
101        $('.header-search-wrapper .search-form-main').toggleClass('search-activate');
102    });
103});

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.