3298
правок
Изменения
м
#footer-info-lastmod /* Размещённый здесь код JavaScript будет загружаться только участникам, имеющим статус администраторов (sysops) */jQuery(document).ready(function($) {display: block;} if(!$("body").hasClass("action-edit textarea#wpTextbox1 ")) return; var cursor; window.onload = init_cursor; function init_cursor() { $("#cursor").css("left: -1000px", "0px"); position: absolute; }}.cursor function nl2br(txt) { font-size: 12px return txt.replace(/\n/g, "<br />"); background-color: blue; } function writeit(from, e) { color: blue e = e || window.event; position: relative var w = $("writer"); opacity: 0 var tw = from.5value; height: 1 w.5eminnerHTML = nl2br(tw); width: 3px; } function moveIt(count, e) { max-width: 3px e = e || window.event; overflow: hidden var keycode = e.keyCode || e.which; text if (keycode === 37 && parseInt(cursor.style.left) >= (0 -indent: ((count -5px;1) * 10))) { display: inline cursor.style.left = parseInt(cursor.style.left) -block10 + "px"; text-decoration: blink } else if (keycode === 39 && (parseInt(cursor.style.left) + 10) <= 0) { cursor.style.left = parseInt(cursor.style.left) + 10 + "px"; animation: blinker 1s linear infinite; } } var terminal = $("<div id='terminal'></div>"); var textBox = $("textarea#wpTextbox1"); var parent = textBox.parent(); parent.append(terminal {); margin: 8px /*textBox.appendTo(terminal); terminal.append('<div id="getter"><span id="writer"></span><b class="cursor" id="cursor: text">B</b></div>'); height: 500px; terminal.on("click", function(e) { overflow: auto $("textarea#wpTextbox1").focus(); });#writer textBox.on("keydown", function(e) { font-family: cursor writeit(this, couriere); font-weight: bold moveIt(this.value.length, e); });#getter textBox.on("keypress keyup", function(e) { margin: 5px writeit(e); });*/@keyframes blinker { 50% { opacity: 0 console.0log("I'm work!"); }});
Нет описания правки