تست آنلاین کد
' +
'' +
'' +
'' +
'
' +
'
' +
'';
var defaultStuff = '
(تست آنلاین کد (وب گراف
n' +
'
بعد از این خط کد خود را وارد کنید و اندکی صبر کنید تا نمایش داده شود
';
// I don't want this stuff to appear in the box at the top because I feel it's likely to be distracting.
var extraStuff = '
';
var old = '';
function init()
{
window.editbox.document.write(editboxHTML);
window.editbox.document.close();
window.editbox.document.f.ta.value = defaultStuff;
update();
}
function update()
{
var textarea = window.editbox.document.f.ta;
var d = dynamicframe.document;
if (old != textarea.value) {
old = textarea.value;
d.open();
d.write(old);
if (old.replace(/[rn]/g,'') == defaultStuff.replace(/[rn]/g,''))
d.write(extraStuff);
d.close();
}
window.setTimeout(update, 150);
}