Spaces:
Paused
Paused
Delete public
Browse files- public/assets/logo.png +0 -0
- public/configure.html +0 -1185
- public/js/countries.js +0 -697
- public/js/languages.js +0 -202
public/assets/logo.png
DELETED
|
Binary file (407 kB)
|
|
|
public/configure.html
DELETED
|
@@ -1,1185 +0,0 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8">
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>Streaming Catalog Providers - Stremio Addon Configuration</title>
|
| 7 |
-
<link rel="shortcut icon" href="https://your-icon-url.com/favicon.ico" type="image/x-icon" />
|
| 8 |
-
<link href="https://fonts.googleapis.com/css2?family=Helvetica:wght@400;600;700&display=swap" rel="stylesheet" />
|
| 9 |
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/Sortable/1.15.0/Sortable.min.js"></script>
|
| 10 |
-
<style>
|
| 11 |
-
* {
|
| 12 |
-
margin: 0;
|
| 13 |
-
padding: 0;
|
| 14 |
-
box-sizing: border-box;
|
| 15 |
-
}
|
| 16 |
-
|
| 17 |
-
body {
|
| 18 |
-
font-family: 'Helvetica', sans-serif;
|
| 19 |
-
line-height: 1.6;
|
| 20 |
-
background: #f0f0f5;
|
| 21 |
-
color: #333;
|
| 22 |
-
padding: 20px;
|
| 23 |
-
display: flex;
|
| 24 |
-
justify-content: center;
|
| 25 |
-
align-items: center;
|
| 26 |
-
min-height: 100vh;
|
| 27 |
-
text-align: center;
|
| 28 |
-
transition: background 0.3s, color 0.3s;
|
| 29 |
-
}
|
| 30 |
-
|
| 31 |
-
#addon {
|
| 32 |
-
position: relative;
|
| 33 |
-
width: 90%;
|
| 34 |
-
max-width: none;
|
| 35 |
-
background: #fff;
|
| 36 |
-
padding: 30px;
|
| 37 |
-
border-radius: 12px;
|
| 38 |
-
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
|
| 39 |
-
margin: 0 auto;
|
| 40 |
-
}
|
| 41 |
-
|
| 42 |
-
.theme-toggle {
|
| 43 |
-
position: absolute;
|
| 44 |
-
top: 20px;
|
| 45 |
-
right: 20px;
|
| 46 |
-
font-size: 1.5rem;
|
| 47 |
-
cursor: pointer;
|
| 48 |
-
transition: color 0.3s;
|
| 49 |
-
z-index: 10;
|
| 50 |
-
}
|
| 51 |
-
|
| 52 |
-
body.dark-mode {
|
| 53 |
-
background: #333;
|
| 54 |
-
color: #f0f0f5;
|
| 55 |
-
}
|
| 56 |
-
|
| 57 |
-
body.dark-mode #addon {
|
| 58 |
-
background: #444;
|
| 59 |
-
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
|
| 60 |
-
}
|
| 61 |
-
|
| 62 |
-
body.dark-mode .provider {
|
| 63 |
-
background: #555;
|
| 64 |
-
border-color: #666;
|
| 65 |
-
}
|
| 66 |
-
|
| 67 |
-
body.dark-mode .provider:hover {
|
| 68 |
-
border-color: #f0f0f5;
|
| 69 |
-
box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
|
| 70 |
-
}
|
| 71 |
-
|
| 72 |
-
body.dark-mode .link-display {
|
| 73 |
-
background: #666;
|
| 74 |
-
border: 1px solid #777;
|
| 75 |
-
}
|
| 76 |
-
|
| 77 |
-
body.dark-mode .name {
|
| 78 |
-
color: #f0f0f5;
|
| 79 |
-
}
|
| 80 |
-
|
| 81 |
-
body.dark-mode .version {
|
| 82 |
-
color: #aaa;
|
| 83 |
-
}
|
| 84 |
-
|
| 85 |
-
body.dark-mode .description {
|
| 86 |
-
color: #ccc;
|
| 87 |
-
}
|
| 88 |
-
|
| 89 |
-
body.dark-mode .form-element label {
|
| 90 |
-
color: #f0f0f5;
|
| 91 |
-
}
|
| 92 |
-
|
| 93 |
-
body.dark-mode .form-element input {
|
| 94 |
-
background: #555;
|
| 95 |
-
color: #f0f0f5;
|
| 96 |
-
border: 1px solid #666;
|
| 97 |
-
}
|
| 98 |
-
|
| 99 |
-
body.dark-mode .form-element input::placeholder {
|
| 100 |
-
color: #bbb;
|
| 101 |
-
}
|
| 102 |
-
|
| 103 |
-
body.dark-mode .providers-title,
|
| 104 |
-
body.dark-mode .selected-providers-title {
|
| 105 |
-
color: #f0f0f5;
|
| 106 |
-
}
|
| 107 |
-
|
| 108 |
-
.providers-title,
|
| 109 |
-
.selected-providers-title {
|
| 110 |
-
font-size: 1.5rem;
|
| 111 |
-
color: #333;
|
| 112 |
-
margin-bottom: 15px;
|
| 113 |
-
font-weight: 600;
|
| 114 |
-
text-align: left;
|
| 115 |
-
}
|
| 116 |
-
|
| 117 |
-
body.dark-mode .providers-title,
|
| 118 |
-
body.dark-mode .selected-providers-title {
|
| 119 |
-
color: #f0f0f5;
|
| 120 |
-
}
|
| 121 |
-
|
| 122 |
-
body.dark-mode .modal {
|
| 123 |
-
background-color: #333;
|
| 124 |
-
color: #f0f0f5;
|
| 125 |
-
border: 1px solid #444;
|
| 126 |
-
}
|
| 127 |
-
|
| 128 |
-
body.dark-mode .modal-close {
|
| 129 |
-
color: #f0f0f5;
|
| 130 |
-
}
|
| 131 |
-
|
| 132 |
-
body.dark-mode .modal h4 {
|
| 133 |
-
color: #f0f0f5;
|
| 134 |
-
}
|
| 135 |
-
|
| 136 |
-
body.dark-mode .modal p,
|
| 137 |
-
body.dark-mode .modal ul {
|
| 138 |
-
color: #ccc;
|
| 139 |
-
}
|
| 140 |
-
|
| 141 |
-
body.dark-mode .modal ul li {
|
| 142 |
-
color: #ccc;
|
| 143 |
-
}
|
| 144 |
-
|
| 145 |
-
body.dark-mode .form-element label {
|
| 146 |
-
color: #e0e0e0;
|
| 147 |
-
display: flex;
|
| 148 |
-
align-items: center;
|
| 149 |
-
font-size: 1rem;
|
| 150 |
-
}
|
| 151 |
-
|
| 152 |
-
body.dark-mode .form-element .info-icon {
|
| 153 |
-
color: #fff;
|
| 154 |
-
display: inline-block;
|
| 155 |
-
width: 24px;
|
| 156 |
-
height: 24px;
|
| 157 |
-
text-align: center;
|
| 158 |
-
line-height: 24px;
|
| 159 |
-
margin-left: 8px;
|
| 160 |
-
cursor: help;
|
| 161 |
-
}
|
| 162 |
-
|
| 163 |
-
body.dark-mode select {
|
| 164 |
-
background-color: #555;
|
| 165 |
-
color: #f0f0f5;
|
| 166 |
-
border: 1px solid #666;
|
| 167 |
-
border-radius: 8px;
|
| 168 |
-
width: 100%;
|
| 169 |
-
}
|
| 170 |
-
|
| 171 |
-
body.dark-mode select option {
|
| 172 |
-
background-color: #666;
|
| 173 |
-
color: #e0e0e0;
|
| 174 |
-
}
|
| 175 |
-
|
| 176 |
-
.logo {
|
| 177 |
-
margin-bottom: 20px;
|
| 178 |
-
}
|
| 179 |
-
|
| 180 |
-
.logo img {
|
| 181 |
-
max-width: 120px;
|
| 182 |
-
height: auto;
|
| 183 |
-
}
|
| 184 |
-
|
| 185 |
-
.name {
|
| 186 |
-
font-size: 2rem;
|
| 187 |
-
color: #333;
|
| 188 |
-
margin-bottom: 10px;
|
| 189 |
-
font-weight: 700;
|
| 190 |
-
}
|
| 191 |
-
|
| 192 |
-
.version {
|
| 193 |
-
font-size: 1.2rem;
|
| 194 |
-
color: #888;
|
| 195 |
-
}
|
| 196 |
-
|
| 197 |
-
.description {
|
| 198 |
-
font-size: 1rem;
|
| 199 |
-
color: #555;
|
| 200 |
-
margin-bottom: 20px;
|
| 201 |
-
}
|
| 202 |
-
|
| 203 |
-
.separator {
|
| 204 |
-
border-top: 1px solid #e0e0e0;
|
| 205 |
-
margin: 20px 0;
|
| 206 |
-
}
|
| 207 |
-
|
| 208 |
-
.provider-container {
|
| 209 |
-
display: flex;
|
| 210 |
-
flex-wrap: wrap;
|
| 211 |
-
gap: 15px;
|
| 212 |
-
justify-content: center;
|
| 213 |
-
}
|
| 214 |
-
|
| 215 |
-
.provider,
|
| 216 |
-
.selected-provider {
|
| 217 |
-
width: 80px;
|
| 218 |
-
height: 80px;
|
| 219 |
-
display: flex;
|
| 220 |
-
align-items: center;
|
| 221 |
-
justify-content: center;
|
| 222 |
-
background: #fff;
|
| 223 |
-
border-radius: 12px;
|
| 224 |
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
|
| 225 |
-
border: 2px solid #ccc;
|
| 226 |
-
overflow: hidden;
|
| 227 |
-
position: relative;
|
| 228 |
-
transition: border-color 0.3s, box-shadow 0.3s;
|
| 229 |
-
}
|
| 230 |
-
|
| 231 |
-
.provider img,
|
| 232 |
-
.selected-provider img {
|
| 233 |
-
max-width: 100%;
|
| 234 |
-
max-height: 100%;
|
| 235 |
-
object-fit: contain;
|
| 236 |
-
transition: filter 0.3s;
|
| 237 |
-
}
|
| 238 |
-
|
| 239 |
-
.provider:hover,
|
| 240 |
-
.selected-provider:hover {
|
| 241 |
-
border-color: #333;
|
| 242 |
-
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
|
| 243 |
-
}
|
| 244 |
-
|
| 245 |
-
.remove-button {
|
| 246 |
-
position: absolute;
|
| 247 |
-
top: 5px;
|
| 248 |
-
right: 5px;
|
| 249 |
-
background: #d90f0f;
|
| 250 |
-
color: #fff;
|
| 251 |
-
border: none;
|
| 252 |
-
border-radius: 50%;
|
| 253 |
-
width: 20px;
|
| 254 |
-
height: 20px;
|
| 255 |
-
display: flex;
|
| 256 |
-
align-items: center;
|
| 257 |
-
justify-content: center;
|
| 258 |
-
cursor: pointer;
|
| 259 |
-
font-size: 14px;
|
| 260 |
-
line-height: 20px;
|
| 261 |
-
padding: 0;
|
| 262 |
-
z-index: 1;
|
| 263 |
-
}
|
| 264 |
-
|
| 265 |
-
.remove-button:hover {
|
| 266 |
-
background: #a70202;
|
| 267 |
-
}
|
| 268 |
-
|
| 269 |
-
.pure-form {
|
| 270 |
-
margin-top: 20px;
|
| 271 |
-
}
|
| 272 |
-
|
| 273 |
-
.form-element {
|
| 274 |
-
margin-bottom: 20px;
|
| 275 |
-
text-align: left;
|
| 276 |
-
}
|
| 277 |
-
|
| 278 |
-
.form-element label {
|
| 279 |
-
display: block;
|
| 280 |
-
font-weight: 600;
|
| 281 |
-
margin-bottom: 5px;
|
| 282 |
-
font-size: 0.9rem;
|
| 283 |
-
}
|
| 284 |
-
|
| 285 |
-
.form-element input,
|
| 286 |
-
.form-element select {
|
| 287 |
-
width: 100%;
|
| 288 |
-
padding: 12px;
|
| 289 |
-
border: 1px solid #ccc;
|
| 290 |
-
border-radius: 8px;
|
| 291 |
-
font-size: 1rem;
|
| 292 |
-
color: #333;
|
| 293 |
-
}
|
| 294 |
-
|
| 295 |
-
.button-container {
|
| 296 |
-
display: flex;
|
| 297 |
-
gap: 15px;
|
| 298 |
-
justify-content: center;
|
| 299 |
-
margin-bottom: 20px;
|
| 300 |
-
}
|
| 301 |
-
|
| 302 |
-
button {
|
| 303 |
-
padding: 12px 24px;
|
| 304 |
-
border: none;
|
| 305 |
-
border-radius: 8px;
|
| 306 |
-
font-size: 1rem;
|
| 307 |
-
color: #fff;
|
| 308 |
-
cursor: pointer;
|
| 309 |
-
transition: background-color 0.3s, transform 0.2s;
|
| 310 |
-
}
|
| 311 |
-
|
| 312 |
-
#confirmButton {
|
| 313 |
-
background-color: #007aff;
|
| 314 |
-
}
|
| 315 |
-
|
| 316 |
-
#confirmButton:hover {
|
| 317 |
-
background-color: #007aff;
|
| 318 |
-
}
|
| 319 |
-
|
| 320 |
-
#installButton {
|
| 321 |
-
background-color: #007aff;
|
| 322 |
-
}
|
| 323 |
-
|
| 324 |
-
#installButton:hover {
|
| 325 |
-
background-color: #0051a8;
|
| 326 |
-
}
|
| 327 |
-
|
| 328 |
-
#copyButton {
|
| 329 |
-
background-color: #4caf50;
|
| 330 |
-
}
|
| 331 |
-
|
| 332 |
-
#copyButton:hover {
|
| 333 |
-
background-color: #388e3c;
|
| 334 |
-
}
|
| 335 |
-
|
| 336 |
-
.popup {
|
| 337 |
-
display: none;
|
| 338 |
-
position: fixed;
|
| 339 |
-
top: 20px;
|
| 340 |
-
right: 20px;
|
| 341 |
-
padding: 10px;
|
| 342 |
-
border-radius: 8px;
|
| 343 |
-
color: #fff;
|
| 344 |
-
background-color: #333;
|
| 345 |
-
font-size: 0.9rem;
|
| 346 |
-
}
|
| 347 |
-
|
| 348 |
-
.popup.success {
|
| 349 |
-
background-color: #4caf50;
|
| 350 |
-
}
|
| 351 |
-
|
| 352 |
-
.popup.error {
|
| 353 |
-
background-color: #f44336;
|
| 354 |
-
}
|
| 355 |
-
|
| 356 |
-
@media (max-width: 768px) {
|
| 357 |
-
.provider-container {
|
| 358 |
-
display: grid;
|
| 359 |
-
grid-template-columns: repeat(3, 1fr);
|
| 360 |
-
gap: 15px;
|
| 361 |
-
}
|
| 362 |
-
|
| 363 |
-
.provider {
|
| 364 |
-
width: 100%;
|
| 365 |
-
height: auto;
|
| 366 |
-
padding: 10px;
|
| 367 |
-
}
|
| 368 |
-
}
|
| 369 |
-
|
| 370 |
-
.popup {
|
| 371 |
-
display: none;
|
| 372 |
-
position: fixed;
|
| 373 |
-
top: 20px;
|
| 374 |
-
right: 20px;
|
| 375 |
-
padding: 10px;
|
| 376 |
-
border-radius: 8px;
|
| 377 |
-
color: #fff;
|
| 378 |
-
background-color: #333;
|
| 379 |
-
font-size: 0.9rem;
|
| 380 |
-
z-index: 1000;
|
| 381 |
-
}
|
| 382 |
-
|
| 383 |
-
.popup.success {
|
| 384 |
-
background-color: #4caf50;
|
| 385 |
-
}
|
| 386 |
-
|
| 387 |
-
.popup.error {
|
| 388 |
-
background-color: #f44336;
|
| 389 |
-
}
|
| 390 |
-
|
| 391 |
-
.info-icon {
|
| 392 |
-
font-size: 1.2rem;
|
| 393 |
-
color: #007aff;
|
| 394 |
-
cursor: pointer;
|
| 395 |
-
margin-left: 8px;
|
| 396 |
-
vertical-align: middle;
|
| 397 |
-
}
|
| 398 |
-
|
| 399 |
-
.modal {
|
| 400 |
-
display: none;
|
| 401 |
-
position: fixed;
|
| 402 |
-
top: 50%;
|
| 403 |
-
left: 50%;
|
| 404 |
-
transform: translate(-50%, -50%);
|
| 405 |
-
background-color: #fff;
|
| 406 |
-
padding: 20px;
|
| 407 |
-
border-radius: 8px;
|
| 408 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 409 |
-
z-index: 1000;
|
| 410 |
-
max-width: 500px;
|
| 411 |
-
width: 90%;
|
| 412 |
-
text-align: left;
|
| 413 |
-
}
|
| 414 |
-
|
| 415 |
-
.modal h4 {
|
| 416 |
-
margin-top: 0;
|
| 417 |
-
}
|
| 418 |
-
|
| 419 |
-
.modal-close {
|
| 420 |
-
position: absolute;
|
| 421 |
-
top: 10px;
|
| 422 |
-
right: 10px;
|
| 423 |
-
cursor: pointer;
|
| 424 |
-
font-size: 1.2rem;
|
| 425 |
-
color: #333;
|
| 426 |
-
}
|
| 427 |
-
|
| 428 |
-
@media only screen and (max-width: 768px) {
|
| 429 |
-
.modal {
|
| 430 |
-
height: 100vh;
|
| 431 |
-
max-height: 80vh;
|
| 432 |
-
margin: 0;
|
| 433 |
-
border: none;
|
| 434 |
-
overflow-y: auto;
|
| 435 |
-
}
|
| 436 |
-
|
| 437 |
-
.modal h4 {
|
| 438 |
-
margin-top: 0;
|
| 439 |
-
}
|
| 440 |
-
|
| 441 |
-
.modal-close {
|
| 442 |
-
position: absolute;
|
| 443 |
-
top: 10px;
|
| 444 |
-
right: 10px;
|
| 445 |
-
cursor: pointer;
|
| 446 |
-
font-size: 1.5rem;
|
| 447 |
-
color: #333;
|
| 448 |
-
}
|
| 449 |
-
}
|
| 450 |
-
|
| 451 |
-
.custom-select-container {
|
| 452 |
-
position: relative;
|
| 453 |
-
width: 100%;
|
| 454 |
-
}
|
| 455 |
-
|
| 456 |
-
.tags-input {
|
| 457 |
-
display: flex;
|
| 458 |
-
flex-wrap: wrap;
|
| 459 |
-
align-items: center;
|
| 460 |
-
gap: 5px;
|
| 461 |
-
padding: 5px;
|
| 462 |
-
border: 1px solid #ccc;
|
| 463 |
-
border-radius: 8px;
|
| 464 |
-
position: relative;
|
| 465 |
-
}
|
| 466 |
-
|
| 467 |
-
#regionSearchInput {
|
| 468 |
-
border: none;
|
| 469 |
-
outline: none;
|
| 470 |
-
flex-grow: 1;
|
| 471 |
-
padding: 8px;
|
| 472 |
-
font-size: 1rem;
|
| 473 |
-
min-width: 100px;
|
| 474 |
-
}
|
| 475 |
-
|
| 476 |
-
.custom-dropdown {
|
| 477 |
-
position: absolute;
|
| 478 |
-
top: 100%;
|
| 479 |
-
left: 0;
|
| 480 |
-
width: 100%;
|
| 481 |
-
max-height: 350px;
|
| 482 |
-
overflow-y: auto;
|
| 483 |
-
background-color: #fff;
|
| 484 |
-
border: 1px solid #ccc;
|
| 485 |
-
border-radius: 0 0 8px 8px;
|
| 486 |
-
z-index: 100;
|
| 487 |
-
display: none;
|
| 488 |
-
}
|
| 489 |
-
|
| 490 |
-
.dropdown-option {
|
| 491 |
-
padding: 8px;
|
| 492 |
-
cursor: pointer;
|
| 493 |
-
}
|
| 494 |
-
|
| 495 |
-
.dropdown-option:hover {
|
| 496 |
-
background-color: #f0f0f5;
|
| 497 |
-
}
|
| 498 |
-
|
| 499 |
-
.tag {
|
| 500 |
-
display: inline-flex;
|
| 501 |
-
align-items: center;
|
| 502 |
-
background-color: #e9e9ed;
|
| 503 |
-
color: #333;
|
| 504 |
-
border-radius: 8px;
|
| 505 |
-
padding: 5px 10px;
|
| 506 |
-
font-size: 0.9rem;
|
| 507 |
-
margin-right: 5px;
|
| 508 |
-
margin-bottom: 5px;
|
| 509 |
-
}
|
| 510 |
-
|
| 511 |
-
.tag .flag {
|
| 512 |
-
margin-right: 5px;
|
| 513 |
-
}
|
| 514 |
-
|
| 515 |
-
.tag .country-name {
|
| 516 |
-
margin-right: 5px;
|
| 517 |
-
}
|
| 518 |
-
|
| 519 |
-
body.dark-mode .custom-select-container {
|
| 520 |
-
background-color: #555;
|
| 521 |
-
color: #f0f0f5;
|
| 522 |
-
border: 1px solid #666;
|
| 523 |
-
border-radius: 8px;
|
| 524 |
-
width: 100%;
|
| 525 |
-
position: relative;
|
| 526 |
-
}
|
| 527 |
-
|
| 528 |
-
body.dark-mode .tags-input {
|
| 529 |
-
display: flex;
|
| 530 |
-
flex-wrap: wrap;
|
| 531 |
-
align-items: center;
|
| 532 |
-
gap: 5px;
|
| 533 |
-
padding: 5px;
|
| 534 |
-
background-color: #555;
|
| 535 |
-
border: 1px solid #666;
|
| 536 |
-
border-radius: 8px;
|
| 537 |
-
position: relative;
|
| 538 |
-
color: #f0f0f5;
|
| 539 |
-
}
|
| 540 |
-
|
| 541 |
-
body.dark-mode #regionSearchInput {
|
| 542 |
-
background-color: #555;
|
| 543 |
-
color: #f0f0f5;
|
| 544 |
-
border: none;
|
| 545 |
-
outline: none;
|
| 546 |
-
flex-grow: 1;
|
| 547 |
-
padding: 8px;
|
| 548 |
-
font-size: 1rem;
|
| 549 |
-
min-width: 100px;
|
| 550 |
-
}
|
| 551 |
-
|
| 552 |
-
body.dark-mode .custom-dropdown {
|
| 553 |
-
background-color: #555;
|
| 554 |
-
border: 1px solid #666;
|
| 555 |
-
border-radius: 0 0 8px 8px;
|
| 556 |
-
z-index: 100;
|
| 557 |
-
max-height: 350px;
|
| 558 |
-
overflow-y: auto;
|
| 559 |
-
display: none;
|
| 560 |
-
}
|
| 561 |
-
|
| 562 |
-
body.dark-mode .dropdown-option {
|
| 563 |
-
padding: 8px;
|
| 564 |
-
background-color: #555;
|
| 565 |
-
color: #f0f0f5;
|
| 566 |
-
cursor: pointer;
|
| 567 |
-
transition: background-color 0.2s;
|
| 568 |
-
}
|
| 569 |
-
|
| 570 |
-
body.dark-mode .dropdown-option:hover {
|
| 571 |
-
background-color: #666;
|
| 572 |
-
}
|
| 573 |
-
|
| 574 |
-
body.dark-mode .tag {
|
| 575 |
-
display: inline-flex;
|
| 576 |
-
align-items: center;
|
| 577 |
-
background-color: #666;
|
| 578 |
-
color: #f0f0f5;
|
| 579 |
-
border-radius: 8px;
|
| 580 |
-
padding: 5px 10px;
|
| 581 |
-
font-size: 0.9rem;
|
| 582 |
-
margin-right: 5px;
|
| 583 |
-
margin-bottom: 5px;
|
| 584 |
-
}
|
| 585 |
-
|
| 586 |
-
body.dark-mode .tag .flag,
|
| 587 |
-
body.dark-mode .tag .country-name {
|
| 588 |
-
color: #f0f0f5;
|
| 589 |
-
}
|
| 590 |
-
|
| 591 |
-
.toggle-switch {
|
| 592 |
-
position: relative;
|
| 593 |
-
display: inline-block;
|
| 594 |
-
width: 40px;
|
| 595 |
-
height: 20px;
|
| 596 |
-
margin-left: 10px;
|
| 597 |
-
vertical-align: middle;
|
| 598 |
-
}
|
| 599 |
-
|
| 600 |
-
.toggle-switch input {
|
| 601 |
-
opacity: 0;
|
| 602 |
-
width: 0;
|
| 603 |
-
height: 0;
|
| 604 |
-
}
|
| 605 |
-
|
| 606 |
-
.slider {
|
| 607 |
-
position: absolute;
|
| 608 |
-
cursor: pointer;
|
| 609 |
-
top: 0;
|
| 610 |
-
left: 0;
|
| 611 |
-
right: 0;
|
| 612 |
-
bottom: 0;
|
| 613 |
-
background-color: #ccc;
|
| 614 |
-
transition: 0.4s;
|
| 615 |
-
border-radius: 34px;
|
| 616 |
-
}
|
| 617 |
-
|
| 618 |
-
.slider:before {
|
| 619 |
-
position: absolute;
|
| 620 |
-
content: "";
|
| 621 |
-
height: 14px;
|
| 622 |
-
width: 14px;
|
| 623 |
-
left: 3px;
|
| 624 |
-
bottom: 3px;
|
| 625 |
-
background-color: white;
|
| 626 |
-
transition: 0.4s;
|
| 627 |
-
border-radius: 50%;
|
| 628 |
-
}
|
| 629 |
-
|
| 630 |
-
input:checked + .slider {
|
| 631 |
-
background-color: #4caf50;
|
| 632 |
-
}
|
| 633 |
-
|
| 634 |
-
input:checked + .slider:before {
|
| 635 |
-
transform: translateX(20px);
|
| 636 |
-
}
|
| 637 |
-
|
| 638 |
-
</style>
|
| 639 |
-
</head>
|
| 640 |
-
<html>
|
| 641 |
-
<body>
|
| 642 |
-
<div id="addon">
|
| 643 |
-
<div id="theme-toggle" class="theme-toggle" title="Toggle Dark/Light Mode"> 🌙 </div>
|
| 644 |
-
<div class="logo">
|
| 645 |
-
<img src="/assets/logo.png" alt="Addon Logo" />
|
| 646 |
-
</div>
|
| 647 |
-
<h1 class="name">Streaming Catalog Providers</h1>
|
| 648 |
-
<h2 class="version">1.0.0</h2>
|
| 649 |
-
|
| 650 |
-
<div id="interface1">
|
| 651 |
-
<div class="form-element">
|
| 652 |
-
<label for="tmdbApiKey">TMDB API key (<a href="https://www.themoviedb.org/settings/api" target="_blank" style="color: #007aff;">Get it here</a>)</label>
|
| 653 |
-
<input type="text" id="tmdbApiKey" name="tmdbApiKey" required />
|
| 654 |
-
</div>
|
| 655 |
-
<button type="button" id="confirmButton">CONFIRM</button>
|
| 656 |
-
</div>
|
| 657 |
-
|
| 658 |
-
<div id="interface2" style="display: none;">
|
| 659 |
-
<h2 class="description">Choose your streaming providers below.</h2>
|
| 660 |
-
<div class="separator"></div>
|
| 661 |
-
<h3 class="providers-title">Available providers</h3>
|
| 662 |
-
<div class="form-element">
|
| 663 |
-
<label for="countrySelect">Select your country</label>
|
| 664 |
-
<select id="countrySelect" name="countrySelect">
|
| 665 |
-
</select>
|
| 666 |
-
</div>
|
| 667 |
-
<div class="form-element">
|
| 668 |
-
<input type="text" id="searchProviders" placeholder="Search providers..." />
|
| 669 |
-
</div>
|
| 670 |
-
<div id="providers" class="provider-container"></div>
|
| 671 |
-
<div class="separator"></div>
|
| 672 |
-
<form class="pure-form" id="mainForm">
|
| 673 |
-
<div class="form-element">
|
| 674 |
-
<label for="regionSelect">Catalog regions</label>
|
| 675 |
-
<div class="custom-select-container" id="regionSelectContainer">
|
| 676 |
-
<div class="tags-input" id="tagsInput">
|
| 677 |
-
<input type="text" id="regionSearchInput" placeholder="Type or select a region..." />
|
| 678 |
-
</div>
|
| 679 |
-
<div id="regionDropdown" class="custom-dropdown"></div>
|
| 680 |
-
</div>
|
| 681 |
-
</div>
|
| 682 |
-
<div class="form-element">
|
| 683 |
-
<label for="language"> Language </label>
|
| 684 |
-
<select id="language" name="language" required>
|
| 685 |
-
<option value="">Select your language</option>
|
| 686 |
-
</select>
|
| 687 |
-
</div>
|
| 688 |
-
<div class="form-element">
|
| 689 |
-
<label for="ageRange"> Age range (content moderation) <span id="infoIcon" class="info-icon" title="Learn more">?</span>
|
| 690 |
-
</label>
|
| 691 |
-
<select id="ageRange" name="ageRange">
|
| 692 |
-
<option value="">Select your age range</option>
|
| 693 |
-
<option value="0-5">0-5 years</option>
|
| 694 |
-
<option value="6-11">6-11 years</option>
|
| 695 |
-
<option value="12-15">12-15 years</option>
|
| 696 |
-
<option value="16-17">16-17 years</option>
|
| 697 |
-
<option value="18+">18+ years</option>
|
| 698 |
-
</select>
|
| 699 |
-
</div>
|
| 700 |
-
<div class="separator"></div>
|
| 701 |
-
<div class="form-element">
|
| 702 |
-
<label for="rpdbApiKey">RPDB API key (<a href="https://ratingposterdb.com/api-key/" target="_blank" style="color: #007aff;">Get it here</a>) </label>
|
| 703 |
-
<input type="text" id="rpdbApiKey" name="rpdbApiKey">
|
| 704 |
-
</div>
|
| 705 |
-
<div class="separator"></div>
|
| 706 |
-
<div class="form-element">
|
| 707 |
-
<label for="filterContentWithoutPoster">
|
| 708 |
-
Do not display content that does not have a poster (often bad results)
|
| 709 |
-
<div class="toggle-switch">
|
| 710 |
-
<input type="checkbox" id="filterContentWithoutPoster" name="filterContentWithoutPoster" value="true">
|
| 711 |
-
<span class="slider"></span>
|
| 712 |
-
</div>
|
| 713 |
-
</label>
|
| 714 |
-
</div>
|
| 715 |
-
<div class="separator"></div>
|
| 716 |
-
<h3 class="selected-providers-title">Selected providers</h3>
|
| 717 |
-
<div id="selectedProviders" class="provider-container"></div>
|
| 718 |
-
<div class="separator"></div>
|
| 719 |
-
<div class="button-container">
|
| 720 |
-
<button type="button" id="installButton">INSTALL</button>
|
| 721 |
-
<button type="button" id="copyButton">COPY LINK</button>
|
| 722 |
-
</div>
|
| 723 |
-
<div class="separator"></div>
|
| 724 |
-
</form>
|
| 725 |
-
<div id="popup" class="popup"></div>
|
| 726 |
-
<div id="infoModal" class="modal">
|
| 727 |
-
<span id="modalClose" class="modal-close">×</span>
|
| 728 |
-
<h4>Age Range Content Moderation</h4>
|
| 729 |
-
<p> The content moderation system filters media based on the selected age range to ensure suitability for viewers. Here's how it works: </p>
|
| 730 |
-
<ul>
|
| 731 |
-
<li>
|
| 732 |
-
<strong>0-5 years:</strong> Uses the US certification 'G' (General Audience). Filters out content that is not suitable for very young children. This includes genres such as horror, drama, thriller, crime, war, western, erotic, war & politics, talk-show, soap-opera, reality-show, news, mystery, documentary, and history.
|
| 733 |
-
</li>
|
| 734 |
-
<li>
|
| 735 |
-
<strong>6-11 years:</strong> Uses the US certification 'G' (General Audience). Filters out content unsuitable for young children, maintaining a focus on safe, family-friendly genres. The same genres as for 0-5 years are excluded.
|
| 736 |
-
</li>
|
| 737 |
-
<li>
|
| 738 |
-
<strong>12-15 years:</strong> Uses the US certification 'PG' (Parental Guidance). Allows content with mild themes appropriate for older children and pre-teens. No specific genres are excluded for this age range.
|
| 739 |
-
</li>
|
| 740 |
-
<li>
|
| 741 |
-
<strong>16-17 years:</strong> Uses the US certification 'PG-13' (Parents Strongly Cautioned). Permits content suitable for older teens, including more complex and mature themes but not adult content. No specific genres are excluded for this age range.
|
| 742 |
-
</li>
|
| 743 |
-
<li>
|
| 744 |
-
<strong>18+ years:</strong> Includes all content, even those with adult themes and explicit material. For this age range, no genres are excluded.
|
| 745 |
-
</li>
|
| 746 |
-
</ul>
|
| 747 |
-
<p>
|
| 748 |
-
<p>
|
| 749 |
-
<strong>Warning:</strong> Please note that the data for this content moderation system is sourced from TMDB (The Movie Database) and may contain inaccuracies. Viewer discretion is advised.
|
| 750 |
-
</p>
|
| 751 |
-
</p>
|
| 752 |
-
</div>
|
| 753 |
-
</div>
|
| 754 |
-
</div>
|
| 755 |
-
<script src="/js/languages.js"></script>
|
| 756 |
-
<script src="/js/countries.js"></script>
|
| 757 |
-
<script>
|
| 758 |
-
document.addEventListener('DOMContentLoaded', () => {
|
| 759 |
-
function populateLanguageDropdown() {
|
| 760 |
-
const dropdown = document.getElementById('language');
|
| 761 |
-
languages.forEach(lang => {
|
| 762 |
-
const option = document.createElement('option');
|
| 763 |
-
option.value = lang.iso_639_1;
|
| 764 |
-
option.textContent = lang.english_name + (lang.name ? ` (${lang.name})` : '');
|
| 765 |
-
dropdown.appendChild(option);
|
| 766 |
-
});
|
| 767 |
-
}
|
| 768 |
-
populateLanguageDropdown();
|
| 769 |
-
|
| 770 |
-
const mainForm = document.getElementById('mainForm');
|
| 771 |
-
const installButton = document.getElementById('installButton');
|
| 772 |
-
const copyButton = document.getElementById('copyButton');
|
| 773 |
-
const popup = document.getElementById('popup');
|
| 774 |
-
const providersContainer = document.getElementById('providers');
|
| 775 |
-
const infoIcon = document.getElementById('infoIcon');
|
| 776 |
-
const infoModal = document.getElementById('infoModal');
|
| 777 |
-
const modalClose = document.getElementById('modalClose');
|
| 778 |
-
const selectedProvidersContainer = document.getElementById('selectedProviders');
|
| 779 |
-
const confirmButton = document.getElementById('confirmButton');
|
| 780 |
-
const interface1 = document.getElementById('interface1');
|
| 781 |
-
const interface2 = document.getElementById('interface2');
|
| 782 |
-
let providersData = [];
|
| 783 |
-
let selectedProviders = [];
|
| 784 |
-
let providersMap = {};
|
| 785 |
-
|
| 786 |
-
new Sortable(selectedProvidersContainer, {
|
| 787 |
-
animation: 150,
|
| 788 |
-
ghostClass: 'sortable-ghost',
|
| 789 |
-
onEnd: (evt) => {
|
| 790 |
-
selectedProviders = Array.from(selectedProvidersContainer.querySelectorAll('.selected-provider')).map(div => div.getAttribute('data-id'));
|
| 791 |
-
}
|
| 792 |
-
});
|
| 793 |
-
|
| 794 |
-
const renderSelectedProviders = () => {
|
| 795 |
-
selectedProvidersContainer.innerHTML = selectedProviders.map(providerId => {
|
| 796 |
-
const provider = providersMap[providerId];
|
| 797 |
-
if (!provider) return '';
|
| 798 |
-
return `
|
| 799 |
-
<div class="selected-provider" data-id="${providerId}">
|
| 800 |
-
<img src="https://image.tmdb.org/t/p/w500/${provider.logo_path}" alt="${provider.provider_name}" title="${provider.provider_name}" />
|
| 801 |
-
<button class="remove-button" data-id="${providerId}">×</button>
|
| 802 |
-
</div>`;
|
| 803 |
-
}).join('');
|
| 804 |
-
|
| 805 |
-
document.querySelectorAll('.remove-button').forEach(button => {
|
| 806 |
-
button.addEventListener('click', (event) => {
|
| 807 |
-
const providerId = event.target.getAttribute('data-id');
|
| 808 |
-
selectedProviders = selectedProviders.filter(id => id !== providerId);
|
| 809 |
-
const providerElement = document.querySelector(`.provider[data-id="${providerId}"]`);
|
| 810 |
-
if (providerElement) providerElement.style.display = 'block';
|
| 811 |
-
renderSelectedProviders();
|
| 812 |
-
});
|
| 813 |
-
});
|
| 814 |
-
};
|
| 815 |
-
|
| 816 |
-
const populateCountryDropdown = () => {
|
| 817 |
-
const countrySelect = document.getElementById('countrySelect');
|
| 818 |
-
const allOption = document.createElement('option');
|
| 819 |
-
allOption.value = 'ALL';
|
| 820 |
-
allOption.textContent = '🌍 Everywhere';
|
| 821 |
-
allOption.selected = true;
|
| 822 |
-
countrySelect.appendChild(allOption);
|
| 823 |
-
|
| 824 |
-
const sortedCountries = countries.sort((a, b) => a.english_name.localeCompare(b.english_name));
|
| 825 |
-
sortedCountries.forEach(country => {
|
| 826 |
-
const option = document.createElement('option');
|
| 827 |
-
option.value = country.iso_3166_1;
|
| 828 |
-
|
| 829 |
-
const flag = country.iso_3166_1
|
| 830 |
-
.toUpperCase()
|
| 831 |
-
.replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt()));
|
| 832 |
-
option.textContent = `${flag} ${country.english_name}`;
|
| 833 |
-
countrySelect.appendChild(option);
|
| 834 |
-
});
|
| 835 |
-
};
|
| 836 |
-
|
| 837 |
-
populateCountryDropdown();
|
| 838 |
-
document.getElementById('countrySelect').addEventListener('change', function() {
|
| 839 |
-
const selectedCountry = this.value;
|
| 840 |
-
renderProviders(selectedCountry);
|
| 841 |
-
|
| 842 |
-
const searchTerm = document.getElementById('searchProviders').value.toLowerCase();
|
| 843 |
-
document.querySelectorAll('#providers .provider').forEach(providerElement => {
|
| 844 |
-
const providerId = providerElement.getAttribute('data-id');
|
| 845 |
-
const providerName = providersMap[providerId].provider_name.toLowerCase();
|
| 846 |
-
providerElement.style.display = providerName.includes(searchTerm) ? 'flex' : 'none';
|
| 847 |
-
});
|
| 848 |
-
});
|
| 849 |
-
|
| 850 |
-
const fetchProviders = async (apiKey) => {
|
| 851 |
-
try {
|
| 852 |
-
const response = await fetch('/fetch-providers', {
|
| 853 |
-
method: 'POST',
|
| 854 |
-
headers: {
|
| 855 |
-
'Content-Type': 'application/json',
|
| 856 |
-
},
|
| 857 |
-
body: JSON.stringify({ apiKey }),
|
| 858 |
-
});
|
| 859 |
-
|
| 860 |
-
if (!response.ok) {
|
| 861 |
-
throw new Error('Failed to fetch providers');
|
| 862 |
-
}
|
| 863 |
-
|
| 864 |
-
const providers = await response.json();
|
| 865 |
-
return providers;
|
| 866 |
-
} catch (error) {
|
| 867 |
-
console.error('Error fetching providers:', error);
|
| 868 |
-
showPopup('Failed to fetch providers. Please check your API key and try again.', 'error');
|
| 869 |
-
return [];
|
| 870 |
-
}
|
| 871 |
-
};
|
| 872 |
-
|
| 873 |
-
const renderProviders = (countryCode) => {
|
| 874 |
-
let filteredProviders;
|
| 875 |
-
|
| 876 |
-
if (countryCode === 'ALL') {
|
| 877 |
-
filteredProviders = providersData;
|
| 878 |
-
} else {
|
| 879 |
-
filteredProviders = providersData.filter(provider => {
|
| 880 |
-
const displayPriorities = JSON.parse(provider.display_priorities || '{}');
|
| 881 |
-
return displayPriorities[countryCode] !== undefined;
|
| 882 |
-
});
|
| 883 |
-
}
|
| 884 |
-
|
| 885 |
-
filteredProviders = filteredProviders.filter(provider => {
|
| 886 |
-
const isSelected = selectedProviders.includes(provider.provider_id.toString());
|
| 887 |
-
return !isSelected;
|
| 888 |
-
});
|
| 889 |
-
|
| 890 |
-
filteredProviders.forEach(provider => {
|
| 891 |
-
providersMap[provider.provider_id] = provider;
|
| 892 |
-
});
|
| 893 |
-
|
| 894 |
-
filteredProviders.sort((a, b) => a.provider_name.localeCompare(b.provider_name));
|
| 895 |
-
providersContainer.innerHTML = filteredProviders.map(provider => `
|
| 896 |
-
<div class="provider" data-id="${provider.provider_id}">
|
| 897 |
-
<img src="https://image.tmdb.org/t/p/w500/${provider.logo_path}" alt="${provider.provider_name}" title="${provider.provider_name}" />
|
| 898 |
-
</div>`).join('');
|
| 899 |
-
|
| 900 |
-
document.querySelectorAll('.provider').forEach(provider => {
|
| 901 |
-
provider.addEventListener('click', () => {
|
| 902 |
-
const providerId = provider.getAttribute('data-id');
|
| 903 |
-
if (selectedProviders.includes(providerId)) {
|
| 904 |
-
selectedProviders = selectedProviders.filter(id => id !== providerId);
|
| 905 |
-
provider.style.display = 'block';
|
| 906 |
-
} else {
|
| 907 |
-
selectedProviders.push(providerId);
|
| 908 |
-
provider.style.display = 'none';
|
| 909 |
-
}
|
| 910 |
-
renderSelectedProviders();
|
| 911 |
-
});
|
| 912 |
-
});
|
| 913 |
-
};
|
| 914 |
-
|
| 915 |
-
confirmButton.addEventListener('click', async () => {
|
| 916 |
-
const apiKey = document.getElementById('tmdbApiKey').value.trim();
|
| 917 |
-
if (!apiKey) {
|
| 918 |
-
alert('Please enter your TMDB API key.');
|
| 919 |
-
return;
|
| 920 |
-
}
|
| 921 |
-
|
| 922 |
-
providersData = await fetchProviders(apiKey);
|
| 923 |
-
populateProvidersMap();
|
| 924 |
-
|
| 925 |
-
const event = new Event('providersLoaded');
|
| 926 |
-
confirmButton.dispatchEvent(event);
|
| 927 |
-
|
| 928 |
-
renderProviders('ALL');
|
| 929 |
-
interface1.style.display = 'none';
|
| 930 |
-
interface2.style.display = 'block';
|
| 931 |
-
});
|
| 932 |
-
|
| 933 |
-
|
| 934 |
-
const showInfoModal = () => {
|
| 935 |
-
infoModal.style.display = 'block';
|
| 936 |
-
};
|
| 937 |
-
const hideInfoModal = () => {
|
| 938 |
-
infoModal.style.display = 'none';
|
| 939 |
-
};
|
| 940 |
-
infoIcon.addEventListener('click', showInfoModal);
|
| 941 |
-
modalClose.addEventListener('click', hideInfoModal);
|
| 942 |
-
|
| 943 |
-
let selectedRegions = [];
|
| 944 |
-
|
| 945 |
-
const populateRegionDropdown = () => {
|
| 946 |
-
const regionDropdown = document.getElementById('regionDropdown');
|
| 947 |
-
regionDropdown.innerHTML = '';
|
| 948 |
-
|
| 949 |
-
const sortedCountries = countries.sort((a, b) => a.english_name.localeCompare(b.english_name));
|
| 950 |
-
|
| 951 |
-
sortedCountries.forEach(country => {
|
| 952 |
-
const option = document.createElement('div');
|
| 953 |
-
option.className = 'dropdown-option';
|
| 954 |
-
option.setAttribute('data-value', country.iso_3166_1);
|
| 955 |
-
|
| 956 |
-
const flag = country.iso_3166_1
|
| 957 |
-
.toUpperCase()
|
| 958 |
-
.replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt()));
|
| 959 |
-
option.innerHTML = `${flag} ${country.english_name}`;
|
| 960 |
-
option.onclick = () => {
|
| 961 |
-
addSelectedRegion(country.iso_3166_1, flag, country.english_name);
|
| 962 |
-
filterRegionDropdown('');
|
| 963 |
-
document.getElementById('regionSearchInput').value = '';
|
| 964 |
-
regionDropdown.style.display = 'none';
|
| 965 |
-
};
|
| 966 |
-
regionDropdown.appendChild(option);
|
| 967 |
-
});
|
| 968 |
-
};
|
| 969 |
-
|
| 970 |
-
const filterRegionDropdown = (searchTerm) => {
|
| 971 |
-
const options = document.querySelectorAll('.dropdown-option');
|
| 972 |
-
options.forEach(option => {
|
| 973 |
-
const text = option.textContent.toLowerCase();
|
| 974 |
-
option.style.display = text.includes(searchTerm.toLowerCase()) ? 'block' : 'none';
|
| 975 |
-
});
|
| 976 |
-
document.getElementById('regionDropdown').style.display = 'block';
|
| 977 |
-
};
|
| 978 |
-
|
| 979 |
-
document.getElementById('regionSearchInput').addEventListener('input', function () {
|
| 980 |
-
const searchTerm = this.value;
|
| 981 |
-
filterRegionDropdown(searchTerm);
|
| 982 |
-
});
|
| 983 |
-
|
| 984 |
-
const addSelectedRegion = (regionCode, flag, countryName) => {
|
| 985 |
-
if (!selectedRegions.includes(regionCode)) {
|
| 986 |
-
selectedRegions.push(regionCode);
|
| 987 |
-
const tag = document.createElement('span');
|
| 988 |
-
tag.className = 'tag';
|
| 989 |
-
tag.setAttribute('data-id', regionCode);
|
| 990 |
-
tag.innerHTML = `
|
| 991 |
-
<span class="flag">${flag}</span>
|
| 992 |
-
<span class="country-name">${countryName}</span>
|
| 993 |
-
`;
|
| 994 |
-
tag.addEventListener('click', () => {
|
| 995 |
-
removeSelectedRegion(regionCode);
|
| 996 |
-
});
|
| 997 |
-
document.getElementById('regionSearchInput').parentNode.insertBefore(tag, document.getElementById('regionSearchInput'));
|
| 998 |
-
}
|
| 999 |
-
};
|
| 1000 |
-
|
| 1001 |
-
const removeSelectedRegion = (regionCode) => {
|
| 1002 |
-
selectedRegions = selectedRegions.filter(code => code !== regionCode);
|
| 1003 |
-
document.querySelector(`.tag[data-id='${regionCode}']`).remove();
|
| 1004 |
-
};
|
| 1005 |
-
|
| 1006 |
-
populateRegionDropdown();
|
| 1007 |
-
|
| 1008 |
-
document.getElementById('regionSearchInput').addEventListener('focus', function () {
|
| 1009 |
-
document.getElementById('regionDropdown').style.display = 'block';
|
| 1010 |
-
});
|
| 1011 |
-
|
| 1012 |
-
document.addEventListener('click', function (event) {
|
| 1013 |
-
const regionContainer = document.getElementById('regionSelectContainer');
|
| 1014 |
-
if (!regionContainer.contains(event.target)) {
|
| 1015 |
-
document.getElementById('regionDropdown').style.display = 'none';
|
| 1016 |
-
}
|
| 1017 |
-
});
|
| 1018 |
-
|
| 1019 |
-
const encodeToBase64 = (str) => {
|
| 1020 |
-
return btoa(unescape(encodeURIComponent(str)));
|
| 1021 |
-
};
|
| 1022 |
-
|
| 1023 |
-
const getStremioLink = () => {
|
| 1024 |
-
const config = Object.fromEntries(new FormData(mainForm));
|
| 1025 |
-
config.providers = selectedProviders;
|
| 1026 |
-
config.ageRange = document.getElementById('ageRange').value;
|
| 1027 |
-
config.tmdbApiKey = document.getElementById('tmdbApiKey').value.trim();
|
| 1028 |
-
config.regions = selectedRegions;
|
| 1029 |
-
config.filterContentWithoutPoster = document.getElementById('filterContentWithoutPoster').checked ? 'true' : '';
|
| 1030 |
-
|
| 1031 |
-
const encodedConfig = encodeToBase64(JSON.stringify(config));
|
| 1032 |
-
return "stremio://" + window.location.host + "/" + encodedConfig + "/manifest.json";
|
| 1033 |
-
};
|
| 1034 |
-
|
| 1035 |
-
const getHttpsLink = () => {
|
| 1036 |
-
const config = Object.fromEntries(new FormData(mainForm));
|
| 1037 |
-
config.providers = selectedProviders;
|
| 1038 |
-
config.ageRange = document.getElementById('ageRange').value;
|
| 1039 |
-
config.tmdbApiKey = document.getElementById('tmdbApiKey').value.trim();
|
| 1040 |
-
config.regions = selectedRegions;
|
| 1041 |
-
config.filterContentWithoutPoster = document.getElementById('filterContentWithoutPoster').checked ? 'true' : '';
|
| 1042 |
-
|
| 1043 |
-
const encodedConfig = encodeToBase64(JSON.stringify(config));
|
| 1044 |
-
return "https://" + window.location.host + "/" + encodedConfig + "/manifest.json";
|
| 1045 |
-
};
|
| 1046 |
-
|
| 1047 |
-
const showPopup = (message, type) => {
|
| 1048 |
-
popup.textContent = message;
|
| 1049 |
-
popup.className = `popup ${type}`;
|
| 1050 |
-
popup.style.display = 'block';
|
| 1051 |
-
setTimeout(() => {
|
| 1052 |
-
popup.style.display = 'none';
|
| 1053 |
-
}, 8000);
|
| 1054 |
-
};
|
| 1055 |
-
|
| 1056 |
-
const validateForm = () => {
|
| 1057 |
-
const language = document.getElementById('language').value.trim();
|
| 1058 |
-
const ageRange = document.getElementById('ageRange').value.trim();
|
| 1059 |
-
const regionSearchInput = document.getElementById('regionSearchInput').value.trim();
|
| 1060 |
-
|
| 1061 |
-
const isRegionSelected = selectedRegions.length > 0;
|
| 1062 |
-
|
| 1063 |
-
return isRegionSelected && language && ageRange && selectedProviders.length > 0;
|
| 1064 |
-
};
|
| 1065 |
-
|
| 1066 |
-
copyButton.onclick = () => {
|
| 1067 |
-
if (!validateForm()) {
|
| 1068 |
-
showPopup('Configuration incomplete: Please select at least one Catalog regions, your Language, an Age Range and choose at least one provider.', 'error');
|
| 1069 |
-
return;
|
| 1070 |
-
}
|
| 1071 |
-
const link = getHttpsLink();
|
| 1072 |
-
navigator.clipboard.writeText(link).then(() => {
|
| 1073 |
-
showPopup('Link copied to clipboard!', 'success');
|
| 1074 |
-
}).catch(err => {
|
| 1075 |
-
console.error('Failed to copy the link: ', err);
|
| 1076 |
-
showPopup('Failed to copy the link.', 'error');
|
| 1077 |
-
});
|
| 1078 |
-
};
|
| 1079 |
-
|
| 1080 |
-
installButton.onclick = () => {
|
| 1081 |
-
if (!validateForm()) {
|
| 1082 |
-
showPopup('Configuration incomplete: Please select at least one Catalog regions, your Language, an Age Range and choose at least one provider.', 'error');
|
| 1083 |
-
return;
|
| 1084 |
-
}
|
| 1085 |
-
const link = getStremioLink();
|
| 1086 |
-
window.location.href = link;
|
| 1087 |
-
};
|
| 1088 |
-
|
| 1089 |
-
document.getElementById('theme-toggle').addEventListener('click', () => {
|
| 1090 |
-
document.body.classList.toggle('dark-mode');
|
| 1091 |
-
const isDarkMode = document.body.classList.contains('dark-mode');
|
| 1092 |
-
document.getElementById('theme-toggle').textContent = isDarkMode ? '🌞' : '🌙';
|
| 1093 |
-
});
|
| 1094 |
-
|
| 1095 |
-
document.getElementById('searchProviders').addEventListener('input', function(event) {
|
| 1096 |
-
const searchTerm = event.target.value.toLowerCase();
|
| 1097 |
-
document.querySelectorAll('#providers .provider').forEach(providerElement => {
|
| 1098 |
-
const providerId = providerElement.getAttribute('data-id');
|
| 1099 |
-
const providerName = providersMap[providerId].provider_name.toLowerCase();
|
| 1100 |
-
providerElement.style.display = providerName.includes(searchTerm) && !selectedProviders.includes(providerId) ? 'flex' : 'none';
|
| 1101 |
-
});
|
| 1102 |
-
if (searchTerm === '') {
|
| 1103 |
-
document.querySelectorAll('#providers .provider').forEach(providerElement => {
|
| 1104 |
-
const providerId = providerElement.getAttribute('data-id');
|
| 1105 |
-
providerElement.style.display = selectedProviders.includes(providerId) ? 'none' : 'flex';
|
| 1106 |
-
});
|
| 1107 |
-
}
|
| 1108 |
-
});
|
| 1109 |
-
function getQueryParams() {
|
| 1110 |
-
const url = new URL(window.location.href);
|
| 1111 |
-
const path = url.pathname;
|
| 1112 |
-
const decodedPath = decodeURIComponent(path);
|
| 1113 |
-
const configMatch = decodedPath.match(/\{.*\}/);
|
| 1114 |
-
if (configMatch) {
|
| 1115 |
-
try {
|
| 1116 |
-
const config = JSON.parse(configMatch[0]);
|
| 1117 |
-
return config;
|
| 1118 |
-
} catch (error) {
|
| 1119 |
-
console.error('Error parsing configuration parameters:', error);
|
| 1120 |
-
showPopup('Error parsing configuration parameters. Please check your input and try again.', 'error');
|
| 1121 |
-
}
|
| 1122 |
-
}
|
| 1123 |
-
return {};
|
| 1124 |
-
}
|
| 1125 |
-
|
| 1126 |
-
function prefillFormFromUrlParams() {
|
| 1127 |
-
const params = getQueryParams();
|
| 1128 |
-
|
| 1129 |
-
if (params.tmdbApiKey) {
|
| 1130 |
-
document.getElementById('tmdbApiKey').value = params.tmdbApiKey;
|
| 1131 |
-
confirmButton.click();
|
| 1132 |
-
}
|
| 1133 |
-
|
| 1134 |
-
if (params.language) {
|
| 1135 |
-
document.getElementById('language').value = params.language;
|
| 1136 |
-
}
|
| 1137 |
-
|
| 1138 |
-
if (params.ageRange) {
|
| 1139 |
-
document.getElementById('ageRange').value = params.ageRange;
|
| 1140 |
-
}
|
| 1141 |
-
|
| 1142 |
-
if (params.rpdbApiKey) {
|
| 1143 |
-
document.getElementById('rpdbApiKey').value = params.rpdbApiKey;
|
| 1144 |
-
}
|
| 1145 |
-
|
| 1146 |
-
if (params.filterContentWithoutPoster === 'true') {
|
| 1147 |
-
document.getElementById('filterContentWithoutPoster').checked = true;
|
| 1148 |
-
}
|
| 1149 |
-
|
| 1150 |
-
if (params.providers) {
|
| 1151 |
-
selectedProviders = params.providers;
|
| 1152 |
-
|
| 1153 |
-
if (providersData.length > 0) {
|
| 1154 |
-
populateProvidersMap();
|
| 1155 |
-
renderSelectedProviders();
|
| 1156 |
-
} else {
|
| 1157 |
-
confirmButton.addEventListener('providersLoaded', () => {
|
| 1158 |
-
populateProvidersMap();
|
| 1159 |
-
renderSelectedProviders();
|
| 1160 |
-
}, { once: true });
|
| 1161 |
-
}
|
| 1162 |
-
}
|
| 1163 |
-
|
| 1164 |
-
if (params.regions) {
|
| 1165 |
-
params.regions.forEach(regionCode => {
|
| 1166 |
-
const country = countries.find(c => c.iso_3166_1 === regionCode);
|
| 1167 |
-
if (country) {
|
| 1168 |
-
const flag = country.iso_3166_1.toUpperCase().replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt()));
|
| 1169 |
-
addSelectedRegion(country.iso_3166_1, flag, country.english_name);
|
| 1170 |
-
}
|
| 1171 |
-
});
|
| 1172 |
-
}
|
| 1173 |
-
}
|
| 1174 |
-
|
| 1175 |
-
const populateProvidersMap = () => {
|
| 1176 |
-
providersData.forEach(provider => {
|
| 1177 |
-
providersMap[provider.provider_id] = provider;
|
| 1178 |
-
});
|
| 1179 |
-
};
|
| 1180 |
-
|
| 1181 |
-
prefillFormFromUrlParams();
|
| 1182 |
-
});
|
| 1183 |
-
</script>
|
| 1184 |
-
</body>
|
| 1185 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public/js/countries.js
DELETED
|
@@ -1,697 +0,0 @@
|
|
| 1 |
-
const countries = [
|
| 2 |
-
{
|
| 3 |
-
"iso_3166_1": "AD",
|
| 4 |
-
"english_name": "Andorra",
|
| 5 |
-
"native_name": "Andorra"
|
| 6 |
-
},
|
| 7 |
-
{
|
| 8 |
-
"iso_3166_1": "AE",
|
| 9 |
-
"english_name": "United Arab Emirates",
|
| 10 |
-
"native_name": "United Arab Emirates"
|
| 11 |
-
},
|
| 12 |
-
{
|
| 13 |
-
"iso_3166_1": "AG",
|
| 14 |
-
"english_name": "Antigua and Barbuda",
|
| 15 |
-
"native_name": "Antigua & Barbuda"
|
| 16 |
-
},
|
| 17 |
-
{
|
| 18 |
-
"iso_3166_1": "AL",
|
| 19 |
-
"english_name": "Albania",
|
| 20 |
-
"native_name": "Albania"
|
| 21 |
-
},
|
| 22 |
-
{
|
| 23 |
-
"iso_3166_1": "AO",
|
| 24 |
-
"english_name": "Angola",
|
| 25 |
-
"native_name": "Angola"
|
| 26 |
-
},
|
| 27 |
-
{
|
| 28 |
-
"iso_3166_1": "AR",
|
| 29 |
-
"english_name": "Argentina",
|
| 30 |
-
"native_name": "Argentina"
|
| 31 |
-
},
|
| 32 |
-
{
|
| 33 |
-
"iso_3166_1": "AT",
|
| 34 |
-
"english_name": "Austria",
|
| 35 |
-
"native_name": "Austria"
|
| 36 |
-
},
|
| 37 |
-
{
|
| 38 |
-
"iso_3166_1": "AU",
|
| 39 |
-
"english_name": "Australia",
|
| 40 |
-
"native_name": "Australia"
|
| 41 |
-
},
|
| 42 |
-
{
|
| 43 |
-
"iso_3166_1": "AZ",
|
| 44 |
-
"english_name": "Azerbaijan",
|
| 45 |
-
"native_name": "Azerbaijan"
|
| 46 |
-
},
|
| 47 |
-
{
|
| 48 |
-
"iso_3166_1": "BA",
|
| 49 |
-
"english_name": "Bosnia and Herzegovina",
|
| 50 |
-
"native_name": "Bosnia & Herzegovina"
|
| 51 |
-
},
|
| 52 |
-
{
|
| 53 |
-
"iso_3166_1": "BB",
|
| 54 |
-
"english_name": "Barbados",
|
| 55 |
-
"native_name": "Barbados"
|
| 56 |
-
},
|
| 57 |
-
{
|
| 58 |
-
"iso_3166_1": "BE",
|
| 59 |
-
"english_name": "Belgium",
|
| 60 |
-
"native_name": "Belgium"
|
| 61 |
-
},
|
| 62 |
-
{
|
| 63 |
-
"iso_3166_1": "BF",
|
| 64 |
-
"english_name": "Burkina Faso",
|
| 65 |
-
"native_name": "Burkina Faso"
|
| 66 |
-
},
|
| 67 |
-
{
|
| 68 |
-
"iso_3166_1": "BG",
|
| 69 |
-
"english_name": "Bulgaria",
|
| 70 |
-
"native_name": "Bulgaria"
|
| 71 |
-
},
|
| 72 |
-
{
|
| 73 |
-
"iso_3166_1": "BH",
|
| 74 |
-
"english_name": "Bahrain",
|
| 75 |
-
"native_name": "Bahrain"
|
| 76 |
-
},
|
| 77 |
-
{
|
| 78 |
-
"iso_3166_1": "BM",
|
| 79 |
-
"english_name": "Bermuda",
|
| 80 |
-
"native_name": "Bermuda"
|
| 81 |
-
},
|
| 82 |
-
{
|
| 83 |
-
"iso_3166_1": "BO",
|
| 84 |
-
"english_name": "Bolivia",
|
| 85 |
-
"native_name": "Bolivia"
|
| 86 |
-
},
|
| 87 |
-
{
|
| 88 |
-
"iso_3166_1": "BR",
|
| 89 |
-
"english_name": "Brazil",
|
| 90 |
-
"native_name": "Brazil"
|
| 91 |
-
},
|
| 92 |
-
{
|
| 93 |
-
"iso_3166_1": "BS",
|
| 94 |
-
"english_name": "Bahamas",
|
| 95 |
-
"native_name": "Bahamas"
|
| 96 |
-
},
|
| 97 |
-
{
|
| 98 |
-
"iso_3166_1": "BY",
|
| 99 |
-
"english_name": "Belarus",
|
| 100 |
-
"native_name": "Belarus"
|
| 101 |
-
},
|
| 102 |
-
{
|
| 103 |
-
"iso_3166_1": "BZ",
|
| 104 |
-
"english_name": "Belize",
|
| 105 |
-
"native_name": "Belize"
|
| 106 |
-
},
|
| 107 |
-
{
|
| 108 |
-
"iso_3166_1": "CA",
|
| 109 |
-
"english_name": "Canada",
|
| 110 |
-
"native_name": "Canada"
|
| 111 |
-
},
|
| 112 |
-
{
|
| 113 |
-
"iso_3166_1": "CD",
|
| 114 |
-
"english_name": "Congo",
|
| 115 |
-
"native_name": "Democratic Republic of the Congo (Kinshasa)"
|
| 116 |
-
},
|
| 117 |
-
{
|
| 118 |
-
"iso_3166_1": "CH",
|
| 119 |
-
"english_name": "Switzerland",
|
| 120 |
-
"native_name": "Switzerland"
|
| 121 |
-
},
|
| 122 |
-
{
|
| 123 |
-
"iso_3166_1": "CI",
|
| 124 |
-
"english_name": "Cote D'Ivoire",
|
| 125 |
-
"native_name": "Côte d’Ivoire"
|
| 126 |
-
},
|
| 127 |
-
{
|
| 128 |
-
"iso_3166_1": "CL",
|
| 129 |
-
"english_name": "Chile",
|
| 130 |
-
"native_name": "Chile"
|
| 131 |
-
},
|
| 132 |
-
{
|
| 133 |
-
"iso_3166_1": "CM",
|
| 134 |
-
"english_name": "Cameroon",
|
| 135 |
-
"native_name": "Cameroon"
|
| 136 |
-
},
|
| 137 |
-
{
|
| 138 |
-
"iso_3166_1": "CO",
|
| 139 |
-
"english_name": "Colombia",
|
| 140 |
-
"native_name": "Colombia"
|
| 141 |
-
},
|
| 142 |
-
{
|
| 143 |
-
"iso_3166_1": "CR",
|
| 144 |
-
"english_name": "Costa Rica",
|
| 145 |
-
"native_name": "Costa Rica"
|
| 146 |
-
},
|
| 147 |
-
{
|
| 148 |
-
"iso_3166_1": "CU",
|
| 149 |
-
"english_name": "Cuba",
|
| 150 |
-
"native_name": "Cuba"
|
| 151 |
-
},
|
| 152 |
-
{
|
| 153 |
-
"iso_3166_1": "CV",
|
| 154 |
-
"english_name": "Cape Verde",
|
| 155 |
-
"native_name": "Cape Verde"
|
| 156 |
-
},
|
| 157 |
-
{
|
| 158 |
-
"iso_3166_1": "CY",
|
| 159 |
-
"english_name": "Cyprus",
|
| 160 |
-
"native_name": "Cyprus"
|
| 161 |
-
},
|
| 162 |
-
{
|
| 163 |
-
"iso_3166_1": "CZ",
|
| 164 |
-
"english_name": "Czech Republic",
|
| 165 |
-
"native_name": "Czech Republic"
|
| 166 |
-
},
|
| 167 |
-
{
|
| 168 |
-
"iso_3166_1": "DE",
|
| 169 |
-
"english_name": "Germany",
|
| 170 |
-
"native_name": "Germany"
|
| 171 |
-
},
|
| 172 |
-
{
|
| 173 |
-
"iso_3166_1": "DK",
|
| 174 |
-
"english_name": "Denmark",
|
| 175 |
-
"native_name": "Denmark"
|
| 176 |
-
},
|
| 177 |
-
{
|
| 178 |
-
"iso_3166_1": "DO",
|
| 179 |
-
"english_name": "Dominican Republic",
|
| 180 |
-
"native_name": "Dominican Republic"
|
| 181 |
-
},
|
| 182 |
-
{
|
| 183 |
-
"iso_3166_1": "DZ",
|
| 184 |
-
"english_name": "Algeria",
|
| 185 |
-
"native_name": "Algeria"
|
| 186 |
-
},
|
| 187 |
-
{
|
| 188 |
-
"iso_3166_1": "EC",
|
| 189 |
-
"english_name": "Ecuador",
|
| 190 |
-
"native_name": "Ecuador"
|
| 191 |
-
},
|
| 192 |
-
{
|
| 193 |
-
"iso_3166_1": "EE",
|
| 194 |
-
"english_name": "Estonia",
|
| 195 |
-
"native_name": "Estonia"
|
| 196 |
-
},
|
| 197 |
-
{
|
| 198 |
-
"iso_3166_1": "EG",
|
| 199 |
-
"english_name": "Egypt",
|
| 200 |
-
"native_name": "Egypt"
|
| 201 |
-
},
|
| 202 |
-
{
|
| 203 |
-
"iso_3166_1": "ES",
|
| 204 |
-
"english_name": "Spain",
|
| 205 |
-
"native_name": "Spain"
|
| 206 |
-
},
|
| 207 |
-
{
|
| 208 |
-
"iso_3166_1": "FI",
|
| 209 |
-
"english_name": "Finland",
|
| 210 |
-
"native_name": "Finland"
|
| 211 |
-
},
|
| 212 |
-
{
|
| 213 |
-
"iso_3166_1": "FJ",
|
| 214 |
-
"english_name": "Fiji",
|
| 215 |
-
"native_name": "Fiji"
|
| 216 |
-
},
|
| 217 |
-
{
|
| 218 |
-
"iso_3166_1": "FR",
|
| 219 |
-
"english_name": "France",
|
| 220 |
-
"native_name": "France"
|
| 221 |
-
},
|
| 222 |
-
{
|
| 223 |
-
"iso_3166_1": "GB",
|
| 224 |
-
"english_name": "United Kingdom",
|
| 225 |
-
"native_name": "United Kingdom"
|
| 226 |
-
},
|
| 227 |
-
{
|
| 228 |
-
"iso_3166_1": "GF",
|
| 229 |
-
"english_name": "French Guiana",
|
| 230 |
-
"native_name": "French Guiana"
|
| 231 |
-
},
|
| 232 |
-
{
|
| 233 |
-
"iso_3166_1": "GH",
|
| 234 |
-
"english_name": "Ghana",
|
| 235 |
-
"native_name": "Ghana"
|
| 236 |
-
},
|
| 237 |
-
{
|
| 238 |
-
"iso_3166_1": "GI",
|
| 239 |
-
"english_name": "Gibraltar",
|
| 240 |
-
"native_name": "Gibraltar"
|
| 241 |
-
},
|
| 242 |
-
{
|
| 243 |
-
"iso_3166_1": "GP",
|
| 244 |
-
"english_name": "Guadaloupe",
|
| 245 |
-
"native_name": "Guadeloupe"
|
| 246 |
-
},
|
| 247 |
-
{
|
| 248 |
-
"iso_3166_1": "GQ",
|
| 249 |
-
"english_name": "Equatorial Guinea",
|
| 250 |
-
"native_name": "Equatorial Guinea"
|
| 251 |
-
},
|
| 252 |
-
{
|
| 253 |
-
"iso_3166_1": "GR",
|
| 254 |
-
"english_name": "Greece",
|
| 255 |
-
"native_name": "Greece"
|
| 256 |
-
},
|
| 257 |
-
{
|
| 258 |
-
"iso_3166_1": "GT",
|
| 259 |
-
"english_name": "Guatemala",
|
| 260 |
-
"native_name": "Guatemala"
|
| 261 |
-
},
|
| 262 |
-
{
|
| 263 |
-
"iso_3166_1": "GY",
|
| 264 |
-
"english_name": "Guyana",
|
| 265 |
-
"native_name": "Guyana"
|
| 266 |
-
},
|
| 267 |
-
{
|
| 268 |
-
"iso_3166_1": "HK",
|
| 269 |
-
"english_name": "Hong Kong",
|
| 270 |
-
"native_name": "Hong Kong SAR China"
|
| 271 |
-
},
|
| 272 |
-
{
|
| 273 |
-
"iso_3166_1": "HN",
|
| 274 |
-
"english_name": "Honduras",
|
| 275 |
-
"native_name": "Honduras"
|
| 276 |
-
},
|
| 277 |
-
{
|
| 278 |
-
"iso_3166_1": "HR",
|
| 279 |
-
"english_name": "Croatia",
|
| 280 |
-
"native_name": "Croatia"
|
| 281 |
-
},
|
| 282 |
-
{
|
| 283 |
-
"iso_3166_1": "HU",
|
| 284 |
-
"english_name": "Hungary",
|
| 285 |
-
"native_name": "Hungary"
|
| 286 |
-
},
|
| 287 |
-
{
|
| 288 |
-
"iso_3166_1": "ID",
|
| 289 |
-
"english_name": "Indonesia",
|
| 290 |
-
"native_name": "Indonesia"
|
| 291 |
-
},
|
| 292 |
-
{
|
| 293 |
-
"iso_3166_1": "IE",
|
| 294 |
-
"english_name": "Ireland",
|
| 295 |
-
"native_name": "Ireland"
|
| 296 |
-
},
|
| 297 |
-
{
|
| 298 |
-
"iso_3166_1": "IL",
|
| 299 |
-
"english_name": "Israel",
|
| 300 |
-
"native_name": "Israel"
|
| 301 |
-
},
|
| 302 |
-
{
|
| 303 |
-
"iso_3166_1": "IN",
|
| 304 |
-
"english_name": "India",
|
| 305 |
-
"native_name": "India"
|
| 306 |
-
},
|
| 307 |
-
{
|
| 308 |
-
"iso_3166_1": "IQ",
|
| 309 |
-
"english_name": "Iraq",
|
| 310 |
-
"native_name": "Iraq"
|
| 311 |
-
},
|
| 312 |
-
{
|
| 313 |
-
"iso_3166_1": "IS",
|
| 314 |
-
"english_name": "Iceland",
|
| 315 |
-
"native_name": "Iceland"
|
| 316 |
-
},
|
| 317 |
-
{
|
| 318 |
-
"iso_3166_1": "IT",
|
| 319 |
-
"english_name": "Italy",
|
| 320 |
-
"native_name": "Italy"
|
| 321 |
-
},
|
| 322 |
-
{
|
| 323 |
-
"iso_3166_1": "JM",
|
| 324 |
-
"english_name": "Jamaica",
|
| 325 |
-
"native_name": "Jamaica"
|
| 326 |
-
},
|
| 327 |
-
{
|
| 328 |
-
"iso_3166_1": "JO",
|
| 329 |
-
"english_name": "Jordan",
|
| 330 |
-
"native_name": "Jordan"
|
| 331 |
-
},
|
| 332 |
-
{
|
| 333 |
-
"iso_3166_1": "JP",
|
| 334 |
-
"english_name": "Japan",
|
| 335 |
-
"native_name": "Japan"
|
| 336 |
-
},
|
| 337 |
-
{
|
| 338 |
-
"iso_3166_1": "KE",
|
| 339 |
-
"english_name": "Kenya",
|
| 340 |
-
"native_name": "Kenya"
|
| 341 |
-
},
|
| 342 |
-
{
|
| 343 |
-
"iso_3166_1": "KR",
|
| 344 |
-
"english_name": "South Korea",
|
| 345 |
-
"native_name": "South Korea"
|
| 346 |
-
},
|
| 347 |
-
{
|
| 348 |
-
"iso_3166_1": "KW",
|
| 349 |
-
"english_name": "Kuwait",
|
| 350 |
-
"native_name": "Kuwait"
|
| 351 |
-
},
|
| 352 |
-
{
|
| 353 |
-
"iso_3166_1": "LB",
|
| 354 |
-
"english_name": "Lebanon",
|
| 355 |
-
"native_name": "Lebanon"
|
| 356 |
-
},
|
| 357 |
-
{
|
| 358 |
-
"iso_3166_1": "LC",
|
| 359 |
-
"english_name": "St. Lucia",
|
| 360 |
-
"native_name": "St. Lucia"
|
| 361 |
-
},
|
| 362 |
-
{
|
| 363 |
-
"iso_3166_1": "LI",
|
| 364 |
-
"english_name": "Liechtenstein",
|
| 365 |
-
"native_name": "Liechtenstein"
|
| 366 |
-
},
|
| 367 |
-
{
|
| 368 |
-
"iso_3166_1": "LT",
|
| 369 |
-
"english_name": "Lithuania",
|
| 370 |
-
"native_name": "Lithuania"
|
| 371 |
-
},
|
| 372 |
-
{
|
| 373 |
-
"iso_3166_1": "LU",
|
| 374 |
-
"english_name": "Luxembourg",
|
| 375 |
-
"native_name": "Luxembourg"
|
| 376 |
-
},
|
| 377 |
-
{
|
| 378 |
-
"iso_3166_1": "LV",
|
| 379 |
-
"english_name": "Latvia",
|
| 380 |
-
"native_name": "Latvia"
|
| 381 |
-
},
|
| 382 |
-
{
|
| 383 |
-
"iso_3166_1": "LY",
|
| 384 |
-
"english_name": "Libyan Arab Jamahiriya",
|
| 385 |
-
"native_name": "Libya"
|
| 386 |
-
},
|
| 387 |
-
{
|
| 388 |
-
"iso_3166_1": "MA",
|
| 389 |
-
"english_name": "Morocco",
|
| 390 |
-
"native_name": "Morocco"
|
| 391 |
-
},
|
| 392 |
-
{
|
| 393 |
-
"iso_3166_1": "MC",
|
| 394 |
-
"english_name": "Monaco",
|
| 395 |
-
"native_name": "Monaco"
|
| 396 |
-
},
|
| 397 |
-
{
|
| 398 |
-
"iso_3166_1": "MD",
|
| 399 |
-
"english_name": "Moldova",
|
| 400 |
-
"native_name": "Moldova"
|
| 401 |
-
},
|
| 402 |
-
{
|
| 403 |
-
"iso_3166_1": "ME",
|
| 404 |
-
"english_name": "Montenegro",
|
| 405 |
-
"native_name": "Montenegro"
|
| 406 |
-
},
|
| 407 |
-
{
|
| 408 |
-
"iso_3166_1": "MG",
|
| 409 |
-
"english_name": "Madagascar",
|
| 410 |
-
"native_name": "Madagascar"
|
| 411 |
-
},
|
| 412 |
-
{
|
| 413 |
-
"iso_3166_1": "MK",
|
| 414 |
-
"english_name": "Macedonia",
|
| 415 |
-
"native_name": "Macedonia"
|
| 416 |
-
},
|
| 417 |
-
{
|
| 418 |
-
"iso_3166_1": "ML",
|
| 419 |
-
"english_name": "Mali",
|
| 420 |
-
"native_name": "Mali"
|
| 421 |
-
},
|
| 422 |
-
{
|
| 423 |
-
"iso_3166_1": "MT",
|
| 424 |
-
"english_name": "Malta",
|
| 425 |
-
"native_name": "Malta"
|
| 426 |
-
},
|
| 427 |
-
{
|
| 428 |
-
"iso_3166_1": "MU",
|
| 429 |
-
"english_name": "Mauritius",
|
| 430 |
-
"native_name": "Mauritius"
|
| 431 |
-
},
|
| 432 |
-
{
|
| 433 |
-
"iso_3166_1": "MW",
|
| 434 |
-
"english_name": "Malawi",
|
| 435 |
-
"native_name": "Malawi"
|
| 436 |
-
},
|
| 437 |
-
{
|
| 438 |
-
"iso_3166_1": "MX",
|
| 439 |
-
"english_name": "Mexico",
|
| 440 |
-
"native_name": "Mexico"
|
| 441 |
-
},
|
| 442 |
-
{
|
| 443 |
-
"iso_3166_1": "MY",
|
| 444 |
-
"english_name": "Malaysia",
|
| 445 |
-
"native_name": "Malaysia"
|
| 446 |
-
},
|
| 447 |
-
{
|
| 448 |
-
"iso_3166_1": "MZ",
|
| 449 |
-
"english_name": "Mozambique",
|
| 450 |
-
"native_name": "Mozambique"
|
| 451 |
-
},
|
| 452 |
-
{
|
| 453 |
-
"iso_3166_1": "NE",
|
| 454 |
-
"english_name": "Niger",
|
| 455 |
-
"native_name": "Niger"
|
| 456 |
-
},
|
| 457 |
-
{
|
| 458 |
-
"iso_3166_1": "NG",
|
| 459 |
-
"english_name": "Nigeria",
|
| 460 |
-
"native_name": "Nigeria"
|
| 461 |
-
},
|
| 462 |
-
{
|
| 463 |
-
"iso_3166_1": "NI",
|
| 464 |
-
"english_name": "Nicaragua",
|
| 465 |
-
"native_name": "Nicaragua"
|
| 466 |
-
},
|
| 467 |
-
{
|
| 468 |
-
"iso_3166_1": "NL",
|
| 469 |
-
"english_name": "Netherlands",
|
| 470 |
-
"native_name": "Netherlands"
|
| 471 |
-
},
|
| 472 |
-
{
|
| 473 |
-
"iso_3166_1": "NO",
|
| 474 |
-
"english_name": "Norway",
|
| 475 |
-
"native_name": "Norway"
|
| 476 |
-
},
|
| 477 |
-
{
|
| 478 |
-
"iso_3166_1": "NZ",
|
| 479 |
-
"english_name": "New Zealand",
|
| 480 |
-
"native_name": "New Zealand"
|
| 481 |
-
},
|
| 482 |
-
{
|
| 483 |
-
"iso_3166_1": "OM",
|
| 484 |
-
"english_name": "Oman",
|
| 485 |
-
"native_name": "Oman"
|
| 486 |
-
},
|
| 487 |
-
{
|
| 488 |
-
"iso_3166_1": "PA",
|
| 489 |
-
"english_name": "Panama",
|
| 490 |
-
"native_name": "Panama"
|
| 491 |
-
},
|
| 492 |
-
{
|
| 493 |
-
"iso_3166_1": "PE",
|
| 494 |
-
"english_name": "Peru",
|
| 495 |
-
"native_name": "Peru"
|
| 496 |
-
},
|
| 497 |
-
{
|
| 498 |
-
"iso_3166_1": "PF",
|
| 499 |
-
"english_name": "French Polynesia",
|
| 500 |
-
"native_name": "French Polynesia"
|
| 501 |
-
},
|
| 502 |
-
{
|
| 503 |
-
"iso_3166_1": "PG",
|
| 504 |
-
"english_name": "Papua New Guinea",
|
| 505 |
-
"native_name": "Papua New Guinea"
|
| 506 |
-
},
|
| 507 |
-
{
|
| 508 |
-
"iso_3166_1": "PH",
|
| 509 |
-
"english_name": "Philippines",
|
| 510 |
-
"native_name": "Philippines"
|
| 511 |
-
},
|
| 512 |
-
{
|
| 513 |
-
"iso_3166_1": "PK",
|
| 514 |
-
"english_name": "Pakistan",
|
| 515 |
-
"native_name": "Pakistan"
|
| 516 |
-
},
|
| 517 |
-
{
|
| 518 |
-
"iso_3166_1": "PL",
|
| 519 |
-
"english_name": "Poland",
|
| 520 |
-
"native_name": "Poland"
|
| 521 |
-
},
|
| 522 |
-
{
|
| 523 |
-
"iso_3166_1": "PS",
|
| 524 |
-
"english_name": "Palestinian Territory",
|
| 525 |
-
"native_name": "Palestinian Territories"
|
| 526 |
-
},
|
| 527 |
-
{
|
| 528 |
-
"iso_3166_1": "PT",
|
| 529 |
-
"english_name": "Portugal",
|
| 530 |
-
"native_name": "Portugal"
|
| 531 |
-
},
|
| 532 |
-
{
|
| 533 |
-
"iso_3166_1": "PY",
|
| 534 |
-
"english_name": "Paraguay",
|
| 535 |
-
"native_name": "Paraguay"
|
| 536 |
-
},
|
| 537 |
-
{
|
| 538 |
-
"iso_3166_1": "QA",
|
| 539 |
-
"english_name": "Qatar",
|
| 540 |
-
"native_name": "Qatar"
|
| 541 |
-
},
|
| 542 |
-
{
|
| 543 |
-
"iso_3166_1": "RO",
|
| 544 |
-
"english_name": "Romania",
|
| 545 |
-
"native_name": "Romania"
|
| 546 |
-
},
|
| 547 |
-
{
|
| 548 |
-
"iso_3166_1": "RS",
|
| 549 |
-
"english_name": "Serbia",
|
| 550 |
-
"native_name": "Serbia"
|
| 551 |
-
},
|
| 552 |
-
{
|
| 553 |
-
"iso_3166_1": "RU",
|
| 554 |
-
"english_name": "Russia",
|
| 555 |
-
"native_name": "Russia"
|
| 556 |
-
},
|
| 557 |
-
{
|
| 558 |
-
"iso_3166_1": "SA",
|
| 559 |
-
"english_name": "Saudi Arabia",
|
| 560 |
-
"native_name": "Saudi Arabia"
|
| 561 |
-
},
|
| 562 |
-
{
|
| 563 |
-
"iso_3166_1": "SC",
|
| 564 |
-
"english_name": "Seychelles",
|
| 565 |
-
"native_name": "Seychelles"
|
| 566 |
-
},
|
| 567 |
-
{
|
| 568 |
-
"iso_3166_1": "SE",
|
| 569 |
-
"english_name": "Sweden",
|
| 570 |
-
"native_name": "Sweden"
|
| 571 |
-
},
|
| 572 |
-
{
|
| 573 |
-
"iso_3166_1": "SG",
|
| 574 |
-
"english_name": "Singapore",
|
| 575 |
-
"native_name": "Singapore"
|
| 576 |
-
},
|
| 577 |
-
{
|
| 578 |
-
"iso_3166_1": "SI",
|
| 579 |
-
"english_name": "Slovenia",
|
| 580 |
-
"native_name": "Slovenia"
|
| 581 |
-
},
|
| 582 |
-
{
|
| 583 |
-
"iso_3166_1": "SK",
|
| 584 |
-
"english_name": "Slovakia",
|
| 585 |
-
"native_name": "Slovakia"
|
| 586 |
-
},
|
| 587 |
-
{
|
| 588 |
-
"iso_3166_1": "SM",
|
| 589 |
-
"english_name": "San Marino",
|
| 590 |
-
"native_name": "San Marino"
|
| 591 |
-
},
|
| 592 |
-
{
|
| 593 |
-
"iso_3166_1": "SN",
|
| 594 |
-
"english_name": "Senegal",
|
| 595 |
-
"native_name": "Senegal"
|
| 596 |
-
},
|
| 597 |
-
{
|
| 598 |
-
"iso_3166_1": "SV",
|
| 599 |
-
"english_name": "El Salvador",
|
| 600 |
-
"native_name": "El Salvador"
|
| 601 |
-
},
|
| 602 |
-
{
|
| 603 |
-
"iso_3166_1": "TC",
|
| 604 |
-
"english_name": "Turks and Caicos Islands",
|
| 605 |
-
"native_name": "Turks & Caicos Islands"
|
| 606 |
-
},
|
| 607 |
-
{
|
| 608 |
-
"iso_3166_1": "TD",
|
| 609 |
-
"english_name": "Chad",
|
| 610 |
-
"native_name": "Chad"
|
| 611 |
-
},
|
| 612 |
-
{
|
| 613 |
-
"iso_3166_1": "TH",
|
| 614 |
-
"english_name": "Thailand",
|
| 615 |
-
"native_name": "Thailand"
|
| 616 |
-
},
|
| 617 |
-
{
|
| 618 |
-
"iso_3166_1": "TN",
|
| 619 |
-
"english_name": "Tunisia",
|
| 620 |
-
"native_name": "Tunisia"
|
| 621 |
-
},
|
| 622 |
-
{
|
| 623 |
-
"iso_3166_1": "TR",
|
| 624 |
-
"english_name": "Turkey",
|
| 625 |
-
"native_name": "Turkey"
|
| 626 |
-
},
|
| 627 |
-
{
|
| 628 |
-
"iso_3166_1": "TT",
|
| 629 |
-
"english_name": "Trinidad and Tobago",
|
| 630 |
-
"native_name": "Trinidad & Tobago"
|
| 631 |
-
},
|
| 632 |
-
{
|
| 633 |
-
"iso_3166_1": "TW",
|
| 634 |
-
"english_name": "Taiwan",
|
| 635 |
-
"native_name": "Taiwan"
|
| 636 |
-
},
|
| 637 |
-
{
|
| 638 |
-
"iso_3166_1": "TZ",
|
| 639 |
-
"english_name": "Tanzania",
|
| 640 |
-
"native_name": "Tanzania"
|
| 641 |
-
},
|
| 642 |
-
{
|
| 643 |
-
"iso_3166_1": "UA",
|
| 644 |
-
"english_name": "Ukraine",
|
| 645 |
-
"native_name": "Ukraine"
|
| 646 |
-
},
|
| 647 |
-
{
|
| 648 |
-
"iso_3166_1": "UG",
|
| 649 |
-
"english_name": "Uganda",
|
| 650 |
-
"native_name": "Uganda"
|
| 651 |
-
},
|
| 652 |
-
{
|
| 653 |
-
"iso_3166_1": "US",
|
| 654 |
-
"english_name": "United States of America",
|
| 655 |
-
"native_name": "United States"
|
| 656 |
-
},
|
| 657 |
-
{
|
| 658 |
-
"iso_3166_1": "UY",
|
| 659 |
-
"english_name": "Uruguay",
|
| 660 |
-
"native_name": "Uruguay"
|
| 661 |
-
},
|
| 662 |
-
{
|
| 663 |
-
"iso_3166_1": "VA",
|
| 664 |
-
"english_name": "Holy See",
|
| 665 |
-
"native_name": "Vatican City"
|
| 666 |
-
},
|
| 667 |
-
{
|
| 668 |
-
"iso_3166_1": "VE",
|
| 669 |
-
"english_name": "Venezuela",
|
| 670 |
-
"native_name": "Venezuela"
|
| 671 |
-
},
|
| 672 |
-
{
|
| 673 |
-
"iso_3166_1": "XK",
|
| 674 |
-
"english_name": "Kosovo",
|
| 675 |
-
"native_name": "Kosovo"
|
| 676 |
-
},
|
| 677 |
-
{
|
| 678 |
-
"iso_3166_1": "YE",
|
| 679 |
-
"english_name": "Yemen",
|
| 680 |
-
"native_name": "Yemen"
|
| 681 |
-
},
|
| 682 |
-
{
|
| 683 |
-
"iso_3166_1": "ZA",
|
| 684 |
-
"english_name": "South Africa",
|
| 685 |
-
"native_name": "South Africa"
|
| 686 |
-
},
|
| 687 |
-
{
|
| 688 |
-
"iso_3166_1": "ZM",
|
| 689 |
-
"english_name": "Zambia",
|
| 690 |
-
"native_name": "Zambia"
|
| 691 |
-
},
|
| 692 |
-
{
|
| 693 |
-
"iso_3166_1": "ZW",
|
| 694 |
-
"english_name": "Zimbabwe",
|
| 695 |
-
"native_name": "Zimbabwe"
|
| 696 |
-
}
|
| 697 |
-
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public/js/languages.js
DELETED
|
@@ -1,202 +0,0 @@
|
|
| 1 |
-
const languages = [
|
| 2 |
-
{iso_639_1: "bi", english_name: "Bislama", name: "" },
|
| 3 |
-
{iso_639_1: "cs", english_name: "Czech", name: "Český" },
|
| 4 |
-
{iso_639_1: "ba", english_name: "Bashkir", name: "" },
|
| 5 |
-
{iso_639_1: "ae", english_name: "Avestan", name: "" },
|
| 6 |
-
{iso_639_1: "av", english_name: "Avaric", name: "" },
|
| 7 |
-
{iso_639_1: "de", english_name: "German", name: "Deutsch" },
|
| 8 |
-
{iso_639_1: "mt", english_name: "Maltese", name: "Malti" },
|
| 9 |
-
{iso_639_1: "om", english_name: "Oromo", name: "" },
|
| 10 |
-
{iso_639_1: "rm", english_name: "Raeto-Romance", name: "" },
|
| 11 |
-
{iso_639_1: "so", english_name: "Somali", name: "Somali" },
|
| 12 |
-
{iso_639_1: "ts", english_name: "Tsonga", name: "" },
|
| 13 |
-
{iso_639_1: "vi", english_name: "Vietnamese", name: "Tiếng Việt" },
|
| 14 |
-
{iso_639_1: "gn", english_name: "Guarani", name: "" },
|
| 15 |
-
{iso_639_1: "ig", english_name: "Igbo", name: "" },
|
| 16 |
-
{iso_639_1: "it", english_name: "Italian", name: "Italiano" },
|
| 17 |
-
{iso_639_1: "ki", english_name: "Kikuyu", name: "" },
|
| 18 |
-
{iso_639_1: "ku", english_name: "Kurdish", name: "" },
|
| 19 |
-
{iso_639_1: "la", english_name: "Latin", name: "Latin" },
|
| 20 |
-
{iso_639_1: "ln", english_name: "Lingala", name: "" },
|
| 21 |
-
{iso_639_1: "lb", english_name: "Letzeburgesch", name: "" },
|
| 22 |
-
{iso_639_1: "ny", english_name: "Chichewa; Nyanja", name: "" },
|
| 23 |
-
{iso_639_1: "pl", english_name: "Polish", name: "Polski" },
|
| 24 |
-
{iso_639_1: "si", english_name: "Sinhalese", name: "සිංහල" },
|
| 25 |
-
{iso_639_1: "to", english_name: "Tonga", name: "" },
|
| 26 |
-
{iso_639_1: "az", english_name: "Azerbaijani", name: "Azərbaycan" },
|
| 27 |
-
{iso_639_1: "ce", english_name: "Chechen", name: "" },
|
| 28 |
-
{iso_639_1: "cu", english_name: "Slavic", name: "" },
|
| 29 |
-
{iso_639_1: "da", english_name: "Danish", name: "Dansk" },
|
| 30 |
-
{iso_639_1: "hz", english_name: "Herero", name: "" },
|
| 31 |
-
{iso_639_1: "ie", english_name: "Interlingue", name: "" },
|
| 32 |
-
{iso_639_1: "rw", english_name: "Kinyarwanda", name: "Kinyarwanda" },
|
| 33 |
-
{iso_639_1: "mi", english_name: "Maori", name: "" },
|
| 34 |
-
{iso_639_1: "no", english_name: "Norwegian", name: "Norsk" },
|
| 35 |
-
{iso_639_1: "pi", english_name: "Pali", name: "" },
|
| 36 |
-
{iso_639_1: "sk", english_name: "Slovak", name: "Slovenčina" },
|
| 37 |
-
{iso_639_1: "se", english_name: "Northern Sami", name: "" },
|
| 38 |
-
{iso_639_1: "sm", english_name: "Samoan", name: "" },
|
| 39 |
-
{iso_639_1: "uk", english_name: "Ukrainian", name: "Український" },
|
| 40 |
-
{iso_639_1: "en", english_name: "English", name: "English" },
|
| 41 |
-
{iso_639_1: "ay", english_name: "Aymara", name: "" },
|
| 42 |
-
{iso_639_1: "ca", english_name: "Catalan", name: "Català" },
|
| 43 |
-
{iso_639_1: "eo", english_name: "Esperanto", name: "Esperanto" },
|
| 44 |
-
{iso_639_1: "ha", english_name: "Hausa", name: "Hausa" },
|
| 45 |
-
{iso_639_1: "ho", english_name: "Hiri Motu", name: "" },
|
| 46 |
-
{iso_639_1: "hu", english_name: "Hungarian", name: "Magyar" },
|
| 47 |
-
{iso_639_1: "io", english_name: "Ido", name: "" },
|
| 48 |
-
{iso_639_1: "ii", english_name: "Yi", name: "" },
|
| 49 |
-
{iso_639_1: "kn", english_name: "Kannada", name: "?????" },
|
| 50 |
-
{iso_639_1: "kv", english_name: "Komi", name: "" },
|
| 51 |
-
{iso_639_1: "li", english_name: "Limburgish", name: "" },
|
| 52 |
-
{iso_639_1: "oj", english_name: "Ojibwa", name: "" },
|
| 53 |
-
{iso_639_1: "ru", english_name: "Russian", name: "Pусский" },
|
| 54 |
-
{iso_639_1: "sr", english_name: "Serbian", name: "Srpski" },
|
| 55 |
-
{iso_639_1: "sv", english_name: "Swedish", name: "svenska" },
|
| 56 |
-
{iso_639_1: "ty", english_name: "Tahitian", name: "" },
|
| 57 |
-
{iso_639_1: "zu", english_name: "Zulu", name: "isiZulu" },
|
| 58 |
-
{iso_639_1: "ka", english_name: "Georgian", name: "ქართული" },
|
| 59 |
-
{iso_639_1: "ch", english_name: "Chamorro", name: "Finu' Chamorro" },
|
| 60 |
-
{iso_639_1: "be", english_name: "Belarusian", name: "беларуская мова" },
|
| 61 |
-
{iso_639_1: "br", english_name: "Breton", name: "" },
|
| 62 |
-
{iso_639_1: "kw", english_name: "Cornish", name: "" },
|
| 63 |
-
{iso_639_1: "fi", english_name: "Finnish", name: "suomi" },
|
| 64 |
-
{iso_639_1: "sh", english_name: "Serbo-Croatian", name: "" },
|
| 65 |
-
{iso_639_1: "nn", english_name: "Norwegian Nynorsk", name: "" },
|
| 66 |
-
{iso_639_1: "tt", english_name: "Tatar", name: "" },
|
| 67 |
-
{iso_639_1: "tg", english_name: "Tajik", name: "" },
|
| 68 |
-
{iso_639_1: "vo", english_name: "Volapük", name: "" },
|
| 69 |
-
{iso_639_1: "ps", english_name: "Pushto", name: "پښتو" },
|
| 70 |
-
{iso_639_1: "mk", english_name: "Macedonian", name: "" },
|
| 71 |
-
{iso_639_1: "fr", english_name: "French", name: "Français" },
|
| 72 |
-
{iso_639_1: "bm", english_name: "Bambara", name: "Bamanankan" },
|
| 73 |
-
{iso_639_1: "eu", english_name: "Basque", name: "euskera" },
|
| 74 |
-
{iso_639_1: "fj", english_name: "Fijian", name: "" },
|
| 75 |
-
{iso_639_1: "id", english_name: "Indonesian", name: "Bahasa indonesia" },
|
| 76 |
-
{iso_639_1: "mg", english_name: "Malagasy", name: "" },
|
| 77 |
-
{iso_639_1: "na", english_name: "Nauru", name: "" },
|
| 78 |
-
{iso_639_1: "xx", english_name: "No Language", name: "No Language" },
|
| 79 |
-
{iso_639_1: "qu", english_name: "Quechua", name: "" },
|
| 80 |
-
{iso_639_1: "sq", english_name: "Albanian", name: "shqip" },
|
| 81 |
-
{iso_639_1: "ti", english_name: "Tigrinya", name: "" },
|
| 82 |
-
{iso_639_1: "tw", english_name: "Twi", name: "" },
|
| 83 |
-
{iso_639_1: "wa", english_name: "Walloon", name: "" },
|
| 84 |
-
{iso_639_1: "ab", english_name: "Abkhazian", name: "" },
|
| 85 |
-
{iso_639_1: "bs", english_name: "Bosnian", name: "Bosanski" },
|
| 86 |
-
{iso_639_1: "af", english_name: "Afrikaans", name: "Afrikaans" },
|
| 87 |
-
{iso_639_1: "an", english_name: "Aragonese", name: "" },
|
| 88 |
-
{iso_639_1: "fy", english_name: "Frisian", name: "" },
|
| 89 |
-
{iso_639_1: "gu", english_name: "Gujarati", name: "" },
|
| 90 |
-
{iso_639_1: "ik", english_name: "Inupiaq", name: "" },
|
| 91 |
-
{iso_639_1: "ja", english_name: "Japanese", name: "日本語" },
|
| 92 |
-
{iso_639_1: "ko", english_name: "Korean", name: "한국어/조선말" },
|
| 93 |
-
{iso_639_1: "lg", english_name: "Ganda", name: "" },
|
| 94 |
-
{iso_639_1: "nl", english_name: "Dutch", name: "Nederlands" },
|
| 95 |
-
{iso_639_1: "os", english_name: "Ossetian; Ossetic", name: "" },
|
| 96 |
-
{iso_639_1: "el", english_name: "Greek", name: "ελληνικά" },
|
| 97 |
-
{iso_639_1: "bn", english_name: "Bengali", name: "বাংলা" },
|
| 98 |
-
{iso_639_1: "cr", english_name: "Cree", name: "" },
|
| 99 |
-
{iso_639_1: "km", english_name: "Khmer", name: "" },
|
| 100 |
-
{iso_639_1: "lo", english_name: "Lao", name: "" },
|
| 101 |
-
{iso_639_1: "nd", english_name: "Ndebele", name: "" },
|
| 102 |
-
{iso_639_1: "ne", english_name: "Nepali", name: "" },
|
| 103 |
-
{iso_639_1: "sc", english_name: "Sardinian", name: "" },
|
| 104 |
-
{iso_639_1: "sw", english_name: "Swahili", name: "Kiswahili" },
|
| 105 |
-
{iso_639_1: "tl", english_name: "Tagalog", name: "" },
|
| 106 |
-
{iso_639_1: "ur", english_name: "Urdu", name: "اردو" },
|
| 107 |
-
{iso_639_1: "ee", english_name: "Ewe", name: "Èʋegbe" },
|
| 108 |
-
{iso_639_1: "aa", english_name: "Afar", name: "" },
|
| 109 |
-
{iso_639_1: "co", english_name: "Corsican", name: "" },
|
| 110 |
-
{iso_639_1: "et", english_name: "Estonian", name: "Eesti" },
|
| 111 |
-
{iso_639_1: "is", english_name: "Icelandic", name: "Íslenska" },
|
| 112 |
-
{iso_639_1: "ks", english_name: "Kashmiri", name: "" },
|
| 113 |
-
{iso_639_1: "kr", english_name: "Kanuri", name: "" },
|
| 114 |
-
{iso_639_1: "ky", english_name: "Kirghiz", name: "??????" },
|
| 115 |
-
{iso_639_1: "kj", english_name: "Kuanyama", name: "" },
|
| 116 |
-
{iso_639_1: "nr", english_name: "Ndebele", name: "" },
|
| 117 |
-
{iso_639_1: "or", english_name: "Oriya", name: "" },
|
| 118 |
-
{iso_639_1: "wo", english_name: "Wolof", name: "Wolof" },
|
| 119 |
-
{iso_639_1: "za", english_name: "Zhuang", name: "" },
|
| 120 |
-
{iso_639_1: "ar", english_name: "Arabic", name: "العربية" },
|
| 121 |
-
{iso_639_1: "cv", english_name: "Chuvash", name: "" },
|
| 122 |
-
{iso_639_1: "fo", english_name: "Faroese", name: "" },
|
| 123 |
-
{iso_639_1: "hr", english_name: "Croatian", name: "Hrvatski" },
|
| 124 |
-
{iso_639_1: "ms", english_name: "Malay", name: "Bahasa melayu" },
|
| 125 |
-
{iso_639_1: "nb", english_name: "Norwegian Bokmål", name: "Bokmål" },
|
| 126 |
-
{iso_639_1: "rn", english_name: "Rundi", name: "Kirundi" },
|
| 127 |
-
{iso_639_1: "sn", english_name: "Shona", name: "" },
|
| 128 |
-
{iso_639_1: "st", english_name: "Sotho", name: "" },
|
| 129 |
-
{iso_639_1: "tr", english_name: "Turkish", name: "Türkçe" },
|
| 130 |
-
{iso_639_1: "am", english_name: "Amharic", name: "" },
|
| 131 |
-
{iso_639_1: "fa", english_name: "Persian", name: "فارسی" },
|
| 132 |
-
{iso_639_1: "hy", english_name: "Armenian", name: "" },
|
| 133 |
-
{iso_639_1: "pa", english_name: "Punjabi", name: "ਪੰਜਾਬੀ" },
|
| 134 |
-
{iso_639_1: "as", english_name: "Assamese", name: "" },
|
| 135 |
-
{iso_639_1: "ia", english_name: "Interlingua", name: "" },
|
| 136 |
-
{iso_639_1: "lv", english_name: "Latvian", name: "Latviešu" },
|
| 137 |
-
{iso_639_1: "lu", english_name: "Luba-Katanga", name: "" },
|
| 138 |
-
{iso_639_1: "mr", english_name: "Marathi", name: "" },
|
| 139 |
-
{iso_639_1: "mn", english_name: "Mongolian", name: "" },
|
| 140 |
-
{iso_639_1: "pt", english_name: "Portuguese", name: "Português" },
|
| 141 |
-
{iso_639_1: "th", english_name: "Thai", name: "ภาษาไทย" },
|
| 142 |
-
{iso_639_1: "tk", english_name: "Turkmen", name: "" },
|
| 143 |
-
{iso_639_1: "ve", english_name: "Venda", name: "" },
|
| 144 |
-
{iso_639_1: "dv", english_name: "Divehi", name: "" },
|
| 145 |
-
{iso_639_1: "gv", english_name: "Manx", name: "" },
|
| 146 |
-
{iso_639_1: "kl", english_name: "Kalaallisut", name: "" },
|
| 147 |
-
{iso_639_1: "kk", english_name: "Kazakh", name: "қазақ" },
|
| 148 |
-
{iso_639_1: "lt", english_name: "Lithuanian", name: "Lietuvių" },
|
| 149 |
-
{iso_639_1: "my", english_name: "Burmese", name: "" },
|
| 150 |
-
{iso_639_1: "sl", english_name: "Slovenian", name: "Slovenščina" },
|
| 151 |
-
{iso_639_1: "sd", english_name: "Sindhi", name: "" },
|
| 152 |
-
{iso_639_1: "cn", english_name: "Cantonese", name: "广州话 / 廣州話" },
|
| 153 |
-
{iso_639_1: "hi", english_name: "Hindi", name: "हिन्दी" },
|
| 154 |
-
{iso_639_1: "cy", english_name: "Welsh", name: "Cymraeg" },
|
| 155 |
-
{iso_639_1: "ht", english_name: "Haitian; Haitian Creole", name: "" },
|
| 156 |
-
{iso_639_1: "iu", english_name: "Inuktitut", name: "" },
|
| 157 |
-
{iso_639_1: "jv", english_name: "Javanese", name: "" },
|
| 158 |
-
{iso_639_1: "mh", english_name: "Marshall", name: "" },
|
| 159 |
-
{iso_639_1: "sa", english_name: "Sanskrit", name: "" },
|
| 160 |
-
{iso_639_1: "ss", english_name: "Swati", name: "" },
|
| 161 |
-
{iso_639_1: "te", english_name: "Telugu", name: "తెలుగు" },
|
| 162 |
-
{iso_639_1: "kg", english_name: "Kongo", name: "" },
|
| 163 |
-
{iso_639_1: "ml", english_name: "Malayalam", name: "" },
|
| 164 |
-
{iso_639_1: "uz", english_name: "Uzbek", name: "ozbek" },
|
| 165 |
-
{iso_639_1: "sg", english_name: "Sango", name: "" },
|
| 166 |
-
{iso_639_1: "xh", english_name: "Xhosa", name: "" },
|
| 167 |
-
{iso_639_1: "es", english_name: "Spanish", name: "Español" },
|
| 168 |
-
{iso_639_1: "su", english_name: "Sundanese", name: "" },
|
| 169 |
-
{iso_639_1: "ug", english_name: "Uighur", name: "" },
|
| 170 |
-
{iso_639_1: "yi", english_name: "Yiddish", name: "" },
|
| 171 |
-
{iso_639_1: "yo", english_name: "Yoruba", name: "Èdè Yorùbá" },
|
| 172 |
-
{iso_639_1: "zh", english_name: "Mandarin", name: "普通话" },
|
| 173 |
-
{iso_639_1: "he", english_name: "Hebrew", name: "עִבְרִית" },
|
| 174 |
-
{iso_639_1: "bo", english_name: "Tibetan", name: "" },
|
| 175 |
-
{iso_639_1: "ak", english_name: "Akan", name: "" },
|
| 176 |
-
{iso_639_1: "mo", english_name: "Moldavian", name: "" },
|
| 177 |
-
{iso_639_1: "ng", english_name: "Ndonga", name: "" },
|
| 178 |
-
{iso_639_1: "dz", english_name: "Dzongkha", name: "" },
|
| 179 |
-
{iso_639_1: "ff", english_name: "Fulah", name: "Fulfulde" },
|
| 180 |
-
{iso_639_1: "gd", english_name: "Gaelic", name: "" },
|
| 181 |
-
{iso_639_1: "ga", english_name: "Irish", name: "Gaeilge" },
|
| 182 |
-
{iso_639_1: "gl", english_name: "Galician", name: "Galego" },
|
| 183 |
-
{iso_639_1: "nv", english_name: "Navajo", name: "" },
|
| 184 |
-
{iso_639_1: "oc", english_name: "Occitan", name: "" },
|
| 185 |
-
{iso_639_1: "ro", english_name: "Romanian", name: "Română" },
|
| 186 |
-
{iso_639_1: "ta", english_name: "Tamil", name: "தமிழ்" },
|
| 187 |
-
{iso_639_1: "tn", english_name: "Tswana", name: "" },
|
| 188 |
-
{iso_639_1: "bg", english_name: "Bulgarian", name: "български език"
|
| 189 |
-
}
|
| 190 |
-
];
|
| 191 |
-
|
| 192 |
-
languages.sort((a, b) => {
|
| 193 |
-
const nameA = a.english_name.toUpperCase();
|
| 194 |
-
const nameB = b.english_name.toUpperCase();
|
| 195 |
-
if (nameA < nameB) {
|
| 196 |
-
return -1;
|
| 197 |
-
}
|
| 198 |
-
if (nameA > nameB) {
|
| 199 |
-
return 1;
|
| 200 |
-
}
|
| 201 |
-
return 0;
|
| 202 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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