PageSourceSearch

https://www.freepornvideos.cz/wp-content/themes/retrotube/assets/js/navigation.js?ver=1.0.0

js freepornvideos.cz collected 2026-10-06 13:57:17 UTC 4,500 bytes, 161 lines download raw bytes

1(function($) {
2	$.fn.menumaker = function(options) {  
3	 var cssmenu = $(this), settings = $.extend({
4	   format: "dropdown",
5	   sticky: false
6	 }, options);
7	 return this.each(function() {
8	   $(this).find(".button-nav").on('click', function(){
9		 $(this).toggleClass('menu-opened');
10		 var mainmenu = $(this).next('ul');
11		 if (mainmenu.hasClass('open')) { 
12		   mainmenu.slideToggle().removeClass('open');
13		 } else {
14		   mainmenu.slideToggle().addClass('open');
15		   if (settings.format === "dropdown") {
16			 mainmenu.find('ul').show();
17		   }
18		 }
19	   });
20	   cssmenu.find('li ul').parent().addClass('has-sub');
21	multiTg = function() {
22		 cssmenu.find(".has-sub").prepend('<span class="submenu-button"></span>');
23		 cssmenu.find('.submenu-button').on('click', function() {
24		   $(this).toggleClass('submenu-opened');
25		   if ($(this).siblings('ul').hasClass('open')) {
26			 $(this).siblings('ul').removeClass('open').slideToggle();
27		   }
28		   else {
29			 $(this).siblings('ul').addClass('open').slideToggle();
30		   }
31		 });
32	   };
33	   if (settings.format === 'multitoggle') multiTg();
34	   else cssmenu.addClass('dropdown');
35	   if (settings.sticky === true) cssmenu.css('position', 'fixed');
36	resizeFix = function() {
37	  var mediasize = 1000;
38		 if ($( window ).width() > mediasize) {
39		   cssmenu.find('ul').show();
40		 }
41		 if ($(window).width() <= mediasize) {
42		   cssmenu.find('ul').hide().removeClass('open');
43		 }
44	   };
45	   resizeFix();
46	   return $(window).on('resize', resizeFix);
47	 });
48	  };
49	})(jQuery);
50	
51	(function($){
52	$(document).ready(function(){
53	$("#site-navigation").menumaker({
54	   format: "multitoggle"
55	});
56	});
57})(jQuery);
58
59
60/**
61 * File navigation.js.
62 *
63 * Handles toggling the navigation menu for small screens and enables TAB key
64 * navigation support for dropdown menus.
65 */
66/*( function() {
67	var container, button, menu, links, i, len;
68
69	container = document.getElementById( 'site-navigation' );
70	if ( ! container ) {
71		return;
72	}
73
74	button = container.getElementsByTagName( 'button' )[0];
75	if ( 'undefined' === typeof button ) {
76		return;
77	}
78
79	menu = container.getElementsByTagName( 'ul' )[0];
80
81	// Hide menu toggle button if menu is empty and return early.
82	if ( 'undefined' === typeof menu ) {
83		button.style.display = 'none';
84		return;
85	}
86
87	menu.setAttribute( 'aria-expanded', 'false' );
88	if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
89		menu.className += ' nav-menu';
90	}
91
92	button.onclick = function() {
93		if ( -1 !== container.className.indexOf( 'toggled' ) ) {
94			container.className = container.className.replace( ' toggled', '' );
95			button.setAttribute( 'aria-expanded', 'false' );
96			menu.setAttribute( 'aria-expanded', 'false' );
97		} else {
98			container.className += ' toggled';
99			button.setAttribute( 'aria-expanded', 'true' );
100			menu.setAttribute( 'aria-expanded', 'true' );
101		}
102	};
103
104	// Get all the link elements within the menu.
105	links    = menu.getElementsByTagName( 'a' );
106
107	// Each time a menu link is focused or blurred, toggle focus.
108	for ( i = 0, len = links.length; i < len; i++ ) {
109		links[i].addEventListener( 'focus', toggleFocus, true );
110		links[i].addEventListener( 'blur', toggleFocus, true );
111	}
112
113	
114	function toggleFocus() {
115		var self = this;
116
117		// Move up through the ancestors of the current link until we hit .nav-menu.
118		while ( -1 === self.className.indexOf( 'nav-menu' ) ) {
119
120			// On li elements toggle the class .focus.
121			if ( 'li' === self.tagName.toLowerCase() ) {
122				if ( -1 !== self.className.indexOf( 'focus' ) ) {
123					self.className = self.className.replace( ' focus', '' );
124				} else {
125					self.className += ' focus';
126				}
127			}
128
129			self = self.parentElement;
130		}
131	}
132
133	
134	( function( container ) {
135		var touchStartFn, i,
136			parentLink = container.querySelectorAll( '.menu-item-has-children > a, .page_item_has_children > a' );
137
138		if ( 'ontouchstart' in window ) {
139			touchStartFn = function( e ) {
140				var menuItem = this.parentNode, i;
141
142				if ( ! menuItem.classList.contains( 'focus' ) ) {
143					e.preventDefault();
144					for ( i = 0; i < menuItem.parentNode.children.length; ++i ) {
145						if ( menuItem === menuItem.parentNode.children[i] ) {
146							continue;
147						}
148						menuItem.parentNode.children[i].classList.remove( 'focus' );
149					}
150					menuItem.classList.add( 'focus' );
151				} else {
152					menuItem.classList.remove( 'focus' );
153				}
154			};
155
156			for ( i = 0; i < parentLink.length; ++i ) {
157				parentLink[i].addEventListener( 'touchstart', touchStartFn, false );
158			}
159		}
160	}( container ) );
161} )(); */

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.