diff --git a/src/display.js b/src/display.js index 61b0c32..f5ec5d3 100644 --- a/src/display.js +++ b/src/display.js @@ -149,6 +149,13 @@ export class Display { ); target.appendChild(field) + if (state.items.filter(i => i.state != 'face-up').length == 0) { + const a = document.createElement('a') + a.className = 'continue' + a.innerText = 'fertig' + a.href = '/end' + target.appendChild(a) + } if (state.show !== null) { const data = state.items[state.show] const name = data.name @@ -166,6 +173,9 @@ export class Display { `) target.appendChild(wrapper) } + if (state.special) { + target.appendChild(modal(state.special)) + } const dd = new diffDOM.DiffDOM() const diff = dd.diff(this.target, target) diff --git a/src/index.js b/src/index.js index cba1b79..7324105 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,5 @@ import {Display} from './display.js' -import intro from './intro.js' +import {intro, outro} from './texts.js' const state = {items: [], show: null, links: [] } @@ -21,6 +21,10 @@ class Actions { } reset() { state.show = null + state.special = null + } + end() { + state.special = outro } link(from, to) { if (from == to) return false @@ -37,6 +41,8 @@ const dispatch = target => { let ret if (target.action) { ret = actions[target.action](target.from, target.to) + } else if (target === '/end') { + actions.end() } else { const match = target.match(/\/([^/]+)\/([^/]+)/) if (match && Object.hasOwnProperty.call(Actions.prototype, match[2])) { diff --git a/src/intro.js b/src/intro.js deleted file mode 100644 index 3dc3c52..0000000 --- a/src/intro.js +++ /dev/null @@ -1,7 +0,0 @@ -export default `
-Unsichere Arbeits- und Lebensverhältnisse haben viele Gesichter. In diesem Spiel ist es eure Aufgabe, ihr geteiltes Leid aufzudecken. Klickt dafür auf die Symbole und lernt die historischen und heutigen Figuren des Prekariats kennen. Durch das Zusammenziehen der Kreise entdeckt ihr, was die Vergangenheit mit der Gegenwart verknüpft. -
--Ein Netzwerk der Prekären entsteht. -
` diff --git a/src/texts.js b/src/texts.js new file mode 100644 index 0000000..3f7db4d --- /dev/null +++ b/src/texts.js @@ -0,0 +1,10 @@ +export const intro = `+Unsichere Arbeits- und Lebensverhältnisse haben viele Gesichter. In diesem Spiel ist es eure Aufgabe, ihr geteiltes Leid aufzudecken. Klickt dafür auf die Symbole und lernt die historischen und heutigen Figuren des Prekariats kennen. Durch das Zusammenziehen der Kreise entdeckt ihr, was die Vergangenheit mit der Gegenwart verknüpft. +
++Ein Netzwerk der Prekären entsteht. +
` +export const outro = `Aufgrund dieser Konkurrenz, die mitunter genauso rüde ist wie diejenige der Unternehmen untereinander, kommt es zu einem regelrechten Kampf aller gegen alle, der sämtliche Werte der Solidarität und Menschlichkeit zunichte macht, [...].+ +
Bourdieu, Pierre (1998): Prekarität ist überall. In: Gegenfeuer. Wortmeldungen im Dienste des Widerstands gegen die neoliberale Invasion. Konstanz.
` diff --git a/style.css b/style.css index 5ecc453..78951d6 100644 --- a/style.css +++ b/style.css @@ -124,7 +124,7 @@ a.fullview { box-sizing: border-box; } -header { +header, .work { font-family: "Fell Sc"; } @@ -167,6 +167,7 @@ blockquote { quotes: "\201C""\201D""\2018""\2019"; /* Otherwise the :before is larger than the blockquote and creates a scrollbar in the parent */ min-height: 4em; + color: black; } blockquote:before { color: #1a1c1c66; @@ -182,3 +183,35 @@ aside { float: right; padding: 1em; } + +.continue { + position: absolute; + right: 0; + bottom: 0; + padding: 0.5rem 1rem; + font-size: 2rem; + border-radius: 20px; + margin: 0.5rem; + background: #D66C00; + border: 3px solid #1a1c1c; + display: block; + cursor: pointer; + transform: scale(1); + animation: pulse 1s infinite alternate; + text-decoration: none; + color: black; +} + +@keyframes pulse { + from { + transform: scale(0.9); + } + to { + transform: scale(1); + } +} + +.continue:hover { + background-color: #f39a3f; + animation: none; +}