⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.50
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-horde
/
imp
/
js
/
Edit File: draghandler.js
/** * DragHandler library for use with prototypejs. * * @author Michael Slusarz <slusarz@horde.org> * @copyright 2013-2015 Horde LLC * @license GPL-2 (http://www.horde.org/licenses/gpl) */ var DragHandler = { // dropelt, // droptarget, // hoverclass, // leave, to: -1, isFileDrag: function(e) { return (e.dataTransfer && e.dataTransfer.types && $A(e.dataTransfer.types).include('Files') && ((e.type != 'drop') || e.dataTransfer.files.length)); }, handleObserve: function(e) { if (this.dropelt && (e.dataTransfer || (e.memo && e.memo.dataTransfer) || this.dropelt.visible())) { if (Prototype.Browser.IE && !(("onpropertychange" in document) && (!!window.matchMedia))) { // IE 9 supports drag/drop, but not dataTransfer.files } else { switch (e.type) { case 'dragleave': this.handleLeave(); break; case 'dragover': this.handleOver(e); break; case 'drop': this.handleDrop(e); break; } } } }, handleDrop: function(e) { if (this.isFileDrag(e)) { if (this.dropelt.hasClassName(this.hoverclass)) { this.dropelt.fire('DragHandler:drop', e.dataTransfer.files); } e.stop(); } else if (!e.findElement('TEXTAREA') && !e.findElement('INPUT')) { e.stop(); } this.leave = true; this.hide(); }, hide: function() { if (this.leave) { this.dropelt.hide(); this.droptarget.show(); this.leave = false; } }, handleLeave: function() { clearTimeout(this.to); this.to = this.hide.bind(this).delay(0.25); this.leave = true; }, handleOver: function(e) { var file = this.isFileDrag(e); if (file && !this.dropelt.visible()) { this.dropelt.clonePosition(this.droptarget).show(); this.droptarget.hide(); } this.leave = false; if (file && (e.target == this.dropelt)) { this.dropelt.addClassName(this.hoverclass); e.stop(); } else { this.dropelt.removeClassName(this.hoverclass); if (Prototype.Browser.IE || Prototype.Browser.Gecko) { e.stop(); } } } }; document.observe('dragleave', DragHandler.handleObserve.bindAsEventListener(DragHandler)); document.observe('dragover', DragHandler.handleObserve.bindAsEventListener(DragHandler)); document.observe('drop', DragHandler.handleObserve.bindAsEventListener(DragHandler));
Simpan