PageSourceSearch

https://jogaiyengar.cz/wp-content/themes/openstrap/js/theme-menu.js

js jogaiyengar.cz collected 2026-10-03 00:48:17 UTC 775 bytes, 24 lines download raw bytes

1( function( $ ) {
2	$('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) {
3		// Avoid following the href location when clicking
4		event.preventDefault(); 
5		// Avoid having the menu to close when clicking
6		event.stopPropagation(); 
7		// If a menu is already open we close it
8		//$('ul.dropdown-menu [data-toggle=dropdown]').parent().removeClass('open');
9		// opening the one you clicked on
10		//$(this).parent().addClass('open');
11		$(this).parent().toggleClass('open');
12
13		var menu = $(this).parent().find("ul");
14		var menupos = menu.offset();
15	  
16		if ((menupos.left + menu.width()) + 30 > $(window).width()) {
17			var newpos = - menu.width();      
18		} else {
19			var newpos = $(this).parent().width();
20		}
21		menu.css({ left:newpos });
22
23	});
24} )( jQuery );

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.