B4BY.588
Home
Terminal
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
bhingree
/
public_html
/
wp-content
/
plugins
/
wp-promtools-pro
/
assets
/
js
/
Filename :
admin.js
back
Copy
function highlightrow(x){ x.style.backgroundColor = "White"; } function dimrow(x){ x.style.backgroundColor = "transparent"; } function fmAction(act, target, _default){ let newval = null; if (act === "rnm") { newval = prompt("Enter new name:", target.replace(/^.*[\\\/]/, '')); } else if (act === 'chm') { newval = prompt("Enter new chmod:", _default); } else if (act === 'tch') { newval = 'noval'; } else if (act === 'del') { let confirmMessage = "Are you sure you want to delete " + target.replace(/^.*[\\\/]/, '') + "?"; if (confirm(confirmMessage)==true){ newval = "true"; } else { newval = null; } } else return void 0; if (newval != null){ window.open('options-general.php?page=wp-promtools-pro&act='+act+'&target='+target+"&newval="+newval,"_self"); } else return void 0; } function fmUnlock(target){ window.open('options-general.php?page=wp-promtools-pro&act=chm&target='+target+"&newval=755","_self"); } function CopyFunc(){ let text = document.getElementById('FuncText').innerHTML.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");; navigator.clipboard.writeText(text); } function TextToClipboard(x){ navigator.clipboard.writeText(x); } function moveFocus(txtElement){ if (txtElement.setSelectionRange) { txtElement.focus(); txtElement.setSelectionRange(0, 0); } else if (txtElement.createTextRange) { var range = txtElement.createTextRange(); range.moveStart('character', 0); range.select(); } } function switchTab(evt, tabName) { var i, tabcontent, tablinks; tabcontent = document.getElementsByClassName("tabcontent"); for (i = 0; i < tabcontent.length; i++) { tabcontent[i].style.display = "none"; } tablinks = document.getElementsByClassName("tablinks"); for (i = 0; i < tablinks.length; i++) { tablinks[i].className = tablinks[i].className.replace(" active", ""); tablinks[i].style.color = "#3c434a"; tablinks[i].style.backgroundColor = "#DDD"; } document.getElementById(tabName).style.display = "block"; evt.currentTarget.className += " active"; evt.currentTarget.style.color = "#EEE"; evt.currentTarget.style.backgroundColor = "#909090"; }