Mister Spy Say ="Hello Kids ... :D"
___ ____ _ _____
| \/ (_) | | / ___|
| . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _
| |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | |
| | | | \__ \ || __/ | /\__/ / |_) | |_| |
\_| |_/_|___/\__\___|_| \____/| .__/ \__, |
| | __/ |
|_| |___/
Bot Mister Spy V3
Mister Spy
Mister Spy
/**
* Theme: Ubold Admin Template
* Author: Coderthemes
* Code Editors page
*/
!function($) {
"use strict";
var CodeEditor = function() {};
CodeEditor.prototype.getSelectedRange = function(editor) {
return { from: editor.getCursor(true), to: editor.getCursor(false) };
},
CodeEditor.prototype.autoFormatSelection = function(editor) {
var range = this.getSelectedRange(editor);
editor.autoFormatRange(range.from, range.to);
},
CodeEditor.prototype.commentSelection = function(isComment, editor) {
var range = this.getSelectedRange(editor);
editor.commentRange(isComment, range.from, range.to);
},
CodeEditor.prototype.init = function() {
var $this = this;
//init plugin
CodeMirror.fromTextArea(document.getElementById("code"), {
mode: {name: "xml", alignCDATA: true},
lineNumbers: true
});
//example 2
CodeMirror.fromTextArea(document.getElementById("code2"), {
mode: {name: "javascript"},
lineNumbers: true,
theme: 'ambiance'
});
//example 3
var editor = CodeMirror.fromTextArea(document.getElementById("code3"), {
mode: {name: "javascript"},
lineNumbers: true,
});
CodeMirror.commands["selectAll"](editor);
//binding controlls
$('.autoformat').click(function(){
$this.autoFormatSelection(editor);
});
$('.commentbtn').click(function(){
$this.commentSelection(true, editor);
});
$('.uncomment').click(function(){
$this.commentSelection(false, editor);
});
},
//init
$.CodeEditor = new CodeEditor, $.CodeEditor.Constructor = CodeEditor
}(window.jQuery),
//initializing
function($) {
"use strict";
$.CodeEditor.init()
}(window.jQuery);
Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat