⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.89
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
/
local
/
psa
/
admin
/
htdocs
/
spaw
/
js
/
ie
/
View File Name :
editor.js
// IE specific code // initialize SpawEditor.prototype.initialize = function() { this.document = document; if (!this.document) { setTimeout(this.name+'_obj.initialize();',20); return; } var f_pif = this.getPageIframeObject(this.pages[0].name); for(var i=0; i
'); var end_rng = sel.duplicate(); end_rng.collapse(false); end_rng.pasteHTML('
'); this._in_selection = false; this.selectionNodeWalk(sel.parentElement(), null, func); // remove fake start and end markers pdoc.getElementById("_spaw_start_container").parentNode.removeChild(pdoc.getElementById("_spaw_start_container")); pdoc.getElementById("_spaw_end_container").parentNode.removeChild(pdoc.getElementById("_spaw_end_container")); } else { // control range this._in_selection = true; this.selectionNodeWalk(sel(0), null, func); } } SpawEditor.prototype._in_selection; SpawEditor.prototype.selectionNodeWalk = function(node, rng, func) { if (this._in_selection || (node.nodeType == 1 && (node.id == '_spaw_start_container' || node.id == '_spaw_end_container'))) { if (node.nodeType != 1 || (node.id != '_spaw_start_container' && node.id != '_spaw_end_container')) func(node, null, null); if (node.nodeType == 1 && node.id == '_spaw_end_container') this._in_selection = false; else this._in_selection = true; } if (node.childNodes && node.childNodes.length>0) { for (var i=0; i
0 && sel.innerHTML != pnode.outerHTML) // setting class on a new snippet { if (cssClass != '') sel.className = cssClass; if (styleName != '') sel.style.setAttribute(styleName, styleValue, 0); this.insertNodeAtSelection(sel); } else if (sel.innerHTML.length == 0) // empty selection, set class on the parent { if (pnode && pnode.tagName.toLowerCase() != "body") { if (cssClass != '') pnode.className = cssClass; if (styleName != '') pnode.style.setAttribute(styleName, styleValue, 0); } else // parent is body { sel.innerHTML = pnode.innerHTML; if (cssClass != '') sel.className = cssClass; if (styleName != '') sel.style.setAttribute(styleName, styleValue, 0); pnode.innerHTML = sel.outerHTML; } } else // changing class on an element { if (cssClass != '') pnode.className = cssClass; if (styleName != '') pnode.style.setAttribute(styleName, styleValue, 0); } } } // removes style from selection SpawEditor.prototype.removeStyleFromSelection = function(cssClass, styleName) { this.focus(); var pnode = this.getSelectionParent(); if (cssClass) { while(pnode && pnode.tagName.toLowerCase() != "body" && (!pnode.className || pnode.className == "")) { pnode = pnode.parentNode; } if (pnode && pnode.tagName.toLowerCase() != "body") { pnode.removeAttribute("class"); pnode.removeAttribute("className"); } } if (styleName) { while(pnode && pnode.tagName.toLowerCase() != "body" && !pnode.style.getAttribute(styleName)) { pnode = pnode.parentNode; } if (pnode && pnode.tagName.toLowerCase() != "body") { pnode.style.removeAttribute(styleName); } } }