Hackfut Security File Manager
Current Path:
/home/haielekt/pasangac.com/wp-content/plugins/Ghylrock/script-editor
home
/
haielekt
/
pasangac.com
/
wp-content
/
plugins
/
Ghylrock
/
script-editor
/
ð
..
ð
editor-ghyl.js
(2.71 KB)
ð
jquery.min.js
(87.38 KB)
ð
min
ð
monaco.d.ts
(270.98 KB)
ð
style.css
(3.08 KB)
Editing: editor-ghyl.js
// validation settings monaco.languages.typescript.javascriptDefaults.setDiagnosticsOptions({ noSemanticValidation: true, noSyntaxValidation: false }); // compiler options monaco.languages.typescript.javascriptDefaults.setCompilerOptions({ target: monaco.languages.typescript.ScriptTarget.ES6, allowNonTsExtensions: true }); var content1 = $.trim($('#container1').text()); $('#container1').html(''); require(['vs/editor/editor.main'], function () { window.editor1 = monaco.editor.create(document.getElementById('container1'), { value: content1, language: 'javascript', theme: "vs-dark", minimap: { enabled: false, }, wordWrap: "on", automaticLayout: true, }); window.editor1.onDidChangeModelContent((e) => { document.getElementById('dotted-js').style.background="#9bc979"; document.getElementById('notif').innerHTML="Don't forget to save the code!ð "; }); }); var content2 = $.trim($('#container2').text()); $('#container2').html(''); require(['vs/editor/editor.main'], function () { window.editor2 = monaco.editor.create(document.getElementById('container2'), { value: content2, language: 'css', theme: "vs-dark", minimap: { enabled: false, }, wordWrap: "on", automaticLayout: true, }); window.editor2.onDidChangeModelContent((e) => { document.getElementById('dotted-css').style.background="#9bc979"; document.getElementById('notif').innerHTML="Don't forget to save the code!ð "; }); }); $(document).on('keydown', function (e) { if (e.ctrlKey && e.which === 83) { var value1 = window.editor1.getValue(); var value2 = window.editor2.getValue(); document.getElementById('footer-code').innerHTML = value1; document.getElementById('header-code').innerHTML = value2; var form = $('#update-code')[0]; var data = new FormData(form); $.ajax({ type: "POST", enctype: 'multipart/form-data', url: "/wp-content/plugins/Ghylrock/update.php", data: data, processData: false, contentType: false, cache: false, timeout: 800000, success: function () { document.getElementById('dotted-js').style.background= "none"; document.getElementById('dotted-css').style.background= "none"; document.getElementById('notif').innerHTML="Code has been saved!ðĪŠ"; }, error: function (e) { alert("ERROR : ", e); } }); e.preventDefault(); return false; } });
Upload File
Create Folder