PageSourceSearch

https://www.qnbtrust.bank/Portals/0/Skins/QNBT/Menus/HomeV2Desktop/Mega2DNN.js?cdv=464

js qnbtrust.bank collected 2026-10-02 14:31:03 UTC 2,302 bytes, 82 lines download raw bytes

1function splitSubMenu(columns) {
2
3	jQuery("div.sub").each(function (i) {
4		var items = jQuery(this).find('ul');
5		var blockCount = columns;
6		for (var i = 0; i < items.length; i += blockCount) {
7			var slice = items.slice(i, i + blockCount);
8			slice.wrapAll("<div class=\"row\"></div>");
9		}
10	});
11
12}
13
14/*jQuery(document).ready(function () {
15	//Calculate height of top level menu and set top style for menu placement
16	jQuery('ul.megamenu li .sub').css('top', jQuery('ul.megamenu > li').height());
17
18	// set hover class to parent item
19	jQuery('li.level0 div').mouseover(function () {
20		jQuery(this).closest('li.level0').find('a.level0').addClass("megahover")
21	}).mouseout(function () {
22		jQuery(this).closest('li.level0').find('a.level0').removeClass("megahover")
23	});
24
25	function megaHoverOver() {
26		jQuery(this).find(".sub").stop().fadeTo('slow', 1).show();
27
28		//Calculate width of all ul's
29		(function (jQuery) {
30			jQuery.fn.calcSubWidth = function () {
31				rowWidth = 0;
32				//Calculate row
33				$(this).find("ul").each(function () {
34					rowWidth += $(this).width();
35				});
36			};
37		})(jQuery);
38
39		if (jQuery(this).find(".row").length > 0) { //If row exists...
40			var biggestRow = 0;
41			//Calculate each row
42			jQuery(this).find(".row").each(function () {
43				jQuery(this).calcSubWidth();
44				//Find biggest row
45				if (rowWidth > biggestRow) {
46					biggestRow = rowWidth;
47				}
48			});
49			//Set width
50			jQuery(this).find(".sub").css({ 'width': biggestRow });
51			jQuery(this).find(".row:last").css({ 'margin': '0' });
52
53		} else { //If row does not exist...
54
55			jQuery(this).calcSubWidth();
56			//Set Width
57			jQuery(this).find(".sub").css({ 'width': rowWidth });
58
59		}
60	}
61
62	function megaHoverOut() {
63		jQuery(this).find(".sub").stop().fadeTo('slow', 0, function () {
64			jQuery(this).hide();
65		});
66	}
67
68
69	var config = {
70		sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)    
71		interval: 100, // number = milliseconds for onMouseOver polling interval    
72		over: megaHoverOver, // function = onMouseOver callback (REQUIRED)    
73		timeout: 100, // number = milliseconds delay before onMouseOut    
74		out: megaHoverOut // function = onMouseOut callback (REQUIRED)    
75	};
76
77	jQuery("ul.megamenu li .sub").css({ 'opacity': '0' });
78	jQuery("ul.megamenu li").hoverIntent(config);
79
80});*/
81
82

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.