PageSourceSearch

https://www.swaes.org/custom/js/custom.js?d=20230907

js swaes.org collected 2026-09-30 06:41:41 UTC 2,502 bytes, 95 lines download raw bytes

1$(function() {
2	$('nav#mainnav').mmenu({		
3		clone: false		
4	});
5
6});
7
8$('.scroll_page').click(function(e) {
9    e.preventDefault();
10	if($(window).width() > 1239){
11		$('html,body').animate({scrollTop: $(this.hash).offset().top - 107},700);
12	}
13	if($(window).width() > 1023 && $(window).width() < 1240){
14		$('html,body').animate({scrollTop: $(this.hash).offset().top - 101	},700);
15		} 
16	if($(window).width() > 767 && $(window).width() < 1024){
17		$('html,body').animate({scrollTop: $(this.hash).offset().top - 101},700);
18		}
19	if($(window).width() < 768){
20		//var headerHeight  = 0;
21		$('html,body').animate({scrollTop: $(this.hash).offset().top},700);
22	}	
23	
24});
25
26$('.utility_nav li a.search').click(function(e) {
27    e.preventDefault();
28	$(this).toggleClass('active');
29	$('.search_field').slideToggle();
30});
31$('.utility_nav .search_btn').click(function(e) {
32    e.preventDefault();
33    $('.utility_nav li a.search').removeClass('active');
34	$('.search_field').slideUp();
35});
36
37$(document).ready(function(e) {
38if($(window).width() > 767){
39$(window).on('scroll load', function() {
40var navHeight = $("header").outerHeight();
41($(window).scrollTop() > navHeight) ? $('header').addClass('fixed') : $('header').removeClass('fixed');
42});
43}
44
45
46});
47
48
49if ($('.back-top').length) {
50    var scrollTrigger = 100, // px
51        backToTop = function () {
52            var scrollTop = $(window).scrollTop();
53            if (scrollTop > scrollTrigger) {
54                $('.back-top').addClass('show');
55            } else {
56                $('.back-top').removeClass('show');
57            }
58        };
59    backToTop();
60    $(window).on('scroll', function () {
61        backToTop();
62    });
63    $('.back-top').on('click', function (e) {
64        e.preventDefault();
65        $('html,body').animate({
66            scrollTop: 0
67        }, 500);
68    });
69}
70
71
72$(".sideMenu").click(function() {
73  $("#menu").slideToggle( "", function() {
74  $(".sideMenu").toggleClass( "active", function() {
75    // Animation complete.
76  });
77  });
78});
79
80if ( $(window).width() < 768 ){
81	$(".utility_nav_icon").click(function() {
82		$(this).children('ul').slideToggle();
83	});
84	
85	var logoheight = $('#logo').outerHeight()
86	$('header .top_bar').css({'min-height': logoheight + 'px'});
87};
88
89$(window).resize(function(){
90	if ( $(window).width() < 768 ){
91		var logoheight = $('#logo').outerHeight()
92		$('header .top_bar').css({'min-height': logoheight + 'px'});
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.