PageSourceSearch

https://www.swafia.org.uk/wp-content/themes/themoments/js/script.js?ver=1.0.0

js swafia.org.uk collected 2026-10-04 02:08:13 UTC 2,418 bytes, 95 lines download raw bytes

1 jQuery(function($) { // DOM is now read and ready to be manipulated
2  
3    //Tab to top
4    $(window).scroll(function() {
5    if ($(this).scrollTop() > 1){  
6        $('.scroll-top-wrapper').addClass("show");
7    }
8    else{
9        $('.scroll-top-wrapper').removeClass("show");
10    }
11});
12    $(".scroll-top-wrapper").on("click", function() {
13     $("html, body").animate({ scrollTop: 0 }, 600);
14    return false;
15});
16
17
18 $('.dropdown').hover(function() {
19      $(this).find('.dropdown-menu').first().stop(true, true).slideDown(150);
20    }, function() {
21      $(this).find('.dropdown-menu').first().stop(true, true).slideUp(150)
22    });
23
24var count=0;
25$('.dropdown .caret').on('click',function(e){
26    e.preventDefault();
27  if (count===0){
28    $(this).closest( "li" ).find('.dropdown-menu').first().stop(true, true).slideDown(150);
29    count++;
30  }
31  else
32  {
33    $(this).closest( "li" ).find('.dropdown-menu').first().stop(true, true).slideUp(150);
34    count=0;
35  }
36
37 });
38
39
40
41
42
43var wow = new WOW(
44  {
45    boxClass:     'wowload',      // animated element css class (default is wow)
46    animateClass: 'animated', // animation css class (default is animated)
47    offset:       0,          // distance to the element when triggering the animation (default is 0)
48    mobile:       true,       // trigger animations on mobile devices (default is true)
49    live:         true        // act on asynchronously loaded content (default is true)
50  }
51);
52wow.init();
53
54
55equalheight = function(container){
56
57var currentTallest = 0,
58     currentRowStart = 0,
59     rowDivs = new Array(),
60     $el,
61     topPosition = 0;
62 $(container).each(function() {
63
64   $el = $(this);
65   $($el).height('auto')
66   topPostion = $el.position().top;
67
68   if (currentRowStart != topPostion) {
69     for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) {
70       rowDivs[currentDiv].height(currentTallest);
71     }
72     rowDivs.length = 0; // empty the array
73     currentRowStart = topPostion;
74     currentTallest = $el.height();
75     rowDivs.push($el);
76   } else {
77     rowDivs.push($el);
78     currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest);
79  }
80   for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) {
81     rowDivs[currentDiv].height(currentTallest);
82   }
83 });
84}
85
86$(window).load(function() {
87  equalheight('.eq-blocks');
88});
89
90
91$(window).resize(function(){
92  equalheight('.eq-blocks');
93});
94
95});

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.