diff --git a/.gitignore b/.gitignore index f47ff2a..8addb9e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /index.html *.swp +/chapters.json diff --git a/01-Wake_Up-Jack_intro.html b/01-Wake_Up-Jack_intro.html index a1ef278..c90919c 100644 --- a/01-Wake_Up-Jack_intro.html +++ b/01-Wake_Up-Jack_intro.html @@ -1,4 +1,4 @@ - Wake Up!
<
+ Wake Up!

Wake Up!

@@ -174,4 +174,4 @@ $ █ Welp, that's that.

- + diff --git a/02-Unlikely_Encounter-Annie-intro.html b/02-Unlikely_Encounter-Annie-intro.html index c2838ce..e3edd39 100644 --- a/02-Unlikely_Encounter-Annie-intro.html +++ b/02-Unlikely_Encounter-Annie-intro.html @@ -1,4 +1,4 @@ - Unlikely Encounter
<
+ Unlikely Encounter

Unlikely Encounter

@@ -371,4 +371,4 @@ AgriWorks Login: █ listening.

- + diff --git a/03-A_Simple_Errand-Annie_library.html b/03-A_Simple_Errand-Annie_library.html index ab6d47f..7bdde1c 100644 --- a/03-A_Simple_Errand-Annie_library.html +++ b/03-A_Simple_Errand-Annie_library.html @@ -1,4 +1,4 @@ - A Simple Errand
<
+ A Simple Errand

A Simple Errand

@@ -79,4 +79,4 @@ tonight.

- + diff --git a/04-Return_Null.html b/04-Return_Null.html index f542549..b9bb611 100644 --- a/04-Return_Null.html +++ b/04-Return_Null.html @@ -1,4 +1,4 @@ - Rerturn Null
<
+ Rerturn Null

Return Null

@@ -143,4 +143,4 @@ o×· o ,× ., * o · '+, '* o '+, . ..

- + diff --git a/05-Internet_Saboteur.html b/05-Internet_Saboteur.html index aeb5f41..5c77a19 100644 --- a/05-Internet_Saboteur.html +++ b/05-Internet_Saboteur.html @@ -1,4 +1,4 @@ - Internet Saboteur
<
+ Internet Saboteur

Internet Saboteur

@@ -143,4 +143,4 @@ I could go. Anyone want to help me with this?

- + diff --git a/07-Library_At_Night.html b/07-Library_At_Night.html index fe07018..22f40cf 100644 --- a/07-Library_At_Night.html +++ b/07-Library_At_Night.html @@ -1,4 +1,4 @@ - Library At Night
<
+ Library At Night

Library At Night

@@ -174,4 +174,4 @@ I don't think he expects us to have a getaway vehicle...

- + diff --git a/deployment-script.sh b/deployment-script.sh index 836dfb9..e4563e5 100755 --- a/deployment-script.sh +++ b/deployment-script.sh @@ -11,8 +11,21 @@ function genlinks { done } +function genjson { + echo -n '{"pages":[' + { for FILE in $(find . -maxdepth 1 -type f -name "??-*.html" | sort); do + echo "$FILE" >&2 + echo -n "\"$FILE\"," + done } | sed -e 's/.$//' + echo "]}" +} + +echo "Generating landing page..." >&2 sed -ne '/ /q;p' html_resources/index_template.html > index.html # for some fucking reason, there is no way to tell wc to only print the number so we do cat abuse to get rid of the filename LINE_NUMBER=$(("$(cat index.html | wc -l)"+2)) genlinks >> index.html tail -n+$LINE_NUMBER html_resources/index_template.html >> index.html + +echo "Generating chapters JSON..." >&2 +genjson > chapters.json diff --git a/ea-RTFM.html b/ea-RTFM.html index 5b96d9c..b7459a1 100644 --- a/ea-RTFM.html +++ b/ea-RTFM.html @@ -1,4 +1,4 @@ - RTFM
<
+ RTFM

RTFM

@@ -167,4 +167,4 @@ Loading FPU Test... Result: FAIL - + diff --git a/fa-open_up.html b/fa-open_up.html index 77d43e3..166cdad 100644 --- a/fa-open_up.html +++ b/fa-open_up.html @@ -1,4 +1,4 @@ - Open Up!
<
+ Open Up!

Open Up!

@@ -62,4 +62,4 @@ overgrown with large bushes. He pushes the leaves aside and

- + diff --git a/ga-Who_Died_Today-Emily_intro.html b/ga-Who_Died_Today-Emily_intro.html index 6cf41ee..f0abd5d 100644 --- a/ga-Who_Died_Today-Emily_intro.html +++ b/ga-Who_Died_Today-Emily_intro.html @@ -1,4 +1,4 @@ - Who died today?
<
+ Who died today?

Who Died Today?

@@ -52,4 +52,4 @@ They place the coffin on the ground and start digging away at its sides, slowly sinking it into the ground.

- + diff --git a/html_resources/chapters.json b/html_resources/chapters.json new file mode 100644 index 0000000..158452f --- /dev/null +++ b/html_resources/chapters.json @@ -0,0 +1 @@ +{"pages":["./prev.html","./layout.html","./next.html"]} diff --git a/html_resources/index_template.html b/html_resources/index_template.html index 2cc568b..f784624 100644 --- a/html_resources/index_template.html +++ b/html_resources/index_template.html @@ -43,4 +43,4 @@ - + diff --git a/html_resources/layout.html b/html_resources/layout.html index 57ce9d4..729076c 100644 --- a/html_resources/layout.html +++ b/html_resources/layout.html @@ -16,7 +16,7 @@
- < +

Layout Test Page

@@ -151,7 +151,7 @@ o · , o . · · . * , . . o×· o ,× ., * o · '+, '* o '+, . .. ·' · · . + . . ' . . . + · +* ' ·' + . .+

diff --git a/html_resources/style.css b/html_resources/style.css index 3444cd6..63fe3d3 100644 --- a/html_resources/style.css +++ b/html_resources/style.css @@ -233,14 +233,34 @@ span.blur { display: inline-block; } -div.home { +div.home, div.next, div.prev { font-size: 2.8em; - width: 1.3em; height: 1.3em; position: fixed; top: 0.4em; } -div.home a { +div.home { + width: 1.3em; +} +div.prev { + width:0.6em; + left: calc(100% - 1.3em); +} +div.next { + width:0.6em; + left: calc(100% - 0.6em); +} +@media screen and (min-width: 48rem) { + div.prev { + width:0.6em; + left: calc(95% - 1.3em); + } + div.next { + width:0.6em; + left: calc(95% - 0.6em); + } +} +div.home a, div.next a, div.prev a { color: black; text-decoration: none; text-align: center; @@ -248,12 +268,23 @@ div.home a { height: 100%; display: block; border-radius: 0.3rem; - border: 1.2px solid #97979a; + outline: 1.2px solid #97979a; background: #e9e9ed; } -div.home a:hover { +div.home p, div.next p, div.prev p { + color: #f3f0f8; + text-decoration: none; + text-align: center; + width: 100%; + height: 100%; + display: block; + border-radius: 0.3rem; + outline: 1.2px solid #97979a; + background: #ced0d6; +} +div.home a:hover, div.next a:hover, div.prev a:hover { background: #d0d0d7; - border: 1.2px solid #86868f; + outline: 1.2px solid #86868f; } .comment { diff --git a/html_resources/template.html b/html_resources/template.html index 5e2b2e3..d34070f 100644 --- a/html_resources/template.html +++ b/html_resources/template.html @@ -1,2 +1,2 @@ - Chapter Name
<
- + Chapter Name
+ diff --git a/ja-erosion-michelle_wakeup.html b/ja-erosion-michelle_wakeup.html index 3776085..17374a0 100644 --- a/ja-erosion-michelle_wakeup.html +++ b/ja-erosion-michelle_wakeup.html @@ -1,4 +1,4 @@ - Erosion
<
+ Erosion

Erosion

@@ -153,4 +153,4 @@ in pieces down below.

- + diff --git a/jc-night_watch.html b/jc-night_watch.html index c17033d..90eff50 100644 --- a/jc-night_watch.html +++ b/jc-night_watch.html @@ -1,4 +1,4 @@ - Night Watch
<
+ Night Watch

Night Watch

@@ -103,4 +103,4 @@ which is not part of the story. -->

- + diff --git a/ka-I_Like_Trains-finding_the_train.html b/ka-I_Like_Trains-finding_the_train.html index a5c1803..ba1a8f4 100644 --- a/ka-I_Like_Trains-finding_the_train.html +++ b/ka-I_Like_Trains-finding_the_train.html @@ -1,4 +1,4 @@ - I Like Trains
<
+ I Like Trains

I Like Trains

@@ -130,4 +130,4 @@ well planned, Mr infrastructure guy.

Let's go find a truck.

- + diff --git a/km-ran_when_parked.html b/km-ran_when_parked.html index 497bcdc..b1b036c 100644 --- a/km-ran_when_parked.html +++ b/km-ran_when_parked.html @@ -1,4 +1,4 @@ - Ran When Parked
<
+ Ran When Parked

Ran When Parked

@@ -148,4 +148,4 @@ going with this so I'll just leave it in here, commented out. is met with a lot of hissing from underneath the train, but nothing else happens.

- + diff --git a/ma-Escape-from_dome_city.html b/ma-Escape-from_dome_city.html index 99ee072..fe2d9b1 100644 --- a/ma-Escape-from_dome_city.html +++ b/ma-Escape-from_dome_city.html @@ -1,4 +1,4 @@ - Escape
<
+ Escape

Escape

@@ -213,4 +213,4 @@ operations.
The train rolls out of the second tunnel and they find themselves in a station.

- + diff --git a/mb-First_Steps_Outside.html b/mb-First_Steps_Outside.html index bee9175..9a21272 100644 --- a/mb-First_Steps_Outside.html +++ b/mb-First_Steps_Outside.html @@ -1,4 +1,4 @@ - First Steps Outside
<
+ First Steps Outside

First Steps Outside

@@ -133,4 +133,4 @@ They make their way across the fast-flowing river by stepping on large stones in the water, and continue through the bushes towards the bunker.

- + diff --git a/mc-welcome_home.html b/mc-welcome_home.html index c0b2622..aee159d 100644 --- a/mc-welcome_home.html +++ b/mc-welcome_home.html @@ -1,4 +1,4 @@ - Welcome Home
<
+ Welcome Home

Welcome Home

@@ -140,4 +140,4 @@ While eating, they discuss their mission.

- + diff --git a/na-Telescope.html b/na-Telescope.html index 310af67..36f7655 100644 --- a/na-Telescope.html +++ b/na-Telescope.html @@ -1,4 +1,4 @@ - Telescope
<
+ Telescope

Telescope

@@ -113,4 +113,4 @@ too much time there. Then, they go into the radome.

- + diff --git a/oa-Lab_Rat-Emily_lab_incident.html b/oa-Lab_Rat-Emily_lab_incident.html index b28ff1a..68b0b50 100644 --- a/oa-Lab_Rat-Emily_lab_incident.html +++ b/oa-Lab_Rat-Emily_lab_incident.html @@ -1,4 +1,4 @@ - Lab Rat
<
+ Lab Rat

Lab Rat

@@ -71,4 +71,4 @@ dark again. The next time she regains awareness is while throwing up in her bed. She gasps for air, and drifts away into unconsciousness.

- + diff --git a/pa-Bare_Necessities.html b/pa-Bare_Necessities.html index 0247c61..378fed2 100644 --- a/pa-Bare_Necessities.html +++ b/pa-Bare_Necessities.html @@ -1,4 +1,4 @@ - Bare Necessities
<
+ Bare Necessities

Bare Necessities

@@ -158,4 +158,4 @@ Missing: explanation, they go to car, Mary sits in the front with Jack

- + diff --git a/pb-Fine_Print.html b/pb-Fine_Print.html index ac49336..e89b243 100644 --- a/pb-Fine_Print.html +++ b/pb-Fine_Print.html @@ -1,4 +1,4 @@ - Fine Print
<
+ Fine Print

Fine Print

@@ -74,4 +74,4 @@ -->

- + diff --git a/ph-diesel_creek.html b/ph-diesel_creek.html index 467741b..5625fb2 100644 --- a/ph-diesel_creek.html +++ b/ph-diesel_creek.html @@ -1,4 +1,4 @@ - Diesel Creek
<
+ Diesel Creek

Diesel Creek

@@ -120,4 +120,4 @@

- + diff --git a/pk--lena_first_contact.html b/pk--lena_first_contact.html index d9f7ed5..9b20b47 100644 --- a/pk--lena_first_contact.html +++ b/pk--lena_first_contact.html @@ -1,4 +1,4 @@ - <Lena first contact>
<
+ <Lena first contact>

<Lena first contact>

@@ -186,4 +186,4 @@ something along the lines of "everyone is dead"

- + diff --git a/pm--emily_wake_up_again.html b/pm--emily_wake_up_again.html index 629d323..446bbda 100644 --- a/pm--emily_wake_up_again.html +++ b/pm--emily_wake_up_again.html @@ -1,4 +1,4 @@ - <Emily wake up again>
<
+ <Emily wake up again>

<Emily wake up again>

@@ -46,4 +46,4 @@

- + diff --git a/qa-Overdue_Maintenence-power_station.html b/qa-Overdue_Maintenence-power_station.html index 5db88c9..214a248 100644 --- a/qa-Overdue_Maintenence-power_station.html +++ b/qa-Overdue_Maintenence-power_station.html @@ -1,4 +1,4 @@ - Overdue Maintenence
<
+ Overdue Maintenence

Overdue Maintenance

@@ -219,4 +219,4 @@ –
Thanks.

- + diff --git a/qb-Banished.html b/qb-Banished.html index c1aadaf..1d25766 100644 --- a/qb-Banished.html +++ b/qb-Banished.html @@ -1,4 +1,4 @@ - Banished
<
+ Banished

Banished

@@ -121,4 +121,4 @@ into account.

- + diff --git a/qc-the_floor_is_water.html b/qc-the_floor_is_water.html index e280c73..b087e7b 100644 --- a/qc-the_floor_is_water.html +++ b/qc-the_floor_is_water.html @@ -1,4 +1,4 @@ - The Floor Is Water
<
+ The Floor Is Water

The Floor Is Water

@@ -94,4 +94,4 @@ exploring the warehouse, they find a forklift and a railroad in the back

- + diff --git a/ra--Emily_first_contact.html b/ra--Emily_first_contact.html index 9f23bd0..4eceb4a 100644 --- a/ra--Emily_first_contact.html +++ b/ra--Emily_first_contact.html @@ -1,4 +1,4 @@ - <Emily First Contact>
<
+ <Emily First Contact>

<Emily First Contact>

@@ -86,4 +86,4 @@

- + diff --git a/ta-consulting-no_u_dont_have_train.html b/ta-consulting-no_u_dont_have_train.html index 262cd7e..02d9529 100644 --- a/ta-consulting-no_u_dont_have_train.html +++ b/ta-consulting-no_u_dont_have_train.html @@ -1,4 +1,4 @@ - Consulting
<
+ Consulting

Consulting

@@ -134,4 +134,4 @@ with parts harvested from the IV train yard -->

- + diff --git a/va-Alone-Lena_death.html b/va-Alone-Lena_death.html index e58605a..8aa5a43 100644 --- a/va-Alone-Lena_death.html +++ b/va-Alone-Lena_death.html @@ -1,4 +1,4 @@ - Alone
<
+ Alone

Alone

@@ -109,4 +109,4 @@ before this. It has panorama windows to all sides and a ceiling of large glass panels.

- + diff --git a/vb--Emily_incoming_call.html b/vb--Emily_incoming_call.html index be33fb5..2cda158 100644 --- a/vb--Emily_incoming_call.html +++ b/vb--Emily_incoming_call.html @@ -1,4 +1,4 @@ - <Emily incoming call>
<
+ <Emily incoming call>

<Emily incoming call>

@@ -87,4 +87,4 @@ Ding! MICHELLE @ EARTH-53 > Hello again. - + diff --git a/za--story-end-outline.html b/za--story-end-outline.html index 15d9f9d..d2732e7 100644 --- a/za--story-end-outline.html +++ b/za--story-end-outline.html @@ -1,4 +1,4 @@ - <Story End Outline>
<
+ <Story End Outline>

<Story End Outline>

This is not intended to be a chapter. It's more of an overview for @@ -46,4 +46,4 @@ the events of zz*.html -

+ diff --git a/zb-Pancakes-reaching_nova_metropolis.html b/zb-Pancakes-reaching_nova_metropolis.html index 5961a76..492858a 100644 --- a/zb-Pancakes-reaching_nova_metropolis.html +++ b/zb-Pancakes-reaching_nova_metropolis.html @@ -1,4 +1,4 @@ - Pancakes
<
+ Pancakes

Pancakes

@@ -76,4 +76,4 @@ The engine roars as she accelerates the bus and they continue their way.

- + diff --git a/zd-Nova_Metropolis.html b/zd-Nova_Metropolis.html index 728714a..8ce2c12 100644 --- a/zd-Nova_Metropolis.html +++ b/zd-Nova_Metropolis.html @@ -1,4 +1,4 @@ - Nova Metropolis
<
+ Nova Metropolis

Nova Metropolis

@@ -104,4 +104,4 @@ Yes, it is. Make this clear when Jack picks it up.

- + diff --git a/zy-Landing_Troubles.html b/zy-Landing_Troubles.html index 0c581eb..6fde5b9 100644 --- a/zy-Landing_Troubles.html +++ b/zy-Landing_Troubles.html @@ -1,4 +1,4 @@ - Landing Troubles
<
+ Landing Troubles

Landing Troubles

@@ -31,4 +31,4 @@ flips the switch off and on again. Nononononooo...

- + diff --git a/zz--end.html b/zz--end.html index f655cea..b3b7678 100644 --- a/zz--end.html +++ b/zz--end.html @@ -1,4 +1,4 @@ - <End>
<
+ <End>

<End>

@@ -90,4 +90,4 @@ anything to happen after this though I have managed to somehow already write about an event after this in ??.txt.

- +