⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
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
/
common
/
View File Name :
utils.js
// utility functions function SpawUtils() { } SpawUtils.ltrim = function(txt) { var spacers = " \t\r\n"; while (txt.length>0 && spacers.indexOf(txt.charAt(0)) != -1) { txt = txt.substr(1); } return(txt); } SpawUtils.rtrim = function(txt) { var spacers = " \t\r\n"; while (txt.length>0 && spacers.indexOf(txt.charAt(txt.length-1)) != -1) { txt = txt.substr(0,txt.length-1); } return(txt); } SpawUtils.trim = function(txt) { return(SpawUtils.ltrim(SpawUtils.rtrim(txt))); } SpawUtils.trimLineBreaks = function(txt) { var spacers = "\r\n"; while (txt.length>0 && spacers.indexOf(txt.charAt(txt.length-1)) != -1) { txt = txt.substr(0,txt.length-1); } while (txt.length>0 && spacers.indexOf(txt.charAt(0)) != -1) { txt = txt.substr(1); } return(txt); } SpawUtils.htmlEncode = function(txt) { return txt.replace(/&/gm,'&').replace(//gm, '>').replace(/\u00A0/g, " "); } SpawUtils.getPageOffsetLeft = function(obj) { var elm = obj; x = obj.offsetLeft; while ((elm = elm.offsetParent) != null) { x += elm.offsetLeft; } return x; } SpawUtils.getPageOffsetTop = function(obj) { var elm = obj; y = obj.offsetTop; while ((elm = elm.offsetParent) != null) { y += elm.offsetTop; } return y; }