PageSourceSearch

https://montessoriparatodos.es/blog/wp-content/themes/orbital/assets/js/main.js?ver=20151215

js montessoriparatodos.es collected 2026-10-03 23:15:28 UTC 1,936 bytes, 81 lines download raw bytes

1(function() {
2	var pre = document.getElementsByTagName('pre'),
3	pl = pre.length;
4	for (var i = 0; i < pl; i++) {
5		pre[i].innerHTML = '<span class="line-number"></span>' + pre[i].innerHTML;
6		var num = pre[i].innerHTML.split(/\n/).length;
7		for (var j = 0; j < num; j++) {
8			var line_num = pre[i].getElementsByTagName('span')[0];
9			line_num.innerHTML += '<span>' + (j + 1) + '</span>';
10		}
11	}
12})();
13
14jQuery(document).ready(function($) {
15
16	moveNavigation();
17
18	$(window).on('resize', function() {
19		(!window.requestAnimationFrame) ? setTimeout(moveNavigation, 300): window.requestAnimationFrame(moveNavigation);
20	});
21
22	$('.site-trigger, .site-overlay').on('click', function(event) {
23		event.preventDefault();
24		$('.site-navbar, .site-overlay').toggleClass('active');
25
26	});
27
28	function moveNavigation() {
29		var navbar = $('.site-navbar');
30		var screenSize = checkWindowWidth();
31		if (screenSize) {
32
33			navbar.detach();
34			navbar.insertBefore('.site-trigger');
35			$('.site-navbar, .site-overlay').removeClass('active');
36		} else {
37
38			navbar.detach();
39			navbar.insertAfter('.site-main');
40			$('.site-navbar, .site-overlay').removeClass('active');
41		}
42	}
43
44	function checkWindowWidth() {
45		var mq = $(window).width();
46		return (mq < 1024) ? false : true;
47	}
48
49	//SMOOTH SCROLL
50
51	$('a[href*="#"]').not('[href="#"]').not('[href="#0"]').click(function(event) {
52
53		if (
54			location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') &&
55			location.hostname == this.hostname
56			) {
57
58			var target = $(this.hash);
59		target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
60
61		if (target.length) {
62
63			event.preventDefault();
64			$('html, body').animate({
65				scrollTop: target.offset().top
66			}, 1000, function() {
67
68				var $target = $(target);
69				$target.focus();
70				if ($target.is(":focus")) {
71					return false;
72				} else {
73					$target.attr('tabindex', '-1');
74					$target.focus();
75				};
76			});
77		}
78	}
79});
80
81});

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.