-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhmyzit.html
155 lines (154 loc) · 7.19 KB
/
hmyzit.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=666">
<link rel="icon" href="https://hive.draho.cz/img/favicon.png">
<title>Hmyziště</title>
<meta name="author" content="Drahoslav Bednář, Draho.cz" />
<meta name="application-name" content="Hmyziště" />
<meta name="description" lang="en" content="Boardless insectoid boardgame. An abstract strategy game for two. Based on the Hive game." />
<meta name="description" lang="cs" content="Bezdesková hmyzí deskovka. Abstraktní strategická hra pro dva, založená na hře Hive." />
<meta name="keywords" lang="en" content="Hive, hmyziště, game, boardgame, multiplayer, hexagon" />
<meta name="keywords" lang="cs" content="Hive, hmyziště, hra, deskovka, multiplayer, hexagon" />
<style>
html, body {
width: 100%;
height: 100%;
margin: 0;
display: flex;
overflow: hidden;
}
h1 {
display: none;
}
</style>
</head>
<body>
<h1>Hmyziště</h1>
<iframe src="https://hive.draho.cz" width="100%" height="100%" frameBorder="0" scrolling="no"></iframe>
<script>
const identities =
[
"•Agelenid•;M;e8c5f11e8b32f67c821a8263dde4b732",
"•Amaurobiid•;M;628bc7d03e0841641712398e405f7208",
"•Ammoxenid•;M;ac2304640860fa35cf7f710f9655ec32",
"•Anapid•;M;1c751e27ce24197ce1fa7a319cf7e07a",
"•Anyphaenid•;M;f2c3637a7a49c08f8a3a89ebdf6ef388",
"•Araneid•;M;3fa1720f8a6df4e2ecc702f4ae25d671",
"•Archaeid•;M;1159b75afc9025919c5b72ed0aa92d12",
"•Arkyid•;M;8f5792a4493e69cf92572925de89cb93",
"•Austrochilid•;M;bdeee0d6363815fc8406a3fe81af6879",
"•Caponiid•;M;bde578120c16400820f8a2c9957fc3af",
"•Cithaeronid•;M;bd6345d99cac7bafd87fa030ab44ce17",
"•Clubionid•;M;52c19ddc5d9186e792ffe079e74f0e6e",
"•Corinnid•;M;7332731d2df902e6fc7652cc08a101f5",
"•Ctenid•;M;49fff92a699b3858c63225217587529b",
"•Cyatholipid•;M;58025933293c125afc491a2453c76a27",
"•Cybaeid•;M;e01bb6c1a0e671267892706665019e72",
"•Cycloctenid•;M;feaf03b4117fa2f69f5d54081a362255",
"•Deinopid•;M;76357bf5edb233664144c5dc95790906",
"•Desid•;M;68ced949c4a81688e16c227c90c7288e",
"•Dictynid•;M;d2a7c3a2c0f236620fc0a7e7323de2db",
"•Diguetid•;M;1588eaf42d7ce9832e938c7ffc05506a",
"•Drymusid•;M;4d1f382c2b4ec7b4350a8a0bb4528f51",
"•Dysderid•;M;afa4b0018f78f12e8250d63a5e99382a",
"•Eresid•;M;01fda15e69306ab3efdd88592d408ef1",
"•Eutichurid•;M;624994863bf0c353bef710a102884245",
"•Filistatid•;M;c1657faaf7276577091f50b670ad59ba",
"•Gallieniellid•;M;248d98e49865cc6b2881dae707eb76d2",
"•Gnaphosid•;M;779c5d5d2d1e9f95c943a6ba0059727a",
"•Gradungulid•;M;073296077bf8208100b650ebab6c4eaf",
"•Hahniid•;M;ea2be28495c8bf037c24ea17dfe3f536",
"•Hersiliid•;M;3dc648cabdd9c4b121c36f19e1aca417",
"•Homalonychid•;M;899da8c7bd65562911452adccdb36f7c",
"•Huttoniid•;M;29ebad52cda48f285ce61beac4b0ae6e",
"•Hypochilid•;M;9b9cd2f59dd61c70becfda7c40cfe4d9",
"•Lamponid•;M;b1485d67f83398a30965ed13b3f08239",
"•Leptonetid•;M;92bb5e449e32647eb3ac18e22a19eab7",
"•Linyphiid•;M;a86d6a652bf1e815da36b0e6bc67488d",
"•Liocranid•;M;dab9f1045a867bd8fddcc35002632fe8",
"•Lycosid•;M;6e01b24c0bbbc508f1289fa08152856c",
"•Malkarid•;M;10029d9e87a2f9fed3b8a95fa1c8d9cd",
"•Mecysmaucheniid•;M;b181d32ad61ec64705095589caa03744",
"•Megadictynid•;M;6eaff6e02b4741bff1c42cec42b7f686",
"•Mimetid•;M;bcd9f3e3539b0729e0d6c9652e137105",
"•Miturgid•;M;65b9c4fd22df380f5abe901cc4aef75c",
"•Mysmenid•;M;52ff63d6608a8b396775f45c83dc88e6",
"•Nesticid•;M;db36c82283ec459e649722d959378012",
"•Nicodamid•;M;f3d8b458da68828998c61f68fecb8546",
"•Ochyroceratid•;M;7a02b42c4c22edb02114582884c0c464",
"•Oecobiid•;M;d83477e10eb08139ac36002f564ec2c9",
"•Oonopid•;M;79e2a83a0a0a82bb23b53313a499c96e",
"•Orsolobid•;M;be3fab49ab319bfc4facd4db73dd2474",
"•Oxyopid•;M;9e75bc757bf08c9490545917961cae18",
"•Pacullid•;M;7e2400755b84f1849b996425830b51d1",
"•Palpimanid•;M;33a3eb1bbc6192af26ed03a9d8fcbab5",
"•Penestomid•;M;cf86d96e83044202f6924e3a01db4699",
"•Periegopid•;M;b24f624d45c6fb0c1fa7614ae71d6edb",
"•Philodromid•;M;80207d261e98b7aa5c88af025b5cb3fa",
"•Pholcid•;M;f8db5f094746e325fffe65ebf9375278",
"•Phrurolithid•;M;d9868e74440386fea430b2af73e23878",
"•Physoglenid•;M;3f569a7127a30c2adf767be8ba5db57d",
"•Phyxelidid•;M;c52e0d5f765ea5f21038c1900eccc811",
"•Pimoid•;M;720a0f3346d7ca7f4e7aabcd156888c2",
"•Pisaurid•;M;9e18c9e8da829a6cf769d19573a523ba",
"•Plectreurid•;M;8a0a68d053114f1c54afb184193d1a0a",
"•Psechrid•;M;c23d0849e7967ab5f3d927e91f9afc58",
"•Salticid•;M;03ecce96ba7e80374843378b3ac6ff65",
"•Scytodid•;M;b4003d7c631c39f57d034d6628f6bc22",
"•Segestriid•;M;e1af4f390c29a43e0cac6cc89c67b8a1",
"•Selenopid•;M;8885ffb616b77db6fac8ee0ac1f94897",
"•Senoculid•;M;091b73a118aa7d973070f7f66f09b2c2",
"•Sicariid•;M;e036de6091834c08d58038f14c4b63cc",
"•Sparassid•;M;48b95e630bcc53a4147a6a9ffbd0e03a",
"•Stenochilid•;M;a55c03957ed73c93def0c6178ed22a18",
"•Stiphidiid•;M;6e98dc2a40531d40199b050739fc9f6f",
"•Symphytognathid•;M;76f7ae085ab8170ba5331c46ee52a1cf",
"•Synaphrid•;M;4f41d2591875e06c97b307639ad4a103",
"•Synotaxid•;M;b857a7a8ef1b4353cb1f1090b6db40fd",
"•Telemid•;M;28e0a1d2a4f459755fb33d434eca3337",
"•Tetrablemmid•;M;c7ce92a27e4787c605c29b5fb97dfcf3",
"•Tetragnathid•;M;d6429b9573c90cfe8dd1649ba3631f55",
"•Theridiid•;M;a198f0062440d7fd4ee04c00c5bf19a7",
"•Theridiosomatid•;M;3996cd09836986ae013fe6b5a9582916",
"•Thomisid•;M;fda6bfad3d2c39b7dc6934667c089bb0",
"•Titanoecid•;M;3e845eeccb8459be5d3879da5914e034",
"•Toxopid•;M;de38e2f4051b3b418c722b02a0a45e3b",
"•Trachelid•;M;c0fa0a3a36f012c91695017a24b675fe",
"•Trechaleid•;M;cc39f49d725979b5716ce789fb2a1fbd",
"•Trochanteriid•;M;dadf356c07897dc203e4a62543c41a80",
"•Trogloraptorid•;M;7e89987ee1e976b99da9f964ae0f3512",
"•Udubid•;M;942ed77b9b3c292920eddb98987413a5",
"•Uloborid•;M;136831c77691dff0addb59b21e218bea",
"•Viridasiid•;M;601c316e622b6f3c48fb7d92153537c3",
"•Xenoctenid•;M;c53b7b6da429d69949ab4136a94f4cc4",
"•Zodariid•;M;535ccbd6f281b1aee88efcb268070bf4",
"•Zoropsid•;M;3a4bdde3987752354f3cc6303e19fd0f",
]
const identity = identities[Math.floor(Math.random()*identities.length)]
const ENDPOINT = 'https://hive.draho.cz'
const STORAGE_KEY = 'hive-game'
document.querySelector('iframe').src = ENDPOINT + (window.location.hash || '#') + ';' + identity
window.addEventListener('message', function(event) {
if (event.origin !== ENDPOINT || !(event.data instanceof Object)) {
return
}
if ('room' in event.data) {
const room = event.data.room || ''
const link = window.location.origin + window.location.pathname + (room && ('#' + room))
window.history.replaceState(null, null, link)
if (room) {
event.source.postMessage({ link: link }, ENDPOINT)
}
}
if ('getStorage' in event.data) {
event.source.postMessage({ storage: window.localStorage[STORAGE_KEY] }, ENDPOINT)
}
if ('setStorage' in event.data) {
window.localStorage[STORAGE_KEY] = event.data.setStorage
}
})
</script>
</body>
</html>