-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
216 lines (192 loc) · 18.4 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
<!DOCTYPE html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>Claim randomizer</title>
<meta charset="utf-8"/>
<meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"/>
<meta name=description content="Randomize factions for Claim card game"/>
<meta name=author content="migio"/>
<meta name=viewport content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.5.0/css/flag-icon.min.css" integrity="sha512-Cv93isQdFwaKBV+Z4X8kaVBYWHST58Xb/jVOcV9aRsGSArZsgAnFIhMpDoMDcFNoUtday1hdjn0nGp3+KZyyFw==" crossorigin="anonymous" />
<link rel="stylesheet" href="style.css?v=0" />
</head>
<body class="default">
<div class="container trasp-background" id="main">
<nav class="navbar navbar-expand-lg navbar-light bg-transparent col-12">
<button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse float-right collapse" id="navbarSupportedContent" style="">
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Style
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-pencil-fill" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M12.854.146a.5.5 0 0 0-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 0 0 0-.708l-3-3zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.207l6.5-6.5zm-7.468 7.468A.5.5 0 0 1 6 13.5V13h-.5a.5.5 0 0 1-.5-.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.5-.5V10h-.5a.499.499 0 0 1-.175-.032l-.179.178a.5.5 0 0 0-.11.168l-2 5a.5.5 0 0 0 .65.65l5-2a.5.5 0 0 0 .168-.11l.178-.178z"/>
</svg>
</a>
<div class="dropdown-menu trasp-background solid-bg" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="javascript:setBackground('default');">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-droplet-fill style-icon-default" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M8 16a6 6 0 0 0 6-6c0-1.655-1.122-2.904-2.432-4.362C10.254 4.176 8.75 2.503 8 0c0 0-6 5.686-6 10a6 6 0 0 0 6 6zM6.646 4.646c-.376.377-1.272 1.489-2.093 3.13l.894.448c.78-1.559 1.616-2.58 1.907-2.87l-.708-.708z"/>
</svg> Real valley</a>
<a class="dropdown-item" href="javascript:setBackground('claim');">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-droplet-fill style-icon-claim" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M8 16a6 6 0 0 0 6-6c0-1.655-1.122-2.904-2.432-4.362C10.254 4.176 8.75 2.503 8 0c0 0-6 5.686-6 10a6 6 0 0 0 6 6zM6.646 4.646c-.376.377-1.272 1.489-2.093 3.13l.894.448c.78-1.559 1.616-2.58 1.907-2.87l-.708-.708z"/>
</svg> Claim valley</a>
<a class="dropdown-item" href="javascript:setBackground('DP');">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-droplet-fill style-icon-DP" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M8 16a6 6 0 0 0 6-6c0-1.655-1.122-2.904-2.432-4.362C10.254 4.176 8.75 2.503 8 0c0 0-6 5.686-6 10a6 6 0 0 0 6 6zM6.646 4.646c-.376.377-1.272 1.489-2.093 3.13l.894.448c.78-1.559 1.616-2.58 1.907-2.87l-.708-.708z"/>
</svg> Fog</a>
<a class="dropdown-item" href="javascript:setBackground('DW');">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-droplet-fill style-icon-DW" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M8 16a6 6 0 0 0 6-6c0-1.655-1.122-2.904-2.432-4.362C10.254 4.176 8.75 2.503 8 0c0 0-6 5.686-6 10a6 6 0 0 0 6 6zM6.646 4.646c-.376.377-1.272 1.489-2.093 3.13l.894.448c.78-1.559 1.616-2.58 1.907-2.87l-.708-.708z"/>
</svg> Cavern</a>
<a class="dropdown-item" href="javascript:setBackground('GO');">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-droplet-fill style-icon-GO" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M8 16a6 6 0 0 0 6-6c0-1.655-1.122-2.904-2.432-4.362C10.254 4.176 8.75 2.503 8 0c0 0-6 5.686-6 10a6 6 0 0 0 6 6zM6.646 4.646c-.376.377-1.272 1.489-2.093 3.13l.894.448c.78-1.559 1.616-2.58 1.907-2.87l-.708-.708z"/>
</svg> Clay</a>
<a class="dropdown-item" href="javascript:setBackground('KN');">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-droplet-fill style-icon-KN" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M8 16a6 6 0 0 0 6-6c0-1.655-1.122-2.904-2.432-4.362C10.254 4.176 8.75 2.503 8 0c0 0-6 5.686-6 10a6 6 0 0 0 6 6zM6.646 4.646c-.376.377-1.272 1.489-2.093 3.13l.894.448c.78-1.559 1.616-2.58 1.907-2.87l-.708-.708z"/>
</svg> Camelot</a>
<a class="dropdown-item" href="javascript:setBackground('UD');">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-droplet-fill style-icon-UD" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M8 16a6 6 0 0 0 6-6c0-1.655-1.122-2.904-2.432-4.362C10.254 4.176 8.75 2.503 8 0c0 0-6 5.686-6 10a6 6 0 0 0 6 6zM6.646 4.646c-.376.377-1.272 1.489-2.093 3.13l.894.448c.78-1.559 1.616-2.58 1.907-2.87l-.708-.708z"/>
</svg> Hades</a>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">Language
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-flag-fill" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M14.778.085A.5.5 0 0 1 15 .5V8a.5.5 0 0 1-.314.464L14.5 8l.186.464-.003.001-.006.003-.023.009a12.435 12.435 0 0 1-.397.15c-.264.095-.631.223-1.047.35-.816.252-1.879.523-2.71.523-.847 0-1.548-.28-2.158-.525l-.028-.01C7.68 8.71 7.14 8.5 6.5 8.5c-.7 0-1.638.23-2.437.477A19.626 19.626 0 0 0 3 9.342V15.5a.5.5 0 0 1-1 0V.5a.5.5 0 0 1 1 0v.282c.226-.079.496-.17.79-.26C4.606.272 5.67 0 6.5 0c.84 0 1.524.277 2.121.519l.043.018C9.286.788 9.828 1 10.5 1c.7 0 1.638-.23 2.437-.477a19.587 19.587 0 0 0 1.349-.476l.019-.007.004-.002h.001"/>
</svg>
</a>
<div class="dropdown-menu trasp-background solid-bg" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="javascript:setLanguage('EN');"><span class="flag-icon flag-icon-us"></span> EN</a>
<a class="dropdown-item" href="javascript:setLanguage('IT');"><span class="flag-icon flag-icon-it"></span> IT</a>
<a class="dropdown-item" href="javascript:setLanguage('ES');"><span class="flag-icon flag-icon-es"></span> ES</a>
<a class="dropdown-item" href="javascript:setLanguage('NL');"><span class="flag-icon flag-icon-nl"></span> NL</a>
<a class="dropdown-item" href="javascript:setLanguage('DE');"><span class="flag-icon flag-icon-de"></span> DE</a>
<a class="dropdown-item" href="javascript:setLanguage('PT');"><span class="flag-icon flag-icon-pt"></span> PT</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item " id="HELP_TRANSLATE" href="https://migio.altervista.org/contatti/" target="popup">want to contribute to translation?</a>
</div>
</li>
</ul>
</div>
</nav>
<h1 id="TITLE">Claim randomizer</h1>
<h3 id="SELECT_FACT">Select factions you want to use</h3>
<hr/>
<form id="SelectionForm"></form>
<div id="myAlert" class="alert alert-danger mt-3" role="alert">
If you read this the page is loading... if it take more than a few seconds please refresh.
</div>
<div id="result" class="trasp-background"></div>
</div>
<footer class="footer container mt-auto py-3 trasp-background">
<div class="container">
<span class="text-muted">
<button type="button" class="btn btn-outline-primary trasp-background" data-toggle="modal" data-target="#creditsModal" >
© & <span id="CREDITS_BTN">Credits</span>
</button>
</span>
<span class="float-right">
<a href="https://migio.altervista.org/lt/" target=_blank class="">migio</a>
<a href="https://github.com/migius" target=_blank>
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" class="navbar-nav-svg " viewBox="0 0 512 499.36" role="img"><title>GitHub</title><path fill="currentColor" fill-rule="evenodd" d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z"></path></svg></a>
<a href="https://www.instagram.com/_migio/" target=_blank>
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" class="navbar-nav-svg " viewBox="0 0 512 512">
<path
fill="currentColor"
d="M256,49.471c67.266,0,75.233.257,101.8,1.469,24.562,1.121,37.9,5.224,46.778,8.674a78.052,78.052,0,0,1,28.966,18.845,78.052,78.052,0,0,1,18.845,28.966c3.45,8.877,7.554,22.216,8.674,46.778,1.212,26.565,1.469,34.532,1.469,101.8s-0.257,75.233-1.469,101.8c-1.121,24.562-5.225,37.9-8.674,46.778a83.427,83.427,0,0,1-47.811,47.811c-8.877,3.45-22.216,7.554-46.778,8.674-26.56,1.212-34.527,1.469-101.8,1.469s-75.237-.257-101.8-1.469c-24.562-1.121-37.9-5.225-46.778-8.674a78.051,78.051,0,0,1-28.966-18.845,78.053,78.053,0,0,1-18.845-28.966c-3.45-8.877-7.554-22.216-8.674-46.778-1.212-26.564-1.469-34.532-1.469-101.8s0.257-75.233,1.469-101.8c1.121-24.562,5.224-37.9,8.674-46.778A78.052,78.052,0,0,1,78.458,78.458a78.053,78.053,0,0,1,28.966-18.845c8.877-3.45,22.216-7.554,46.778-8.674,26.565-1.212,34.532-1.469,101.8-1.469m0-45.391c-68.418,0-77,.29-103.866,1.516-26.815,1.224-45.127,5.482-61.151,11.71a123.488,123.488,0,0,0-44.62,29.057A123.488,123.488,0,0,0,17.3,90.982C11.077,107.007,6.819,125.319,5.6,152.134,4.369,179,4.079,187.582,4.079,256S4.369,333,5.6,359.866c1.224,26.815,5.482,45.127,11.71,61.151a123.489,123.489,0,0,0,29.057,44.62,123.486,123.486,0,0,0,44.62,29.057c16.025,6.228,34.337,10.486,61.151,11.71,26.87,1.226,35.449,1.516,103.866,1.516s77-.29,103.866-1.516c26.815-1.224,45.127-5.482,61.151-11.71a128.817,128.817,0,0,0,73.677-73.677c6.228-16.025,10.486-34.337,11.71-61.151,1.226-26.87,1.516-35.449,1.516-103.866s-0.29-77-1.516-103.866c-1.224-26.815-5.482-45.127-11.71-61.151a123.486,123.486,0,0,0-29.057-44.62A123.487,123.487,0,0,0,421.018,17.3C404.993,11.077,386.681,6.819,359.866,5.6,333,4.369,324.418,4.079,256,4.079h0Z"/>
<path
fill="currentColor"
d="M256,126.635A129.365,129.365,0,1,0,385.365,256,129.365,129.365,0,0,0,256,126.635Zm0,213.338A83.973,83.973,0,1,1,339.974,256,83.974,83.974,0,0,1,256,339.973Z"/>
<circle
fill="currentColor"
cx="390.476" cy="121.524" r="30.23"/>
</svg>
</a>
</span>
</div>
</footer>
<!-- Credits Modal -->
<div class="modal fade " id="creditsModal" tabindex="-1" role="dialog" aria-labelledby="creditsModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content trasp-background solid-bg">
<div class="modal-header">
<h5 class="modal-title" id="creditsModalLabel">Credits</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p >
© <span id="COPYRIGTH">Images and texts rights reserved to their respective owners, this page is authorized by the White Goblin Games.</span>
</p>
<p>
<a href="https://github.com/migius/claim-randomizer" target=_blank><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" class="navbar-nav-svg" viewBox="0 0 512 499.36" role="img"><title>GitHub</title><path fill="currentColor" fill-rule="evenodd" d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z"></path></svg> <span id="SOURCE_CODE_BY">Source code under MIT License by migio.</span></a>
</p>
<p>
<span id="INSPIRED_BY">Inspired by</span> <a href="https://boardgamegeek.com/thread/2450132" target=_blank><span id="THIS_THREAD">this thread</span></a>
</p>
<p>
<span id="ENG_RUL">English rules by White Goblin Games.</span>
</p>
<p>
<span id="IT_RULE">Italian rules by migio</span>
</p>
<p>
<span id="DE_RULE">German rules by Yarra Mekian</span>
</p>
<p>
<span id="PT_RULE">Portuguese rules by Sansão Oliveira</span>
</p>
<p>
<a href="https://migio.altervista.org/contatti/" target="popup" id="FEEDBACK">Send a Feedback</a>
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary trasp-background" data-dismiss="modal" id="CLOSE">Close</button>
</div>
</div>
</div>
</div>
<!--details modal-->
<div class="modal fade" id="detailsModal" tabindex="-1" role="dialog" aria-labelledby="detailsModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content trasp-background solid-bg">
<div class="modal-header">
<h5 class="modal-title" id="detailsModalLabel">TITLE</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h4 class="phase-text float-right font-weight-light trasp-background solid-bg ml-3" >Phase 1</h4>
<p class="modal-text" >Description...</p>
<img src="images/Claim.jpg" class="modal-image" ></img>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary trasp-background" data-dismiss="modal" id="CLOSE2">Close</button>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var _iub = _iub || [];
_iub.csConfiguration = {"whitelabel":false,"siteId":597114,"cookiePolicyId":7899706,"lang":"it"};
</script>
<script type="text/javascript" src="//cdn.iubenda.com/cs/iubenda_cs.js" charset="UTF-8" async></script>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script src="data-EN.js?v=0" ></script>
<script src="logic.js?v=0" ></script>
<script>(function(a,h,d,c,g,f){a.GoogleAnalyticsObject=c;a[c]||(a[c]=function(){(a[c].q=a[c].q||[]).push(arguments)});a[c].l=+new Date;g=h.createElement(d);f=h.getElementsByTagName(d)[0];g.src="//www.google-analytics.com/analytics.js";f.parentNode.insertBefore(g,f)}(window,document,"script","ga"));ga("create","UA-82977202-1","auto");ga("send","pageview");</script>
</form>
</body>
</html>