if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
if ( location.href.indexOf( 'habrahabr.ru' ) !== -1 ) { var buttons = [ { caption: 'pre' , openTag: '<pre %%%>' , closeTag: '</pre>' }, { caption: 'A' , openTag: '<a href="%%%">' , closeTag: '</a>' , correctTag: function (){ return prompt( " " ); } }, { caption: 'user' , openTag: '<hh user="%%%" />' , correctTag: function (){ return prompt( " " ); } }, { caption: 'img' , openTag: '<img src="%%%" />' , correctTag: function (){ return prompt( " " ); } } ] function addText() { var textarea = $( 'js-field-comment' ); var button = buttons[ event .target.id]; textarea.value += button.openTag.replace( '%%%' , button.correctTag || '' ); if ( button.closeTag ) { textarea.value += button.closeTag; } } function drawButtons() { for ( q = 0; q < buttons.length; q++ ) { var element = buttons[q]; var btn = document .createElement( 'input' ); var textarea = $( 'js-field-comment' ); btn.type = 'button' ; btn.value = element.caption; btn.id = q; btn.onclick = addText; textarea.parentNode.insertBefore( btn, textarea ); } var br = document .createElement( 'br' ); textarea.parentNode.insertBefore( br, textarea ); } document .onload = drawButtons; } * This source code was highlighted with Source Code Highlighter .
Source: https://habr.com/ru/post/72515/
All Articles