PageSourceSearch

https://houkousha.com/js/jquery.trevo.megamenu.min.js

js houkousha.com collected 2026-10-03 01:37:07 UTC 2,599 bytes, 15 lines download raw bytes

1/*
2 * jQuery TrEVo MegaMenu v0.2 alpha
3 * //github.com/djtrevo/MegaMenu
4 * 
5 * Copyright 2013, Marco Trevisani
6 * * * * * * * * * * * * * * * * * * * * * *
7 *
8 * Official Website: http://www.marcotrevisani.com
9 * Music Website: http://www.djtrevo.com
10 *
11 * * * * * * * * * * * * * * * * * * * * * * 
12 * Dual licensed under the MIT or GPL Version 2 licenses.
13 * http://www.opensource.org/licenses/mit-license.php
14 * http://www.opensource.org/licenses/GPL-2.0
15 */ (function ($) { $.fn.trevoMegaMenu = function (options) { var defaults = { type: "hover", fadeIn: 200, fadeOut: 200 }; var options = $.extend(defaults, options); return this.each(function () { $(this).find("li.lvl1 a").each(function () { if ((options.type == "click") || ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)))) { $(this).click(function () { subMenu = $(this).parent().find(".lvl2"); if (subMenu.is(":visible")) { $(this).parent().find(".lvl2").fadeOut(options.fadeOut); } else { $(this).parent().find(".lvl2").fadeIn(options.fadeIn); if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) { $(this).parent().find(".lvl2").bind('touchstart click', function () { $(this).fadeOut(options.fadeOut) }) } } }); } else { $(this).hover(function () { var lvl2Element = $(this).parent().find(".lvl2"); if (lvl2Element[0]) { $(this).click(function () { return false }) }; lvl2Element.fadeIn(options.fadeIn); $(this).parent().find(".lvl2").hover(function () { clearTimeout(trvTimer); }, function () { var e = $(this); setTimeout(function () { if (!e.parent().children("a").ismouseover()) { e.fadeOut(options.fadeOut); } }, 100); }) }, function () { $(this).parent().children(".lvl2").each(function () { var e = $(this); trvTimer = setTimeout(function () { e.fadeOut(options.fadeOut); }, 100); }) }); } }) }); }; })(jQuery); (function ($) { $.mlp = { x: 0, y: 0 }; function documentHandler() { var $current = this === document ? $(this) : $(this).contents(); $current.mousemove(function (e) { jQuery.mlp = { x: e.pageX, y: e.pageY } }); $current.find("iframe").load(documentHandler); } $(documentHandler); $.fn.ismouseover = function (overThis) { var result = false; this.eq(0).each(function () { var $current = $(this).is("iframe") ? $(this).contents().find("body") : $(this); var offset = $current.offset(); result = offset.left <= $.mlp.x && offset.left + $current.outerWidth() > $.mlp.x && offset.top <= $.mlp.y && offset.top + $current.outerHeight() > $.mlp.y; }); return result; }; })(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.