PageSourceSearch

https://aye-d.net/script/html/dropdownmenu.js?usn=558389129

js aye-d.net collected 2026-10-02 02:01:14 UTC 11,152 bytes, 1 lines download raw bytes

1function upDropdownMenu(){upMenu.call(this);this.lastTap="";this.menuType=2;this.htmlCode="";this.activeTopItem=null;this.zIndexAdjustmentContainer="";this.rewrite=function(){return};this.init=function(){if(document.getElementById("CONT_dropdown")){this.changeNode(document.getElementById("CONT_dropdown"));if(this.zIndexAdjustmentContainer===""){var oDropdownContainerParents=$("#CONT_dropdown").parentsUntil("body");var oStageContainerParents=$("#Container_Stage").parentsUntil("body");var depth=oStageContainerParents.length>0?oDropdownContainerParents.length-oStageContainerParents.length-1:oDropdownContainerParents.length-1;this.zIndexAdjustmentContainer=oDropdownContainerParents.get(depth);$("#CONT_dropdown").on("mouseenter.correctZIndex",function(event){if(g_oTooltipReg.aCurrentEntries.length>0){var iNewZIndex=g_oTooltipReg.zIndex+1;$(oDropdownMenu.zIndexAdjustmentContainer).css({"z-index":iNewZIndex})}});$("#CONT_dropdown").on("mouseleave.correctZIndex",function(event){$(oDropdownMenu.zIndexAdjustmentContainer).css({"z-index":""})})}}$("ul#CONT_dropdown a").on("keydown.dropdowncontrol",function(event){var keycode=event.which;var menuItem=$(this).get(0);switch(keycode){case 37:if(menuItem.parentNode.className.indexOf("top")>-1){if(menuItem.parentNode.previousSibling&&menuItem.parentNode.previousSibling.nodeName==="LI"){menuItem.parentNode.previousSibling.firstChild.focus()}else{menuItem.parentNode.parentNode.lastChild.firstChild.focus()}}else{if(menuItem.parentNode.parentNode.nodeName==="UL"){if(menuItem.parentNode.parentNode.className==="over"){menuItem.parentNode.parentNode.className=""}menuItem.parentNode.parentNode.parentNode.firstChild.focus()}}break;case 38:if(menuItem){if(menuItem.parentNode.previousSibling&&menuItem.parentNode.previousSibling.nodeName==="LI"){if(menuItem.parentNode.previousSibling.id.indexOf("CONT")<0){dd_navigate_up(menuItem.parentNode.previousSibling.firstChild)}menuItem.parentNode.previousSibling.firstChild.focus()}else{if(menuItem.parentNode.parentNode.nodeName==="UL"){if(menuItem.parentNode.parentNode.className==="over"){menuItem.parentNode.parentNode.className=""}if(menuItem.parentNode.parentNode.parentNode.nodeName!=="DIV"){menuItem.parentNode.parentNode.parentNode.firstChild.focus()}}}}break;case 39:if(menuItem.parentNode.className.indexOf("top")>-1){if(menuItem.parentNode.nextSibling&&menuItem.parentNode.nextSibling.nodeName==="LI"){menuItem.parentNode.nextSibling.firstChild.focus()}else{menuItem.parentNode.parentNode.firstChild.firstChild.focus()}}else{if(menuItem.nextSibling&&menuItem.nextSibling.nodeName==="UL"){menuItem.nextSibling.firstChild.firstChild.focus();window.setTimeout('document.getElementById("'+menuItem.id+'").parentNode.className="over";document.getElementById("'+menuItem.id+'").nextSibling.firstChild.firstChild.focus();',0)}}break;case 40:if(menuItem.parentNode.className.indexOf("top")>-1&&menuItem.nextSibling&&menuItem.nextSibling.nodeName==="UL"){menuItem.nextSibling.firstChild.firstChild.focus();window.setTimeout('document.getElementById("'+menuItem.id+'").parentNode.className="top over";document.getElementById("'+menuItem.id+'").nextSibling.firstChild.firstChild.focus();',0)}else{if(menuItem.parentNode.nextSibling&&menuItem.parentNode.nextSibling.nodeName==="LI"){if(menuItem.parentNode.nextSibling.id.indexOf("CONT")<0){dd_navigate_down(menuItem.parentNode.nextSibling.firstChild)}else{menuItem.parentNode.nextSibling.firstChild.focus()}}else{menuItem.parentNode.parentNode.firstChild.firstChild.focus()}}break;case 13:$(this).trigger("click");case 27:$(this).parents("li.over").removeClass("over");break;default:return true}event.stopPropagation();return false});var reqMenuGuid=Helper.getQsValueByParam("rq_MenuGuid");var reqAppGuid=Helper.getQsValueByParam("rq_AppGuid");if(reqMenuGuid&&document.getElementById("CONT-"+reqMenuGuid)){this.setCSSClass(reqMenuGuid,reqAppGuid)}if(typeof customInit!=="undefined"){customInit()}return};this.setSpecificStyleProps=function(state,n){if(aMenuGuid[state+"_"+n.id]){aCurrStyles=aMenuGuid[state+"_"+n.id];for(var p in aCurrStyles){if(aCurrStyles.hasOwnProperty(p)){eval("n.style."+p+'="'+aCurrStyles[p]+'"')}}}};this.setCSSClass=function(p_strMenuGuid,p_strAppGuid){var oMenuItem;if(p_strMenuGuid==="-"&&p_strAppGuid==="-"){return}if(p_strMenuGuid!=="-"){oMenuItem=this.getItemById(p_strMenuGuid)}else{if(p_strAppGuid!=="-"){oMenuItem=this.getItemByAppGuid(p_strAppGuid)}}if(typeof oMenuItem=="undefined"||oMenuItem===null){return}var aAncestorsAndSelf=oMenuItem.getAncestorsAndSelf();if(aAncestorsAndSelf.length<2){return}var oMainItem=this.getItemById(aAncestorsAndSelf[aAncestorsAndSelf.length-2]);for(var i=0;i<oMainItem.parent.aChildren.length;i++){if(oMainItem.parent.aChildren[i].id!==oMainItem.id){oMainItem.parent.aChildren[i].changeStyle(this,"normal")}}var oTextLink=this.getTextLink(oMainItem.id);var oDiv=this.getContainer(oMainItem.id);if(typeof Browser!=="undefined"){if(oTextLink){oTextLink.blur();setTimeout("document.getElementById('"+oDiv.id+"').className = 'top selected';",200)}}return};this.reset=function(startId,appGuid,id){var strMenuGuid=id;if(strMenuGuid==""){strMenuGuid="-"}var strAppGuid=appGuid;if(strAppGuid==""){strAppGuid="-"}this.setCSSClass(strMenuGuid,strAppGuid);return};this.changeNode=function(startNode){var childNodes=startNode.childNodes;var l=childNodes.length;var n=null;var aCurrStyles={};var oMenuItem=null;$("#CONT_dropdown a.top").focus(function(event){var li_id=event.delegateTarget.id.replace(/A/,"CONT");var li_el=document.getElementById(li_id);li_el.className="top over"});$("#CONT_dropdown a.top").blur(function(event){var aEl=event.delegateTarget;aEl.className="top";var li_id=aEl.id.replace(/A/,"CONT");var li_el=document.getElementById(li_id);if(li_el){li_el.className="top"}});$("#CONT_dropdown a.top").click(function(event){var aEl=event.delegateTarget;var guid=aEl.id.substring(2);if(oDropdownMenu.childMenuName!==""){oDropdownMenu.loadSubMenu(guid)}var oMenuItem=oDropdownMenu.getItemById(guid);var bTouchpadAndContainerMenuItem=(Browser.supports.touch&&oMenuItem&&oMenuItem.upType==="upContainerMenuItem");if(oDropdownMenu.activeTopItem!==null&&(!bTouchpadAndContainerMenuItem||oDropdownMenu.lastTap===guid)){oDropdownMenu.activeTopItem.className="top out"}event.stopPropagation();if(aEl.target&&aEl.target==="_blank"){if(typeof customClick!=="undefined"){customClick(guid)}if(typeof menuItemSaveClick!=="undefined"){menuItemSaveClick(guid)}return true}else{if(typeof customClick!=="undefined"){customClick(guid)}if(typeof menuItemSaveClick!=="undefined"){menuItemSaveClick(guid)}if(oMenuItem&&oMenuItem.name!==""){document.title=oMenuItem.name+" - "+oHtmlRoot.oUp.title}else{document.title=oHtmlRoot.oUp.title}if(oMenuItem&&oMenuItem.upType==="upLinkMenuItem"){return true}else{var href;if(Browser.ie7down){href=aEl.getAttribute("href",2)}else{href=aEl.getAttribute("href")}if(bTouchpadAndContainerMenuItem){if(oDropdownMenu.lastTap!==guid){oDropdownMenu.lastTap=guid;return false}else{oDropdownMenu.activeTopItem.className="top out"}}oDropdownMenu.lastTap="";return !Loader.loadStageUrlAndSetMenu(href)}}});$('#CONT_dropdown a[class!="top"]').focus(function(event){var li_id=event.delegateTarget.id.replace(/A/,"CONT");var li_el=document.getElementById(li_id);var oItem=oDropdownMenu.getItemById(event.delegateTarget.id.substring(2));li_el.className="over"});$('#CONT_dropdown a[class!="top"]').blur(function(event){var li_id=event.delegateTarget.id.replace(/A/,"CONT");var li_el=document.getElementById(li_id);if(li_el){li_el.className=""}});$('#CONT_dropdown a[class!="top"]').click(function(event){var aEl=event.delegateTarget;var guid=aEl.id.substring(2);if(oDropdownMenu.childMenuName!==""){oDropdownMenu.loadSubMenu(guid)}var oMenuItem=oDropdownMenu.getItemById(guid);var bTouchpadAndContainerMenuItem=(Browser.supports.touch&&oMenuItem&&oMenuItem.upType==="upContainerMenuItem");if(oDropdownMenu.activeTopItem!==null&&(!bTouchpadAndContainerMenuItem||oDropdownMenu.lastTap===guid)){oDropdownMenu.activeTopItem.className="top out"}event.stopPropagation();if(aEl.target&&aEl.target==="_blank"){if(typeof customClick!=="undefined"){customClick(guid)}if(typeof menuItemSaveClick!=="undefined"){menuItemSaveClick(guid)}return true}else{if(typeof customClick!=="undefined"){customClick(guid)}if(typeof menuItemSaveClick!=="undefined"){menuItemSaveClick(guid)}if(oMenuItem&&oMenuItem.name!==""){document.title=oMenuItem.name+" - "+oHtmlRoot.oUp.title}else{document.title=oHtmlRoot.oUp.title}if(oMenuItem&&oMenuItem.upType==="upLinkMenuItem"){return true}else{var href;if(Browser.ie7down){href=aEl.getAttribute("href",2)}else{href=aEl.getAttribute("href")}if(bTouchpadAndContainerMenuItem){if(oDropdownMenu.lastTap!==guid){oDropdownMenu.lastTap=guid;return false}else{oDropdownMenu.activeTopItem.className="top out"}}oDropdownMenu.lastTap="";return !Loader.loadStageUrlAndSetMenu(href)}}});$("#CONT_dropdown li").click(function(event){var liEl=event.delegateTarget;if(oDropdownMenu.childMenuName!==""){oDropdownMenu.loadSubMenu(liEl.id.substring(5))}if(oDropdownMenu.activeTopItem!==null){oDropdownMenu.activeTopItem.className="top out"}var aTag=document.getElementById("A"+liEl.id.substring(4));if(!aTag){return false}event.stopPropagation();if(aTag.target&&aTag.target==="_blank"){return true}else{var oMenuItem=oDropdownMenu.getItemById(aTag.id.substring(2));if(oMenuItem&&oMenuItem.upType==="upLinkMenuItem"){return true}else{return !Loader.loadStageUrlAndSetMenu(aTag.href)}}});$('#CONT_dropdown li[class!="top"]').mouseover(function(event){var liEl=event.delegateTarget;if(typeof liEl.timer!=="undefined"&&liEl.timer>-1){window.clearTimeout(liEl.timer)}liEl.className="over";if(typeof oDropdownMenu!=="undefined"){oDropdownMenu.setSpecificStyleProps("hover",liEl)}if(typeof customHover!=="undefined"){customHover(liEl.id)}return});$('#CONT_dropdown li[class!="top"]').mouseout(function(event){var liEl=event.delegateTarget;liEl.className="delay";if(typeof oDropdownMenu!=="undefined"){oDropdownMenu.setSpecificStyleProps("normal",liEl)}liEl.timer=-1;if(Browser.ie7down){liEl.timer=window.setTimeout("document.getElementById('"+liEl.id+"').removeAttribute('className')",200)}else{liEl.timer=window.setTimeout("document.getElementById('"+liEl.id+"').removeAttribute('class')",200)}if(typeof customOut!=="undefined"){customOut(liEl.id)}return});$("#CONT_dropdown li.top").mouseover(function(event){var liEl=event.delegateTarget;if(typeof oDropdownMenu!=="undefined"){oDropdownMenu.activeTopItem=liEl}if(liEl.className.indexOf("selected")>-1){return}liEl.className="top over";if(typeof oDropdownMenu!=="undefined"){oDropdownMenu.setSpecificStyleProps("hover",liEl)}if(typeof customHover!=="undefined"){customHover(liEl.id)}return});$("#CONT_dropdown li.top").mouseout(function(event){var liEl=event.delegateTarget;liEl.blur();if(typeof oDropdownMenu!=="undefined"){oDropdownMenu.activeTopItem=null}if(liEl.className.indexOf("selected")>-1){return}liEl.className="top";if(typeof oDropdownMenu!=="undefined"){oDropdownMenu.setSpecificStyleProps("normal",liEl)}if(typeof customOut!=="undefined"){customOut(liEl.id)}return});return}};

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.