1
0
Fork 0
mirror of https://github.com/Oreolek/gamebookformat.git synced 2024-06-26 03:41:04 +03:00

Added option (-o static) to make static HTML output.

This commit is contained in:
Pelle Nilsson 2013-06-29 22:21:06 +02:00
parent 600728e793
commit d92b5847d4
16 changed files with 65 additions and 64 deletions

View file

@ -53,7 +53,7 @@ href="#section3">3</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(1, document.getElementById('section1'));
}
</script><div class="section" id="section2">
@ -63,7 +63,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(2, document.getElementById('section2'));
}
</script><div class="section" id="section3">
@ -74,7 +74,7 @@ href="#section2">2</a>. This section has an image to show the syntax for doing t
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(3, document.getElementById('section3'));
}
</script><div class="section" id="section4">
@ -86,7 +86,7 @@ href="#section3">3</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(4, document.getElementById('section4'));
}
</script> <div id="counters" class="counters">

View file

@ -41,7 +41,7 @@ href="#section2">2</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(1, document.getElementById('section1'));
}
</script><div class="section" id="section2">
@ -53,7 +53,7 @@ href="#section9">9</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(2, document.getElementById('section2'));
}
</script><div class="section" id="section3">
@ -63,7 +63,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(3, document.getElementById('section3'));
}
</script><div class="section" id="section4">
@ -77,7 +77,7 @@ href="#section8">8</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(4, document.getElementById('section4'));
}
</script><div class="section" id="section5">
@ -87,7 +87,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(5, document.getElementById('section5'));
}
</script><div class="section" id="section6">
@ -100,7 +100,7 @@ href="#section4">4</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(6, document.getElementById('section6'));
}
</script><div class="section" id="section7">
@ -113,7 +113,7 @@ href="#section1">1</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(7, document.getElementById('section7'));
}
</script><div class="section" id="section8">
@ -125,7 +125,7 @@ href="#section4">4</a> (xor test).
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(8, document.getElementById('section8'));
}
</script><div class="section" id="section9">
@ -140,7 +140,7 @@ href="#section4">4</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(9, document.getElementById('section9'));
}
</script> <div id="counters" class="counters">

View file

@ -53,7 +53,7 @@ href="#section6">6</a> to lose some Life Points.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(1, document.getElementById('section1'));
}
</script><div class="section" id="section2">
@ -63,7 +63,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(2, document.getElementById('section2'));
}
</script><div class="section" id="section3">
@ -74,7 +74,7 @@ href="#section7">7</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(3, document.getElementById('section3'));
}
</script><div class="section" id="section4">
@ -85,7 +85,7 @@ href="#section7">7</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(4, document.getElementById('section4'));
}
</script><div class="section" id="section5">
@ -98,7 +98,7 @@ href="#section6">6</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(5, document.getElementById('section5'));
}
</script><div class="section" id="section6">
@ -110,7 +110,7 @@ href="#section7">7</a> to get some Gold.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(6, document.getElementById('section6'));
}
</script><div class="section" id="section7">
@ -129,7 +129,7 @@ href="#section4">4</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(7, document.getElementById('section7'));
}
</script> <div id="counters" class="counters">

View file

@ -53,7 +53,7 @@ href="#section3">3</a>. <img src="testimage.png" class="sectionimage"></img>
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(1, document.getElementById('section1'));
}
</script><div class="section" id="section2">
@ -63,7 +63,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(2, document.getElementById('section2'));
}
</script><div class="section" id="section3">
@ -73,7 +73,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(3, document.getElementById('section3'));
}
</script> <div id="counters" class="counters">

View file

@ -44,7 +44,7 @@ href="#section2">2</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(1, document.getElementById('section1'));
}
</script><div class="section" id="section2">
@ -59,7 +59,7 @@ href="#section7">7</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(2, document.getElementById('section2'));
}
</script><div class="section" id="section3">
@ -69,7 +69,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(3, document.getElementById('section3'));
}
</script><div class="section" id="section4">
@ -80,7 +80,7 @@ href="#section3">3</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(4, document.getElementById('section4'));
}
</script><div class="section" id="section5">
@ -93,7 +93,7 @@ href="#section3">3</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(5, document.getElementById('section5'));
}
</script><div class="section" id="section6">
@ -107,7 +107,7 @@ href="#section12">12</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(6, document.getElementById('section6'));
}
</script><div class="section" id="section7">
@ -121,7 +121,7 @@ href="#section12">12</a> either way.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(7, document.getElementById('section7'));
}
</script><div class="section" id="section8">
@ -133,7 +133,7 @@ href="#section12">12</a> to confirm stick can not be picked up again even if the
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(8, document.getElementById('section8'));
}
</script><div class="section" id="section9">
@ -149,7 +149,7 @@ href="#section8">8</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(9, document.getElementById('section9'));
}
</script><div class="section" id="section10">
@ -161,7 +161,7 @@ href="#section5">5</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(10, document.getElementById('section10'));
}
</script><div class="section" id="section11">
@ -174,7 +174,7 @@ href="#section12">12</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(11, document.getElementById('section11'));
}
</script><div class="section" id="section12">
@ -192,7 +192,7 @@ href="#section9">9</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(12, document.getElementById('section12'));
}
</script> <div id="counters" class="counters">

View file

@ -39,7 +39,7 @@
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(1, document.getElementById('section1'));
}
</script> <div id="counters" class="counters">

View file

@ -49,7 +49,7 @@ href="#section399">399</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(1, document.getElementById('section1'));
}
</script><div class="section" id="section397">
@ -59,7 +59,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(397, document.getElementById('section397'));
}
</script><div class="section" id="section398">
@ -69,7 +69,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(398, document.getElementById('section398'));
}
</script><div class="section" id="section399">
@ -82,7 +82,7 @@ href="#section398">398</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(399, document.getElementById('section399'));
}
</script><div class="section" id="section400">
@ -93,7 +93,7 @@ href="#section397">397</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(400, document.getElementById('section400'));
}
</script> <div id="counters" class="counters">

View file

@ -65,7 +65,7 @@ href="#section2">2</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(1, document.getElementById('section1'));
}
</script><div class="section" id="section2">
@ -75,7 +75,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(2, document.getElementById('section2'));
}
</script> <div id="counters" class="counters">

View file

@ -40,7 +40,7 @@ href="#section6">6</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(1, document.getElementById('section1'));
}
</script><div class="section" id="section2">
@ -50,7 +50,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(2, document.getElementById('section2'));
}
</script><div class="section" id="section3">
@ -60,7 +60,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(3, document.getElementById('section3'));
}
</script><div class="section" id="section5">
@ -70,7 +70,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(5, document.getElementById('section5'));
}
</script><div class="section" id="section6">
@ -80,7 +80,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(6, document.getElementById('section6'));
}
</script> <div id="counters" class="counters">

View file

@ -42,7 +42,7 @@ href="#section2">2</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(1, document.getElementById('section1'));
}
</script><div class="section" id="section2">
@ -53,7 +53,7 @@ href="#section4">4</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(2, document.getElementById('section2'));
}
</script><div class="section" id="section3">
@ -63,7 +63,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(3, document.getElementById('section3'));
}
</script><div class="section" id="section4">
@ -75,7 +75,7 @@ href="#section2">2</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(4, document.getElementById('section4'));
}
</script><div class="section" id="section5">
@ -86,7 +86,7 @@ href="#section3">3</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(5, document.getElementById('section5'));
}
</script> <div id="counters" class="counters">

View file

@ -42,7 +42,7 @@ href="#section8">8</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(1, document.getElementById('section1'));
}
</script><div class="section" id="section2">
@ -52,7 +52,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(2, document.getElementById('section2'));
}
</script><div class="section" id="section3">
@ -63,7 +63,7 @@ href="#section5">5</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(3, document.getElementById('section3'));
}
</script><div class="section" id="section4">
@ -73,7 +73,7 @@ if (this.gamebook) {
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(4, document.getElementById('section4'));
}
</script><div class="section" id="section5">
@ -85,7 +85,7 @@ href="#section2">2</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(5, document.getElementById('section5'));
}
</script><div class="section" id="section6">
@ -98,7 +98,7 @@ href="#section2">2</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(6, document.getElementById('section6'));
}
</script><div class="section" id="section7">
@ -109,7 +109,7 @@ href="#section4">4</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(7, document.getElementById('section7'));
}
</script><div class="section" id="section8">
@ -120,7 +120,7 @@ href="#section6">6</a>.
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(8, document.getElementById('section8'));
}
</script> <div id="counters" class="counters">

View file

View file

@ -4,7 +4,7 @@
<meta charset='utf-8'>
#include "viewport"
<title>%(title)s</title>
<script type="text/javascript" src="gamebookformatplay.js"></script>
#include "script"
<link rel="stylesheet" href="gamebookformat.css"
type="text/css" />
<script>

View file

@ -0,0 +1 @@
<script type="text/javascript" src="gamebookformatplay.js"></script>

View file

@ -5,7 +5,7 @@
</div>
</div>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.addSection(%(nr)d, document.getElementById('section%(nr)d'));
}
</script>

View file

@ -1,6 +1,6 @@
<span class="itemtake">%(inner)s</span>
<script>
if (this.gamebook) {
if (typeof gamebook !== 'undefined') {
gamebook.takeItem(%(nr)d, "%(inner)s");
}
</script>