PageSourceSearch

https://www.ice-monster-hi.com/js/main.js

js ice-monster-hi.com collected 2026-10-09 04:07:08 UTC 1,273 bytes, 54 lines download raw bytes

1$(document).ready(function() {
2	// Header Scroll
3	$(window).on('scroll', function() {
4		var scroll = $(window).scrollTop();
5
6		if (scroll >= 50) {
7			$('#header').addClass('fixed');
8		} else {
9			$('#header').removeClass('fixed');
10		}
11	});
12
13
14	// Flexslider
15	$('.flexslider').flexslider({
16		animation: "fade",
17		directionNav: false,
18	});
19
20	// Page Scroll
21	var sections = $('section')
22		nav = $('nav[role="navigation"]');
23
24	$(window).on('scroll', function () {
25	  	var cur_pos = $(this).scrollTop();
26	  	sections.each(function() {
27	    	var top = $(this).offset().top - 276
28	        	bottom = top + $(this).outerHeight();
29	    	if (cur_pos >= top && cur_pos <= bottom) {
30	      		nav.find('a').removeClass('active');
31	      		nav.find('a[href="#'+$(this).attr('id')+'"]').addClass('active');
32	    	}
33	  	});
34	});
35	nav.find('a').on('click', function () {
36	  	var $el = $(this)
37	    	id = $el.attr('href');
38		$('html, body').animate({
39			scrollTop: $(id).offset().top - 75
40		}, 500);
41	  return false;
42	});
43
44	// Mobile Navigation
45	$('.nav-toggle').on('click', function() {
46		$(this).toggleClass('close-nav');
47		nav.toggleClass('open');
48		return false;
49	});	
50	nav.find('a').on('click', function() {
51		$('.nav-toggle').toggleClass('close-nav');
52		nav.toggleClass('open');
53	});
54});

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.