PageSourceSearch

https://www.assumption.edu/wp-content/themes/viv-child/assets/js/custom.js?v=1790271774

js assumption.edu collected 2026-09-24 17:46:40 UTC 5,421 bytes, 197 lines download raw bytes

1(function($){
2  $(document).ready(function(){
3    $('.tab-content').hide();
4      $('.tab-content:first').show();
5      $('.first-button .wp-block-button__link').addClass('Tabs-active');
6    $('.tabs-nav .wp-block-button__link').click(function(){
7      $('.tabs-nav .wp-block-button__link').removeClass('Tabs-active');
8      $(this).addClass('Tabs-active');
9      let currentTab = $(this).attr('href');
10      $('.tab-content').hide();
11      $(currentTab).fadeIn();
12  
13      return false;
14    });
15  });
16  
17  $('.nav-btn.nav-slider').on('click', function() {
18    $('.overlay').show();
19    $('.sidebar').toggleClass("open");
20  });
21  
22  $('.overlay').on('click', function() {
23    if($('.sidebar').hasClass('open')) {
24      $('.sidebar').removeClass('open');
25    }
26    $(this).hide();
27  });
28  
29  
30  $('.collapsed-btn').click(function(){
31    if($(this).hasClass('collapsed')){
32        $(this).parent().find('ul').slideDown('normal');
33        $(this).removeClass('collapsed');
34    }else{
35        $(this).parent().find('ul').slideUp('normal');
36        $(this).addClass('collapsed');
37    }
38  });
39  
40  $('#accordion-menu .open').click(function() {
41  
42      $('#accordion-menu .open').removeClass('open-selected');
43       $('#accordion-menu .content').slideUp('normal');
44      if($(this).next().is(':hidden') == true) {
45        $(this).addClass('open-selected');
46        $(this).next().slideDown('normal');
47       } 
48        
49     });
50    $('#accordion-menu .content').hide();
51    
52  
53  
54  
55  
56    // Smooth scroll for the navigation and links with .scrollto classes
57    $('.main-nav a, .mobile-nav a, .scrollto').on('click', function() {
58      if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
59        var target = $(this.hash);
60        if (target.length) {
61          var top_space = 0;
62  
63          if ($('#header').length) {
64            top_space = $('#header').outerHeight();
65  
66            if (! $('#header').hasClass('header-scrolled')) {
67              top_space = top_space - 40;
68            }
69          }
70  
71          $('html, header').animate({
72            scrollTop: target.offset().top - top_space
73          }, 1500, 'easeInOutExpo');
74  
75          if ($(this).parents('.main-nav, .mobile-nav').length) {
76            $('.main-nav .active, .mobile-nav .active').removeClass('active');
77            $(this).closest('li').addClass('active');
78          }
79  
80          if ($('header').hasClass('mobile-nav-active')) {
81            $('header').removeClass('mobile-nav-active');
82            $('.mobile-nav-toggle i').toggleClass('fa-times fa-bars');
83            $('.mobile-nav-overly').fadeOut();
84          }
85          return false;
86        }
87      }
88    });
89  
90  
91  
92    // Navigation active state on scroll
93    var nav_sections = $('section');
94    var main_nav = $('.main-nav, .mobile-nav');
95    var main_nav_height = $('#header').outerHeight();
96  
97    $(window).on('scroll', function () {
98      var cur_pos = $(this).scrollTop();
99    
100      nav_sections.each(function() {
101        var top = $(this).offset().top - main_nav_height,
102            bottom = top + $(this).outerHeight();
103    
104        if (cur_pos >= top && cur_pos <= bottom) {
105          main_nav.find('li').removeClass('active');
106          main_nav.find('a[href="#'+$(this).attr('id')+'"]').parent('li').addClass('active');
107        }
108      });
109    });
110  })(jQuery);
111  
112  
113  ! function(a) {
114              "use strict";
115              a("html, body");
116              var e = a(".pwdMask > .form-control"),
117                  t = a(".pwd-toggle");
118              a(".lnk-toggler").on("click", function(t) {
119                  t.preventDefault();
120                  var e = a(this).data("panel");
121                  a(".authfy-panel.active").removeClass("active"), a(e).addClass("active")
122              })
123  
124              
125          }(jQuery);
126  
127  
128  
129  var video = document.getElementById("BannerVideo");
130  
131  // Get the button
132  var btn = document.getElementById("BannerMyBtn");
133  
134  // Pause and play the video, and change the button text
135  function myFunction() {
136      if (video.paused) {
137          video.play();
138          btn.innerHTML = "<img src='http://s1auviv.wpengine.com/wp-content/uploads/2023/12/pause.svg'><span>
138Pause</span>";
139      } else {
140          video.pause();
141          btn.innerHTML = "<img src='http://s1auviv.wpengine.com/wp-content/uploads/2023/12/play-2.svg'><span>Play</span>";
142      }
143  }
144
145var owl = jQuery('#testimonials-slider');
146var loop = true;
147if(jQuery('#testimonials-slider').length && !jQuery('#testimonials-slider').hasClass('testm-count-1')){	
148owl.owlCarousel({
149    margin: 0,
150    dots: true,
151    loop: true,
152    nav: false,
153    autoplay: false,
154    responsive: {
155        0: {
156            nav: false,
157            items: 1
158        },
159        600: {
160            nav: false,
161            items: 1
162        },
163        1000: {
164            nav: false,
165            items: 1   
166        }
167    }
168});
169}
170var owl2=[];
171for(i=0;i<jQuery('.testimonial-slider2').length;i++){
172owl2[i] = jQuery('.testimonial-slider2').eq(i);
173console.log(owl2[i].hasClass('testm-count-1'));
174if(owl2[i].length && !owl2[i].hasClass('testm-count-1')){	
175	owl2[i].owlCarousel({
176		margin: 0,
177		dots: true,
178		loop: true,
179		nav: false,
180		autoplay: false,
181		responsive: {
182			0: {
183				nav: false,
184				items: 1
185			},
186			600: {
187				nav: false,
188				items: 1
189			},
190			1000: {
191				nav: false,
192				items: 1
193			}
194		}
195	});
196	}
197}

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.