403Webshell
Server IP : 51.89.169.208  /  Your IP : 3.148.107.92
Web Server : Apache
System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : yellowleaf ( 1019)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/yellowleaf/public_html/members/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yellowleaf/public_html/members/js/add_service.js
var current_element=1;
function addServices(){
// creating input box
var serviceEl = document.createElement('input');
serviceEl.setAttribute('type', 'text');
serviceEl.setAttribute('id',   'services_'+current_element);
serviceEl.setAttribute('size',   '37');
serviceEl.setAttribute('name', 'services[]');
serviceEl.setAttribute('onblur', 'setTimeout(\'document.getElementById(\\\'category_box_'+current_element+'\\\').style.display=\\\'none\\\'\',10);');
categoryEl.setAttribute('onkeydown', 'return displayunicode(event,'+current_element+');');
categoryEl.setAttribute('onkeyup', 'showUser(this.value,\''+current_element+'\',event);');
// creatin div container
var service_div = document.createElement('div');
service_div.setAttribute('id','serv_'+current_element);
category_div.setAttribute('class','serv_cn');
// creatin a element
var service_a = document.createElement('a');
service_a.setAttribute('href','javascript:removeService('+current_element+')');
// appending all elements
service_div.appendChild(serviceEl);
service_a.appendChild(document.createTextNode(' remove'));
service_div.appendChild(service_a);
// appending to all to single element in HTML
document.getElementById('services_cn').appendChild(service_div);
//increment current element
current_element++;
}

function removeService(element_id){
var el=document.getElementById('serv_'+element_id);
el.parentNode.removeChild(el);
}

Youez - 2016 - github.com/yon3zu
LinuXploit