(set: $typewriter to 'typewriter-start')
(set: $choices to 'choices-start')<script>
function setupTypewriter(t) {
var HTML = t.innerHTML;
t.innerHTML = "";
var cursorPosition = 0,
tag = "",
writingTag = false,
tagOpen = false,
typeSpeed = 30,
tempTypeSpeed = 0;
var type = function() {
if (writingTag === true) {
tag += HTML[cursorPosition];
}
if (HTML[cursorPosition] === "<") {
tempTypeSpeed = 0;
if (tagOpen) {
tagOpen = false;
writingTag = true;
} else {
tag = "";
tagOpen = true;
writingTag = true;
tag += HTML[cursorPosition];
}
}
if (!writingTag && tagOpen) {
tag.innerHTML += HTML[cursorPosition];
}
if (!writingTag && !tagOpen) {
if (HTML[cursorPosition] === " ") {
tempTypeSpeed = 0;
}
else {
tempTypeSpeed = (Math.random() * typeSpeed ) + typeSpeed;
}
t.innerHTML += HTML[cursorPosition];
}
if (writingTag === true && HTML[cursorPosition] === ">") {
tempTypeSpeed = (Math.random() * typeSpeed ) + typeSpeed;
writingTag = false;
if (tagOpen) {
var newSpan = document.createElement("span");
t.appendChild(newSpan);
newSpan.innerHTML = tag;
tag = newSpan.firstChild;
}
}
cursorPosition += 1;
if (cursorPosition < HTML.length - 1) {
setTimeout(type, tempTypeSpeed);
}
};
return {
type: type
};
};
</script><link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet">
(set: $choices to "")
<script>
function setupTypewriter(t) {
var HTML = t.innerHTML;
t.innerHTML = "";
var cursorPosition = 0,
tag = "",
writingTag = false,
tagOpen = false,
typeSpeed = 30,
tempTypeSpeed = 0;
var type = function() {
if (writingTag === true) {
tag += HTML[cursorPosition];
}
if (HTML[cursorPosition] === "<") {
tempTypeSpeed = 0;
if (tagOpen) {
tagOpen = false;
writingTag = true;
} else {
tag = "";
tagOpen = true;
writingTag = true;
tag += HTML[cursorPosition];
}
}
if (!writingTag && tagOpen) {
tag.innerHTML += HTML[cursorPosition];
}
if (!writingTag && !tagOpen) {
if (HTML[cursorPosition] === " ") {
tempTypeSpeed = 0;
}
else {
tempTypeSpeed = (Math.random() * typeSpeed ) + typeSpeed;
}
t.innerHTML += HTML[cursorPosition];
}
if (writingTag === true && HTML[cursorPosition] === ">") {
tempTypeSpeed = (Math.random() * typeSpeed ) + typeSpeed;
writingTag = false;
if (tagOpen) {
var newSpan = document.createElement("span");
t.appendChild(newSpan);
newSpan.innerHTML = tag;
tag = newSpan.firstChild;
}
}
cursorPosition += 1;
if (cursorPosition < HTML.length - 1) {
setTimeout(type, tempTypeSpeed);
}
};
return {
type: type
};
};
</script><div id='typewriter' style='font-size: 20px; font-family: 'VT323', monospace;
'>
(display: $typewriter)
</div>
<div id='choices' style='font-size: 20px; font-family: 'VT323', monospace;
'>
(display: $choices)
</div>[[Who are you?]]
[[Who am I?]]
[[What is this place?]]
[[I'll hear your story.]](set: $typewriter to 'typewriter-choice1')
(set: $choices to 'choices-choice1')[[good choice]]
[[bad choice]]
[[great choice]]
[[terrible choice]]Double-click this passage to edit it.Double-click this passage to edit it.Double-click this passage to edit it.Double-click this passage to edit it.<div id="content">
<span>You must not know for it may alter the experiment.</span>
</div>
<script>
var typer = document.getElementById('content');
typewriter = setupTypewriter(typer);
typewriter.type();
</script><div id="content">
<span>Ah, it is you, his venerated experiment.</span><br>
<span>One who disobeys his rule; Yes, I have waited for you. </span><br>
<span>I have prepared a trial - shall you solve it, I'll decide your fate.</span><br>
<span>But before we begin, let me tell you a story.</span><br>
</div>
<script>
var typer = document.getElementById('content');
typewriter = setupTypewriter(typer);
typewriter.type();
</script><div id="content">
<span>lol</span><br>
</div>
<script>
var typer = document.getElementById('content');
typewriter = setupTypewriter(typer);
typewriter.type();
</script>(set: $typewriter to 'typewriter-who')
(set: $choices to 'choices-who')(set: $typewriter to 'typewriter-who-2')
(set: $choices to 'choices-who-2')(set: $typewriter to 'typewriter-what-1')
(set: $choices to 'choices-what-1')(set: $typewriter to 'typewriter-story')
(set: $choices to 'choices-story')<div id="content">
<span>His noblest work.</span>
</div>
<script>
var typer = document.getElementById('content');
typewriter = setupTypewriter(typer);
typewriter.type();
</script>(link: "Go back")[(goto: "start")]<div id="content">
<span>You thread the grounds of the Trial.</span>
</div>
<script>
var typer = document.getElementById('content');
typewriter = setupTypewriter(typer);
typewriter.type();
</script>(link: "Go back")[(goto: "start")](link: "Go back")[(goto: "start")]Double-click this passage to edit it.<div id="content"><br>
<span>He sat upon His throne, thinking. </span><br>
<span>Behind Him stretched the infinity of light and color, </span><br>
<span>before Him rose the void of night and space. </span><br>
<span>At His feet stood three colossal figures, diminished to extinction by contrast - three archangels. </span><br>
<span>He said, "I have thought. Behold!" - and from His hand burst a legion of suns, soaring away and away, piercing the far frontiers of space. </span><br>
<span>Thus the invention of automatic, unsupervised, self-regulating law was conceived, which ruled the suns and worlds. </span><br>
<span>The law of Nature.</span><br>
<span>The law of Time.</span><br>
<span>The law of God.</span>
</div>
<script>
var typer = document.getElementById('content');
typewriter = setupTypewriter(typer);
typewriter.type();
</script>Press any key to continue...
<script>
document.addEventListener('keypress', logKey);
function logKey(e) {
window.location='intro/intro.html'
}
</script>