⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
softaculous
/
enduser
/
themes
/
default
/
js
/
View File Name :
menu.js
////////////////////////////////////////////////////////////// // menu.js - A simple JS drop Down menu // Inspired by Ronak and Pulkit // ---------------------------------------------------------- // Please Read the Terms of use at http://www.anelectron.com // ---------------------------------------------------------- // (c)Electron Inc. ////////////////////////////////////////////////////////////// //Shows the menu function dropmenu(ele, divid){ //To prevent errors try{ $_(divid).style;}catch(e){ return false;}; //If it is visible means he is on the drop down list if($_(divid).style.visibility=="visible"){ clearTimeout(hider); return; } //Get the position var pos = findelpos(ele); //Get the callers left and top x = pos[0]; y = pos[1]+ele.offsetHeight;//Add the height //If extremely right adjust if((screen.width - 40) < (x + $_(divid).offsetWidth)){ extra = $_(divid).offsetWidth - ele.offsetWidth; x = x - extra; } //Set the drop down div to that point $_(divid).style.left=x+"px"; $_(divid).style.top=y+"px"; //Make the div visble $_(divid).style.visibility="visible"; smoothopaque(divid, 0, 100, 5); }; //Hides the menu function pullmenu(hidedivid){ hider = setTimeout("puller('"+hidedivid+"')", 100); }; function puller(pid){ try{ $_(pid).style;}catch(e){ return false;}; $_(pid).style.visibility="hidden"; }; function clearhider(){ try{ clearTimeout(hider);}catch(e){ return false;}; } function createmenu(id, array){ if(!array){ return false; } var t = '<table id="'+id+'" cellpadding="5" cellspacing="1">'; var o; for(o in array){ t += '<tr><td>'+array[o]+'</td></tr>'; } t += '</table>'; document.write(t); };