User:2004-12-29T22:45Z/simple.js

function CharPalette { var toolbox, charbox, spc;

var toolbox = document.getElementById( 'editpage-specialchars' );

if ( ! toolbox ) return; // not an edit page

charbox = toolbox.getElementsByTagName( 'a' )[ 0 ].parentNode;

function Spc { charbox.appendChild( document.createTextNode( ' ' ) ) } function Rtn { charbox.appendChild( document.createElement( 'br' ) ) } function Chr( n ) { c = String.fromCharCode( n ); var a = document.createElement( 'a' ); a.href = "javascript:insertTags('" + c + "',,)"; a.appendChild( document.createTextNode( c ) ); charbox.appendChild( a ) }

Rtn; Chr( 593 ); Chr( 594 ); Chr( 595 ); Chr( 596 ); Chr( 597 ); Chr( 598 ); Chr( 599 ); Chr( 600 ); Chr( 601 ); Chr( 602 ); } if ( window.addEventListener ) window.addEventListener( 'load', CharPalette, false ); else if ( window.attachEvent ) window.attachEvent( 'onload', CharPalette );