1(function($) { 2"use strict"; 3 4/*------------------------------------------------------------------ 5[Table of contents] 6 71. CUSTOM PRE DEFINE FUNCTION 82. MEANMENU INIT JS 93. DROPDOWN MENU RIGHT SIDE CUT FIXED 10 11-------------------------------------------------------------------*/ 12 13 14 15/*-------------------------------------------------------------- 161. CUSTOM PRE DEFINE FUNCTION 17------------------------------------------------------------*/ 18/* is_exist() */ 19jQuery.fn.is_exist = function(){ 20 return this.length; 21} 22 23$(function(){ 24 25 26/*-------------------------------------------------------------- 272. MEANMENU INIT JS 28--------------------------------------------------------------*/ 29var lgtico_menu = $('.lgtico-menu'); 30if ( lgtico_menu.is_exist()) { 31 lgtico_menu.meanmenu({ 32 meanMenuContainer: '.lgtico-nav-wrap', 33 meanScreenWidth: "991" 34 }); 35} 36 37 38/*-------------------------------------------------------------- 393. DROPDOWN MENU RIGHT SIDE CUT FIXED 40--------------------------------------------------------------*/ 41$("#primary-menu li").on('mouseenter mouseleave', function (e) { 42 if ($('ul', this).length) { 43 // alert('55'); 44 var elm = $('ul.sub-menu', this); 45 var off = elm.offset(); 46 var l = off.left; 47 var w = elm.width(); 48 var docH = $(window).height(); 49 var docW = $(window).width(); 50 51 var isEntirelyVisible = (l + w <= docW); 52 53 if (!isEntirelyVisible) { 54 $(this).addClass('edge-submenu'); 55 } else { 56 $(this).removeClass('edge-submenu'); 57 } 58 } 59}); 60 61});/*End document ready*/ 62 63 64})(jQuery); 65 66 67 68 69 70
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.