-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
125 lines (108 loc) · 4.75 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Stone Harbor</title>
<script>
(function(d) {
var config = {
kitId: 'kyv5eks',
scriptTimeout: 3000,
async: true
},
h = d.documentElement,
t = setTimeout(function() {
h.className = h.className.replace(/\bwf-loading\b/g, "") + " wf-inactive";
}, config.scriptTimeout),
tk = d.createElement("script"),
f = false,
s = d.getElementsByTagName("script")[0],
a;
h.className += " wf-loading";
tk.src = 'https://use.typekit.net/' + config.kitId + '.js';
tk.async = true;
tk.onload = tk.onreadystatechange = function() {
a = this.readyState;
if (f || a && a != "complete" && a != "loaded") return;
f = true;
clearTimeout(t);
try {
Typekit.load(config)
} catch (e) {}
};
s.parentNode.insertBefore(tk, s)
})(document);
var reset = function(e) {
e.preventDefault();
var conf = confirm("Restart the game from the beginning?");
if (conf) {
localStorage.clear();
location.replace(window.location.href);
}
}
/* Toggle night mode */
var reverse = function(e) {
e.preventDefault();
var mode = localStorage.getItem("nightMode");
if (mode == null || mode === 'false') { // truthy
mode = 'true';
} else {
mode = 'false';
}
localStorage.setItem("nightMode", mode);
document.getElementById('body').classList.toggle('nightmode', mode === 'true');
}
/* Toggle About modal */
var about = function(e) {
e.preventDefault();
document.getElementById('about-modal').classList.toggle('open');
document.getElementById('about-toggle').classList.toggle('open');
}
</script>
<meta name="keywords" content="ifcomp interactive fiction experimental narrative" />
<meta name="description" content="In the summer of ’85, a boardwalk psychic is reluctantly faced with the possibility that he might not be a fraud after all." />
<meta name="author" content="Liza Daly" />
<meta name="copyright" content="Liza Daly 2016" />
<link rel="icon" href="images/icon.png" />
<link rel="stylesheet" href="css/app.css" />
</head>
<body id="body">
<nav class="top-bar">
<div class="top-bar-left">
<ul class="menu">
<li id="about-toggle" class="about-toggle"><a href="#" onClick="about(event)">About</a>
<aside id="about-modal" class="about-modal">
<p>
<i>Stone Harbor</i> is an interactive short story by <a href="https://lizadaly.com/">Liza Daly</a>
entered into the <a href="https://ifcomp.org">2016 Interactive Fiction Competition</a>.
Contact info: <a href="mailto:[email protected]">[email protected]</a>.
<br/><br/>
<a href="es/">Spanish translation</a> by Neido Translations.
<br/><br/>
<a href="pt/">Portuguese translation</a> by José Carlos Dias.
</p>
<div class="close"><a href="#" onClick="about(event)"><small>close</small></a></div>
</aside>
</li>
</ul>
</div>
<div class="top-bar-right">
<ul class="menu">
<li><a href="#" onClick="reset(event)">Restart</a></li>
<li><a href="#" onClick="reverse(event)">Night Mode</a></li>
<li>EN |
<a style="display: inline; padding: 0; text-decoration: underline; text-transform: none" href="/es" title="Spanish translation">ES</a>
|
<a style="display: inline; padding: 0 20px 0 0; text-decoration: underline; text-transform: none" href="/pt" title="Portuguese translation">PT</a>
</li>
</ul>
</div>
</nav>
<!-- Body -->
<article id="article" class="row columns">
</article>
<script defer src="build/bundle.js"></script>
</body>
</html>