PageSourceSearch

http://mogeparhia.by/wp-content/themes/magazine/js/themify.mega-menu.js?ver=1.4.2

js mogeparhia.by collected 2026-09-24 19:47:34 UTC 1,246 bytes, 55 lines download raw bytes

1/*
2 * Themify Mega Menu Plugin
3 */
4;(function ($) {
5	$.fn.ThemifyMegaMenu = function( custom ) {
6
7		var options = $.extend({
8				events: 'mouseenter'
9			}, custom),
10			cacheMenu = {};
11
12		return this.each(function() {
13			var $thisMega = $(this),
14				$megaMenuPosts = $('.mega-menu-posts', $thisMega),
15				firstTerm = $('.mega-link:first', $thisMega).data('termslug');
16
17			cacheMenu[firstTerm] = $megaMenuPosts.html();
18
19			$thisMega.on(options.events, '.mega-link', function(event) {
20				event.preventDefault();
21				var $self = $(this),
22					termslug = $self.data('termslug'),
23					tax = $self.data('tax');
24
25				if( 'string' == typeof cacheMenu[termslug] ) {
26					$megaMenuPosts.html( cacheMenu[termslug] );
27				} else {
28					$.post(
29						themifyScript.ajax_url,
30						{
31							action: 'themify_theme_mega_posts',
32							nonce: themifyScript.ajax_nonce,
33							termslug: termslug,
34							tax: tax
35						},
36						function( response ) {
37							$megaMenuPosts.html( response );
38							cacheMenu[termslug] = response;
39						}
40					);
41				}
42			});
43
44		});
45	};
46
47	$(document).ready(function() {
48		if( 'undefined' !== typeof $.fn.ThemifyMegaMenu ) {
49			$('.has-mega-sub-menu').ThemifyMegaMenu({
50				events: themifyScript.events
51			});
52		}
53	});
54
55})(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.