<<createBlock "c">>\n
<<createBlock "e">><<set $c to true>>
<<if $c is true>><<createBlock "p">><<else>><<createBlock "a">><<endif>>
<<createBlock "e">><<set $c to false>>
<<createBlock "p">>
try {\n macros['createBlock'] = {\n handler: function(place, macroName, params, parser) {\n\t\tvar charCode = Math.floor(Math.random() * (122 - 97)) + 97;\n\t\tvar coolChar = String.fromCharCode(charCode);\n\t\tvar letter = params[0];// || "$";\n\t\tvar goodChar = coolChar == letter ? " " : coolChar;\n\t\tvar linkX = Math.floor(Math.random() * 15);\n\t\tvar linkY = Math.floor(Math.random() * 22);\n\n\t\tvar greys = ["DimGray","Gray","DarkGray","Gainsboro","Silver"];\n\t\tvar greyNum = Math.floor(Math.random() * 9);\n\n\t\tfor(var i = 0; i < 15; i++) {\n\t\t\tfor (var j = 0; j < 22; j++) {\n\t\t\t\tif (i == linkX && j == linkY){\n\t\t\t\t\tnew Wikifier(place, "[["+letter+"]]");\n\t\t\t\t} else {\n\t\t\t\t\tif(charCode==35 || charCode==42){\n\t\t\t\t\t\tnew Wikifier(place, "\s\s");\n\t\t\t\t\t}\n\t\t\t\t\tnew Wikifier(place, goodChar);\n\t\t\t\t}\n\t\t\t}\n\t\t\tnew Wikifier(place, "\sn");\n\t\t}\n\n\t\taddStyleString('body { background-color: '+greys[greyNum]+' }');\n },\n init: function() { }\n };\n} catch(e) {\n throwError(place,"createBlock Setup Error: "+e.message); \n}\n\nfunction addStyleString(str) {\n var node = document.createElement('style');\n node.innerHTML = str;\n document.body.appendChild(node);\n}
peace
ian martin
body\n{\n\tbackground-color: white;\n\tfont-family: Courier;\n\tmargin: 2%;\n}\n\n#passages\n{\n\tborder: 0;\n\tmargin: 0;\n\tmargin: auto;\n\tpadding: 0;\n\twidth: 65%;\n}\n\n.passage\n{\n\tcolor: black;\n\tfont-size: 4em;\n\tline-height: 90%;\n\ttext-align: center;\n}\n\n.passage a\n{\n\tcolor: #000;\n\tfont-weight: normal;\n}\n\n.passage a:hover\n{\n\tcolor: #777;\n\ttext-decoration: none;\n}\n\n#sidebar\n{\n\tdisplay: none;\n}\n\n.revision-span-in\n{\n\topacity: 0;\n}\n\n.revision-span:not(.revision-span-out)\n{\n\ttransition: 1s;\n\twebkit-transition: 1s;\n}\n\n.revision-span-out\n{\n\topacity: 0;\n\tposition: absolute;\n}