PageSourceSearch

https://www.changiexhibitioncentre.com/site/ctx/js/menu.js

js changiexhibitioncentre.com collected 2026-10-07 05:56:59 UTC 3,281 bytes, 7 lines download raw bytes

1ctmenu={count:0,curmenu:!1,show:function(a,b,h,d,i){var c;d||(d=100);if(a=document.getElementById(a))if(a.style.visibility=="visible")this._clear_hide(a);else{a.menu_data={delay:d,homing:b,otimeout:"none"};a.onmouseover=this._onmouseover;a.onmouseout=this._onmouseout;var e=this._get_edges(b);switch(h){case "right":c=e.right;d=e.top;break;case "top":c=e.left;d=e.top-a.offsetHeight;break;case "left":c=e.left-a.offsetWidth;d=e.top;break;default:c=e.left,d=e.bottom}c+=2;d-=3;var g=$(b),b=$(a),f=document.body.scrollLeft+
2document.body.clientWidth;h=="right"?(g=g.width()+g.offset().left+b.width(),g>f-10&&(c=e.left-b.width(),c-=4,h="left")):h=="bottom"&&(g=g.offset().left+b.width(),g>f&&(c=document.body.clientWidth-b.width()-10));$(a).offset({left:c,top:d});a.style.visibility="visible";this.count++;this.curmenu=a;typeof i=="undefined"?this._ie6_fix_input():i||this._ie6_fix_input();this._browser_type=="ie"?(f=document.getElementById("shade_img_ie"),d+=0,c+=0,i=a.offsetWidth-0,b=a.offsetHeight-0,h=="left"&&(c-=7)):(f=
3document.getElementById("shade_img_ff"),d+=2,i=Math.max(Math.round(a.offsetWidth*1.18),a.offsetWidth+8),b=Math.max(Math.round(a.offsetHeight*1.18),a.offsetHeight+8),h=="left"&&(c=e.left-i-2));if(f)a.parentNode.appendChild(f),$(f).offset({top:d,left:c}),f.width=i,f.height=b,f.style.visibility="visible"}},hide:function(a){if((omenu=document.getElementById(a))&&omenu.menu_data)omenu.menu_data.otimeout=setTimeout(function(){ctmenu._really_hide(a)},omenu.menu_data.delay)},"float":function(a,b){if(omenu=
4document.getElementById(a))switch(b){default:omenu.style.left=document.body.scrollLeft+document.body.clientWidth-omenu.offsetWidth-5,omenu.style.top=document.body.scrollTop+2}},_really_hide:function(a){omenu=document.getElementById(a);this._clear_hide(omenu);omenu.style.visibility="hidden";this.count--;this._ie6_fix_input("visible");if((oshade=document.getElementById(this._browser_type=="ie"?"shade_img_ie":"shade_img_ff"))&&omenu==this.curmenu)oshade.style.visibility="hidden",$(oshade).offset({top:-1E3,
5left:-1E3})},_dynamic_hide:function(a,b){this._browser_type=="ie"&&!a.contains(b.toElement)?this.hide(a.id):this._browser_type!="ie"&&b.currentTarget!=b.relatedTarget&&!this._contains_ff(b.currentTarget,b.relatedTarget)&&this.hide(a.id)},_clear_hide:function(a){if(a&&a.menu_data&&a.menu_data.otimeout!="none")clearTimeout(a.menu_data.otimeout),a.menu_data.otimeout="none"},_browser_type:navigator.appVersion.indexOf("MSIE")>=0?"ie":navigator.appVersion.indexOf("Chrome")>=0?"chrome":"ff",_browser_ver:navigator.appVersion.substr(navigator.appVersion.search(/MSIE /)+
65,1),_get_edges:function(a){var b=$(a).offset();b.right=b.left+a.offsetWidth;b.bottom=b.top+a.offsetHeight;return b},_contains_ff:function(a,b){for(;b&&b.parentNode;)if((b=b.parentNode)==a)return!0;return!1},_ie6_fix_input:function(a){if(this._browser_type=="ie"&&this._browser_ver=="6"){a=this.count>0?"hidden":"visible";iarr=document.getElementsByTagName("INPUT");for(var b=0;b<iarr.length;b++)iarr[b].style.visibility=a;iarr=document.getElementsByTagName("SELECT");for(b=0;b<iarr.length;b++)iarr[b].style.visibility=
7a}},_onmouseout:function(a){if(ctmenu._browser_type=="ie")a=window.event;ctmenu._dynamic_hide(this,a)},_onmouseover:function(){ctmenu._clear_hide(this)}};

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.