Restart Story

@import url(http://fonts.googleapis.com/css?family=Averia+Gruesa+Libre);\n\nbody { \n color: white !important; \n background-color: #1d070d !important;\n width: 95% !important;\n font-size: 0.95em !important;\n font-family: 'Averia Gruesa Libre', cursive;\n margin: 1em 1em 1em 1em;\n overflow-x:hidden;\n}\n\n.passage .title { display: none } \n\n.passage {\n font-size: 2.3em;\n line-height: 120%;\n margin-bottom: 0.85em;\n padding: 0.2em;\n background: transparent;\n color: white;\n}\n\n#sidebar { display: none;}\n\n#storyAuthor{font-size:90%;}\n\n#footer {display: none;}\n\nh1,h3 {\n color: grey;\n text-align:left;\n}\n\na.internalLink,a.externalLink,a.back,a.return {\n color:#deecef;\n font-weight: bold;\n line-height: 140%;\n text-decoration: underline;\n text-align: left;\n font-size: 130%\n}\n\na.internalLink:hover,a.externalLink:hover,a.back:hover,a.return:hover {\n color: #999;\n text-decoration: underline;\n text-align:left;\n}\n\n#floater { display: none; }
<<getFile>>\n<html><div id="add"></div></html>
var XHR = null;\nvar XHR_Response = null;\nvar wordList = null;\n\nfunction checkXHR()\n{\n if (window.XMLHttpRequest)\n { XHR = new window.XMLHttpRequest(); }\n else if (window.ActiveXObject)\n { XHR = new window.ActiveXObject("Microsoft.XMLHTTP"); }\n else { XHR = false; }\n}\n\nfunction handleResponse() \n{\n if (XHR.readyState === 4) \n {\n if (XHR.status === 200) \n {\n XHR_Response = XHR.responseText;\n } \n else \n {\n alert('The XMLHttpRequest could not be made.');\n }\n }\n }\nfunction getFile(url) \n{\n checkXHR();\n if(XHR)\n {\n XHR.onreadystatechange = handleResponse;\n XHR.open('GET',url,false);\n XHR.send();\n }\n else\n {\n alert("This browser does not have the XMlHttpRequest object.");\n }\n}\nfunction writePoetry()\n{\n var poetry = "<pre>";\n for(var k = 0; k < Math.random()*50; k++)\n {\n poetry += "<pre>";\n for(var i = 0; i < Math.random()*50; i++)\n { poetry += " "; }\n\n poetry += wordList[Math.floor(Math.random()*1352)];\n }\n poetry += "</pre>";\n var el = document.createElement("div");\n el.style.position = "absolute";\n el.style.top = Math.floor(Math.random()*500) + "px";\n el.style.left = Math.floor(Math.random()*500) + "px";\n el.style.color = "rgb(" + Math.floor(Math.random()*256) + "," + Math.floor(Math.random()*256) + "," + Math.floor(Math.random()*256) + ")";\n el.style.fontSize = Math.random()*4 + "em";\n el.innerHTML = poetry;\n $("add").appendChild(el);\n}\n\n\nmacros['getFile'] = \n{\n handler: function(place, object, parameters)\n {\n getFile("dwords.txt");\n wordList = XHR_Response.split(" ");\n setInterval(function(){writePoetry()}, 1500);\n }\n}\n
Declension
Dan Cox