-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
355 lines (313 loc) · 11.3 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
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<!doctype html>
<html>
<head>
<title>Dungeon World - помощник ведущего</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="css/style.css?v=0.81">
<meta name="description" content="Списки ходов и исходов">
<link href="../_fonts/FortAwesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="shortcut icon" href="favicon.ico" />
<link rel="canonical" href="https://tentaculus.ru/dw_master_helper" />
<meta property="og:image" content="img/bg2.jpg" />
<meta property="og:image" content="img/og.jpg" />
<meta property="og:title" content="Dungeon World - помощник ведущего" />
<meta property="og:description" content="Списки ходов и исходов" />
<!-- IE must understand HTML5: -->
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
<style>
article, aside, details, figcaption, figure, footer,header,
hgroup, menu, nav, section, div { display: block; }
</style>
</head>
<body>
<div class='wrap' id='app' >
<div id='loader_overflow' v-show="!bAppIsReady">
<div style='text-align: center;'>
<div id='loader' class='loader'>
</div>
<div id='loader_warning'>
Некотороые мобильные браузеры, например Firefox, не могут открыть все это великолепие.
<p>
¯\_(ツ)_/¯
</p>
<p>
Chrome и Firefox Nightly - могуть
</p>
</div>
</div>
</div>
<menu id='menu' :class='{maximise: enlarge_menu}' @click="menu_priority(1)">
<ul id="data_list">
<li class='top_menu'>
<a href="/" title='На главную страницу сайта' ><i class='icon home'></i></a>
<a href="#" title='Показать стартовую страницу' @click="show_start"><span style='position: relative; top: -.3rem;'>☰</span></a>
<a href="https://tentaculus.ru/message/?theme=dw_helper" title='Написать сообщение'><span style='position: relative; top: -.3rem;'>✉</span></a>
</li>
<item v-for="item in structure"
:key="item.key"
:name="item.key"
src='data'
:title="item.title"
:ico="item.ico"
:color="item.color"
:checked="checked.main"
@lclick="dataClick($event)"
>
</item>
</ul>
<ul id="section_list">
<item v-for="item in section_action_list"
:key="item.key"
:name="item.key"
src='section'
:title="item.title"
:ico="item.ico"
:color="item.color"
:checked="checked.section"
style_class="action"
@lclick="section_actionClick($event)"
>
</item>
<item v-for="item in section"
:key="item.key"
:name="item.key"
src='section'
:title="item.title"
:type="String(item.type)"
:ico="item.ico"
:color="item.color"
:checked="checked.section"
@lclick="sectionClick($event)"
>
</item>
</ul>
<ul id="subsection_list">
<item v-for="item in subsection"
:key="item.key"
:name="item.key"
src='subsection'
:type="String(item.type)"
:title="item.title"
:checked="checked.subsection"
:ico="item.ico"
:color="item.color"
@lclick="subsectionClick($event)"
>
</item>
</ul>
</menu>
<div id='contain' class='contain' @click="menu_priority(0)">
<div class='info widther' v-show="showInfo">
<h1>
Помощник Ведущего Dungeon World
</h1>
<p>
Здесь собраные некоторые ходы, исходы и идеи, которые могут пригодиться во время игры.
</p>
<p>
Кроме того, есть своеобразный "Подсказчик" для мастера. Кнопка с кубиком [⚅] в правом нижнем углу показывает варианты ходов мастера, которые преиодически обновляются. Если в сцене назрела ситуация, где мастеру нужно сделать ход, но с идеями туговато, подсказчик может помочь.
</p>
<p>
GitHub: <a href="https://github.com/Etignis/dw_master_helper">https://github.com/Etignis/dw_master_helper</a>
</p>
</div>
<!-- Ходы -->
<div id='move' class='widther' v-show="showMove">
<move
:name="displayMove.key"
:title="displayMove.title"
:requirements="displayMove.requirements"
:replace="displayMove.replace"
:condition="displayMove.condition"
:results="displayMove.results"
:variants="displayMove.variants"
@fail="show_move_fail"
>
</move>
<ul class="move_fails">
<li v-for="el in move_fails">
{{el}}
</li>
</ul>
</div>
<!-- Предметы и заклинания-->
<div id='move' class='widther' v-show="showItem">
<card
:title="displayItem.title"
:tags="displayItem.tags"
:level="displayItem.level"
:cost="displayItem.cost"
:weight="displayItem.weight"
:hold="displayItem.hold"
:description="displayItem.description"
/>
</div>
<!-- Случайный набор -->
<div id='random_set' class='widther' v-show="showRandomSet">
<h1>
{{_random_set_title}}
</h1>
<ul style='display: block; padding: 0'>
<li v-for="item in _random_set_result" class='random_item'>
<div>
<span class='color'>{{item.title}}: </span>
<span v-html="item.value"></span>
</div>
<button @click="_onRandomGeneratedClick(item)" style='margin-left: .7rem'>🎲</button>
</li>
</ul>
</div>
<!-- Списки -->
<div id='result' class='widther' v-show="showReult" >
<section class='padding' v-show="String(random_result).length > 0">
<header>
<h1>Случайный результат:</h1>
<button @click="_random" title='Получить случайный результат' id='getRandom'>🎲</button>
</header>
<div class='highlight' v-html="random_result">
</div>
<!-- <p v-html="displayData.pre"> -->
<!-- </p> -->
<ul class='move_options'>
<chooser v-for="item in options"
:key="item.key"
:name="item.key"
:title="item.title"
:val="item.value"
:type="item.type"
:selected="item.checked"
@iclick="onChoose($event)"
></chooser>
</ul>
</section>
<section class='padding'>
<p v-html="displayData.pre">
</p>
</section>
<section class='padding'>
<h1 v-if="String(random_result).length > 0">Все варианты:</h1>
<h1 v-else> Список:</h1>
<ul :class="{compact: listCompact}">
<lister v-for="item in displayData.list"
:key="item.i"
:title="item.title"
:subtitle="item.subtitle"
>
</lister>
</ul>
</section>
<section style='font-size: 90%; margin-top: 3rem'>
<div v-html="sources_info">
</div>
</section>
</div>
<footer>
<p>
Данные распространются по лицензии Creative Commons Attribution 4.0 Unported License.
</p>
<h1>
Источникик и полезности:
</h1>
<div class='creditials'>
<div class='source'>
<a href="https://dungeon-world.com/" class='outer_logo' title='Официальный сайт'>
<img src='img/DW_LOGO.jpg'>
<!-- <span>Официальный сайт</span> -->
</a>
</div>
<div class='source'>
<a href="https://indigogames.ru/" class='outer_logo' title='Магазин, где можно приобрести Dungeon World и много чего другого'>
<img src='https://indigogames.ru/wp-content/uploads/2022/10/cropped-indigo_logo_big_new-1.png'>
<!-- <span>Магазин, где можно приобрести Dungeon World и много чего другого</span> -->
</a>
</div>
<!-- <div class='source'> -->
<!-- <a href="http://irontales.ru/" class='outer_logo'> -->
<!-- <img src='http://irontales.ru/img/logo.png'> -->
<!-- </a> -->
<!-- </div> -->
</div>
</footer>
</div>
<div class="floater">
<div class="timer_settings_container">
<transition name="fade">
<div class='opt_container' v-show="dm_helper.show_sources">
<ul>
<li v-for="opt in dm_helper.sources"
v-bind:key="opt.key"
:class='{option: true, active: opt.active}'
@click="onPressHelperSrc(opt)">
{{opt.title}}
</li>
</ul>
</div>
</transition>
<button class='timer_settings' title='Настройки подсказчика' @click="dm_helper.show_sources = !dm_helper.show_sources">
<span class='ico' data-icons="☀">✎</span>
</button>
</div>
<div>
<button :class='{play: true, timer: dm_helper.active}' title='Подсказчик' @click="switch_helper">
<span class='ico' data-icons="♘">⚅</span>
</button>
<transition name="fade">
<div class='prompt_container' v-show="dm_helper.show_prompt">
<div class='text' v-html="dm_helper.prompt">
</div>
<button @click="next_prompt">
<span class='ico' data-icons="➔➛➜➤➧">⟳</span>
</button>
</div>
</transition>
</div>
</div>
</div>
<div id='preload' style="position: absolute; overflow :hidden; width: 0; height: 0">
<img src="img/brush1.png">
<img src="img/brush2.png">
<img src="img/brush3.png">
<img src="img/brush4.png">
<img src="img/brush5.png">
<img src="img/brush6.png">
</div>
<script type='text/javascript' src="js/lib_DW.js" defer></script>
<script type='text/javascript' src="js/vue.js" defer></script>
<!-- <script type='text/javascript' src='js/data.js' defer></script> -->
<script type='text/javascript' src='js/controller.js' defer></script>
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter42911239 = new Ya.Metrika({
id:42911239,
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true,
trackHash:true
});
} catch(e) { }
});
var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function () { n.parentNode.insertBefore(s, n); };
s.type = "text/javascript";
s.async = true;
s.src = "https://mc.yandex.ru/metrika/watch.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/42911239" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
</body>
</html>