1/** 2 * Display content below the map 3 */ 4function igm_display_below(id, data) { 5 iMapsActions.contentBelow(id, data, false); 6 window.dispatchEvent(new Event('resize')); 7} 8 9/** 10 * Display content below the map and scroll 11 */ 12function igm_display_below_scroll(id, data) { 13 iMapsActions.contentBelow(id, data, true); 14 window.dispatchEvent(new Event('resize')); 15} 16 17/** 18 * Display content above the map 19 */ 20function igm_display_above(id, data) { 21 iMapsActions.contentAbove(id, data, false); 22 window.dispatchEvent(new Event('resize')); 23} 24 25/** 26 * Display post or page below 27 */ 28function igm_display_page_below(id, data) { 29 iMapsActions.pageBelow(id, data, false); 30} 31 32/** 33 * Display post or page below 34 */ 35function igm_display_page_below_and_scroll(id, data) { 36 iMapsActions.pageBelow(id, data, true); 37} 38 39/** 40 * Display content to the right of the map with 1/3 space 41 */ 42function igm_display_right_1_3(id, data) { 43 iMapsActions.contentRight( 44 id, 45 data, 46 "igm_content_left_2_3", 47 "igm_content_right_1_3" 48 ); 49 window.dispatchEvent(new Event('resize')); 50} 51 52/** 53 * lightbox functions 54 */ 55function igm_lightbox(id, data) { 56 iMapsActions.lightboxAction(id, data, "inline"); 57 window.dispatchEvent(new Event('resize')); 58} 59 60function igm_lightbox_image(id, data) { 61 iMapsActions.lightboxAction(id, data, "image"); 62} 63 64function igm_lightbox_iframe(id, data) { 65 iMapsActions.lightboxAction(id, data, "external"); 66} 67 68iMapsActions = {}; 69 70// check if there's a live filter 71iMapsActions.init = function () { 72 73 var liveFilters = document.querySelectorAll('.igm-live-filter'); 74 for (var i = 0; i < liveFilters.length; i++) { 75 iMapsActions.buildFilter(liveFilters[i]); 76 } 77 78 var liveFilterDropdowns = document.querySelectorAll('.igm-live-filter-dropdown'); 79 for (var i = 0; i < liveFilterDropdowns.length; i++) { 80 iMapsActions.buildDropdownFilter(liveFilterDropdowns[i]); 81 } 82 83 var dropdowns = document.querySelectorAll('.igm_select_choices'); 84 if (dropdowns.length > 0) { 85 for (var i = 0; i < dropdowns.length; i++) { 86 iMapsActions.buildDropdown(dropdowns[i]); 87 } 88 } else { 89 90 dropdowns = document.querySelectorAll('.igm_select'); 91 for (var i = 0; i < dropdowns.length; i++) { 92 93 dropdowns[i].addEventListener('change', function (event) { 94 var select = event.target; 95 var id = select.getAttribute('data-map-id'); 96 id = parseInt(id); 97 if (typeof iMapsManager !== 'undefined') { 98 iMapsManager.select(id, select.value, true); 99 return; 100 } 101 if (select.getAttribute('data-url')) { 102 103 var hash = select.getAttribute('data-url').split('#')[1]; 104 if (hash) { 105 var tempURL = select.getAttribute('data-url').replace('#' + hash, ''); 106 window.open(tempURL + '?mregion=' + select.value + '#' + hash, "_self"); 107 } else { 108 window.open(select.getAttribute('data-url') + '?mregion=' + select.value, "_self"); 109 } 110 } 111 }); 112 113 } 114 115 } 116 117 // map entries list 118 var lists = document.querySelectorAll('.igm_entries_list'); 119 for (var i = 0; i < lists.length; i++) { 120 iMapsActions.buildLists(lists[i]); 121 } 122}; 123 124iMapsActions.buildDropdown = function (el) { 125 126 var noResults = el.getAttribute('data-noresults'); 127 var select = el.getAttribute('data-select'); 128 129 var opts = { 130 noResultsText: noResults, 131 position: 'bottom', 132 itemSelectText: select, 133 resetScrollPosition: false, 134 searchChoices: true, 135 fuseOptions: { 136 threshold: 0.4, 137 findAllMatches: true, 138 shouldSort: true 139 }, 140 searchFloor: 2, 141 searchResultLimit: 50, 142 searchFields: ['label', 'value', 'customProperties'] 143 144 }; 145 146 var choices = new Choices(el, opts); 147 148 choices.passedElement.element.addEventListener('change', function () { 149 var id = el.getAttribute('data-map-id'); 150 id = parseInt(id); 151 if (typeof iMapsManager !== 'undefined') { 152 iMapsManager.select(id, this.value, true); 153 } 154 155 if (el.getAttribute('data-url')) { 156 157 var hash = el.getAttribute('data-url').split('#')[1]; 158 if (hash) { 159 var tempURL = el.getAttribute('data-url').replace('#' + hash, ''); 160 window.open(tempURL + '?mregion=' + el.value + '#' + hash, "_self"); 161 } else { 162 window.open(el.getAttribute('data-url') + '?mregion=' + el.value, "_self"); 163 } 164 } 165 166 }); 167}; 168 169iMapsActions.buildLists = function (el) { 170 var mapID = el.getAttribute('data-map-id'); 171 var liEntries = el.querySelectorAll('li'); 172 for (var index = 0; index < liEntries.length; index++) { 173 var liEl = liEntries[index]; 174 liEl.addEventListener('click', function (event) { 175 if (typeof iMapsManager !== 'undefined') { 176 var entryCode = event.target.getAttribute('data-code'); 177 iMapsManager.select(mapID, entryCode, true); 178 return; 179 } 180 if (event.target.getAttribute('data-url')) { 181 window.open(event.target.getAttribute('data-url') + '?mregion=' + event.target.getAttribute('data-code'), "_self"); 182 } 183 }); 184 liEl.addEventListener('mouseover', function (event) { 185 if (typeof iMapsManager !== 'undefined') { 186 var entryCode = event.target.getAttribute('data-code'); 187 iMapsManager.highlight(mapID, entryCode); 188 } 189 }); 190 liEl.addEventListener('mouseout', function (event) { 191 if (typeof iMapsManager !== 'undefined') { 192 iMapsManager.clearHighlighted(mapID); 193 } 194 }); 195 } 196}; 197 198iMapsActions.buildDropdownFilter = function (el) { 199 200 var mainID = el.getAttribute('data-base-map-id'); 201 var keepBase = el.getAttribute('data-keep-base-map'); 202 203 if (typeof keepBase !== 'undefined' && keepBase === '1') { 204 keepBase = true; 205 } else { 206 keepBase = false;
207 } 208 209 mainID = parseInt(mainID); 210 el.addEventListener('change', function (event) { 211 212 var thisMapID = event.target.value; 213 thisMapID = parseInt(thisMapID); 214 215 iMapsManager.filteredMap = thisMapID; 216 217 if (thisMapID === mainID) { 218 iMapsManager.activeMap = mainID; 219 if (typeof iMapsManager !== 'undefined') { 220 iMapsManager.filteredMap = mainID; 221 iMapsManager.showAllSeries(thisMapID); 222 223 224 } 225 } else { 226 if (typeof iMapsManager !== 'undefined') { 227 iMapsManager.hideAllSeries(mainID, keepBase); 228 var thisSeries = iMaps.maps[mainID].seriesById[thisMapID]; 229 if (thisSeries && thisSeries.length > 0) { 230 for (var ix = 0; ix < thisSeries.length; ix++) { 231 var serie = thisSeries[ix]; 232 serie.show(); 233 } 234 } 235 } 236 } 237 238 // change this to a iMapsManager function that goes home and triggers event 239 // let's try to avoid using iMaps object in this file. 240 if (typeof iMaps.maps[thisMapID] !== 'undefined') { 241 iMaps.maps[thisMapID].map.goHome(); 242 iMaps.maps[thisMapID].map.dispatchImmediately("zoomlevelchanged"); 243 } 244 245 }); 246 247}; 248 249iMapsActions.buildFilter = function (el) { 250 var mainID = el.getAttribute('data-base-map-id'); 251 var keepBase = el.getAttribute('data-keep-base-map'); 252 253 if (typeof keepBase !== 'undefined' && keepBase === '1') { 254 keepBase = true; 255 } else { 256 keepBase = false; 257 } 258 259 mainID = parseInt(mainID); 260 var liMaps = el.querySelectorAll('li'); 261 for (var index = 0; index < liMaps.length; index++) { 262 var liEl = liMaps[index]; 263 liEl.addEventListener('click', function (element) { 264 265 // remove active from all other entries 266 for (var ind = 0; ind < liMaps.length; ind++) { 267 var otherLi = liMaps[ind]; 268 otherLi.classList.remove('igm-live-filter-active'); 269 } 270 // add active to this one 271 element.target.classList.add('igm-live-filter-active'); 272 273 var thisMapID = element.target.getAttribute('data-map-id'); 274 thisMapID = parseInt(thisMapID); 275 276 iMapsManager.filteredMap = thisMapID; 277 278 if (thisMapID === mainID) { 279 if (typeof iMapsManager !== 'undefined') { 280 iMapsManager.filteredMap = mainID; 281 iMapsManager.showAllSeries(thisMapID); 282 iMapsManager.resetDrilldown(thisMapID); 283 } 284 } else { 285 if (typeof iMapsManager !== 'undefined') { 286 iMapsManager.hideAllSeries(mainID, keepBase); 287 var thisSeries = iMaps.maps[mainID].seriesById[thisMapID]; 288 if (thisSeries && thisSeries.length > 0) { 289 for (var ix = 0; ix < thisSeries.length; ix++) { 290 var serie = thisSeries[ix]; 291 serie.show(); 292 } 293 } 294 } 295 } 296 297 if (typeof iMaps.maps[mainID] !== 'undefined') { 298 iMaps.maps[mainID].map.goHome(); 299 iMaps.maps[mainID].map.dispatchImmediately("zoomlevelchanged"); 300 } 301 302 }); 303 } 304}; 305 306iMapsActions.lightbox = false; 307iMapsActions.lightboxIsRunning = false; 308iMapsActions.lightboxAction = function (id, data, type) { 309 var elements = [], 310 width = iMapsActionOptions.lightboxWidth, 311 height = iMapsActionOptions.lightboxHeight, 312 opts = {}; 313 314 if (type === "inline") { 315 316 data.content = '#' + iMapsActions.getIDfromData(data); 317 318 elements.push({ 319 href: data.content, 320 type: type, 321 width: width, 322 height: height 323 }); 324 } else if (type === "external") { 325 326 // iframe 327 if (height === 'auto') { 328 height = parseInt(window.innerHeight * 0.8); 329 } 330 331 elements.push({ 332 href: data.content, 333 type: type, 334 width: width, 335 height: height 336 }); 337 } 338 339 // open image 340 else { 341 342 // check if there's multiple images (divided by comma) 343 if (data.content !== '' && data.content.includes(",")) { 344 let images = data.content.split(","); 345 images.forEach(function (url, ix) { 346 elements.push({ 347 href: url, 348 type: type, 349 width: width, 350 height: height 351 }); 352 }); 353 354 } else { 355 elements.push({ 356 href: data.content, 357 type: type, 358 width: width, 359 height: height 360 }); 361 } 362 } 363 364 opts = { 365 touchNavigation: false, 366 draggable: false, 367 keyboardNavigation: false, 368 loopAtEnd: false, 369 loop: false, 370 zoomable: false, 371 elements: elements, 372 closeButton: false, // changed when we added the custom close button 373 closeOnOutsideClick: true // changed when we added the custom close button 374 }; 375 376 // fix for lightbox closing on bigger touch devices 377 if (window.innerWidth > 768 && iMapsActions.isTouchScreendevice()) { 378 opts.closeOnOutsideClick = false;
379 } 380 381 if (!iMapsActions.lighbox) { 382 iMapsActions.lightbox = GLightbox(opts); 383 384 } 385 386 // add custom close button 387 iMapsActions.lightbox.on('open', function () { 388 let close = document.querySelector('.ginner-container .gslide-media .igm_close'); 389 if (!close) { 390 close = document.createElement('span'); 391 close.classList.add('igm_close'); 392 close.innerHTML = 'â³'; 393 let containers = document.querySelectorAll('.ginner-container .gslide-media'); 394 containers.forEach(function (el) { 395 let clone = close.cloneNode(true); 396 clone.addEventListener('click', function () { 397 iMapsActions.lightbox.close(); 398 }); 399 400 el.prepend(clone); 401 }); 402 } 403 404 }); 405 406 if (data.content !== '' && iMapsActions.lightbox && !iMapsActions.lightboxIsRunning) { 407 iMapsActions.lightbox.open(); 408 iMapsActions.lightboxIsRunning = true; 409 } else { 410 console.log('Empty Action Content or Incorrect Request - Lightbox not triggered'); 411 } 412 413 iMapsActions.lightbox.on('close', function () { 414 iMapsManager.clearSelected(id); 415 iMaps.maps[id].map.lastClickedEntry = false; 416 iMapsActions.lightboxIsRunning = false; 417 }); 418 419}; 420 421iMapsActions.contentBelow = function (id, data, scroll) { 422 // go 2 steps up to find map wrapper. 423 var originalTop, 424 what2display, 425 what2hide, 426 mapContainer = document.getElementById("map_" + id).parentNode.parentNode 427 .parentNode, 428 mapContentContainer = mapContainer.parentNode.querySelector( 429 ".igm_content_below" 430 ), 431 footerContent = document.getElementById("igm-hidden-footer-content"); 432 433 data.content = "[id='" + iMapsActions.getIDfromData(data) + "']"; 434 435 if (mapContentContainer === null) { 436 mapContentContainer = document.createElement("div"); 437 mapContentContainer.classList.add("igm_content_below"); 438 439 mapContainer.parentNode.insertBefore( 440 mapContentContainer, 441 mapContainer.nextSibling 442 ); 443 } 444 445 // hide 446 what2hide = mapContentContainer.children; 447 448 if (what2hide && what2hide.length && footerContent) { 449 450 Array.from(what2hide).forEach((w2h) => { 451 if (w2h.style) { 452 w2h.style.display = 'none'; 453 } 454 footerContent.appendChild(w2h); 455 }) 456 } 457 458 // display this 459 what2display = document.querySelector(data.content); 460 if (what2display) { 461 462 mapContentContainer.appendChild(what2display); 463 if (what2display.style) { 464 what2display.style.display = 'block'; 465 } 466 467 } 468 469 if (scroll) { 470 originalTop = Math.floor( 471 mapContentContainer.getBoundingClientRect().top - 100 472 ); 473 window.scrollBy({ 474 top: originalTop, 475 left: 0, 476 behavior: "smooth" 477 }); 478 } 479}; 480 481iMapsActions.contentAbove = function (id, data, scroll) { 482 // go 2 steps up to find map wrapper. 483 var mapContainer = document.getElementById("map_" + id).parentNode.parentNode 484 .parentNode, 485 mapContentContainer = mapContainer.parentNode.querySelector( 486 ".igm_content_above" 487 ), 488 what2display, 489 what2hide, 490 footerContent = document.getElementById("igm-hidden-footer-content"); 491 492 data.content = "[id='" + iMapsActions.getIDfromData(data) + "']"; 493 494 495 if (mapContentContainer === null) { 496 mapContentContainer = document.createElement("div"); 497 mapContentContainer.classList.add("igm_content_above"); 498 499 mapContainer.parentNode.insertBefore( 500 mapContentContainer, 501 mapContainer.parentNode.childNodes[0] 502 ); 503 } 504 505 // hide 506 what2hide = mapContentContainer.firstChild; 507 if (what2hide && footerContent) { 508 what2hide.style.display = 'none'; 509 footerContent.appendChild(what2hide); 510 } 511 512 // display this 513 what2display = document.querySelector(data.content); 514 if (what2display) { 515 mapContentContainer.appendChild(what2display); 516 what2display.style.display = 'block'; 517 } 518 519 if (scroll) { 520 originalTop = Math.floor( 521 mapContentContainer.getBoundingClientRect().top - 100 522 ); 523 window.scrollBy({ 524 top: originalTop, 525 left: 0, 526 behavior: "smooth" 527 }); 528 } 529}; 530iMapsActions.contentRight = function (id, data, mapClass, contentClass) { 531 // go 2 steps up to find map wrapper. 532 var what2display, 533 what2hide, 534 mapContainer = document.getElementById("map_" + id).parentNode.parentNode 535 .parentNode, 536 mapContentContainer = mapContainer.parentNode.querySelector( 537 "." + contentClass 538 ), 539 mapBox = mapContainer.parentNode.querySelector("." + mapClass), 540 footerContent = document.getElementById("igm-hidden-footer-content"); 541 542 data.content = "[id='" + iMapsActions.getIDfromData(data) + "']"; 543 544 if (mapBox === null) { 545 mapBox = mapContainer.parentNode.querySelector(".map_box"); 546 mapBox.classList.add(mapClass); 547 } 548 549 if (mapContentContainer === null) { 550 mapContentContainer = document.createElement("div"); 551 mapContentContainer.classList.add(contentClass); 552 553 mapContainer.parentNode.insertBefore( 554 mapContentContainer, 555 mapContainer.nextSibling 556 ); 557 } 558 559 // hide 560 what2hide = mapContentContainer.firstChild; 561 if (what2hide && footerContent) { 562 what2hide.style.display = 'none'; 563 footerContent.appendChild(what2hide); 564 } 565 566 // display this 567 what2display = document.querySelector(data.content); 568 569 if (what2display) { 570 mapContentContainer.appendChild(what2display); 571 what2display.style.display = 'block'; 572 } 573 574}; 575 576iMapsActions.pageBelow = function (id, data, scroll) { 577 578 if (data.content === '') { 579 return; 580 } 581 582 var pageId = parseInt(data.content); 583 var url = iMapsActionOptions.restURL + 'pages/' + pageId; 584 var originalTop; 585 586 // go 2 steps up to find map wrapper. 587 var mapContainer = document.getElementById("map_" + id).parentNode.parentNode 588 .parentNode, 589 mapContentContainer = mapContainer.parentNode.querySelector( 590 ".igm_content_below" 591 ); 592 593 var ourRequest = new XMLHttpRequest(); 594 ourRequest.open('GET', url); 595 ourRequest.onload = function () { 596 if (ourRequest.status >= 200 && ourRequest.status < 400) { 597 var responseData = JSON.parse(ourRequest.response); 598 599 mapContentContainer.innerHTML = responseData.content.rendered; 600 601 if (scroll) { 602 originalTop = Math.floor( 603 mapContentContainer.getBoundingClientRect().top - 100 604 ); 605 window.scrollBy({ 606 top: originalTop, 607 left: 0, 608 behavior: "smooth" 609 }); 610 } 611 } else {
612 console.log('We connected to the server, but it returned an error.'); 613 } 614 }; 615 616 ourRequest.onerror = function () { 617 console.log('Connection error'); 618 }; 619 620 ourRequest.send(); 621 622}; 623 624iMapsActions.getIDfromData = function (data) { 625 var id; 626 627 if (typeof data.originalID !== 'undefined') { 628 629 id = data.originalID.replace(/\s/g, ""); 630 id = id.replace(/,/g, "_"); 631 id = iMapsActions.wpFeSanitizeTitle(id); 632 //data.content = "#" + id + '_' + data.mapID; 633 // we use this format, because of ids that start with numbers 634 data.content = id + '_' + data.mapID; 635 } else { 636 637 if (Number.isInteger(data.id)) { 638 data.id = data.id.toString(); 639 } 640 641 id = data.id.replace(/\s/g, ""); 642 id = id.replace(/,/g, "_"); 643 id = iMapsActions.wpFeSanitizeTitle(id); 644 // data.content = "#" + id + '_' + data.mapID; 645 // we use this format, because of ids that start with numbers 646 data.content = id + '_' + data.mapID; 647 } 648 return data.content.toLowerCase(); 649}; 650 651/** 652 * Original Source: https://salferrarello.com/wordpress-sanitize-title-javascript/ 653 * 654 * JavaScript function to mimic the WordPress PHP function sanitize_title() 655 * See https://codex.wordpress.org/Function_Reference/sanitize_title 656 * 657 * Note: the WordPress PHP function sanitize_title() accepts two additional 658 * optional parameters. At this time, this function does not. 659 * 660 * @param string title The title to be santized. 661 * @return string The sanitized string. 662 */ 663 664//php: 4024kiszynic3b3w3d5cwith2fspaced0b4d0b4d0b4d0b428par2922yes7c7c_comma-minus25_101011 665//js : 4024kiszynic3b3w3d5cwith2fspaced0b4d0b4d0b4d0b428par2922yes7c7c_comma-minus25_101011 666 667iMapsActions.wpFeSanitizeTitle = function (title) { 668 var diacriticsMap; 669 title = title.replace(/\ /g, "").replace(/\,/g, "_"); 670 title = encodeURIComponent(title).replace(/\(/g, "%28").replace(/\)/g, "%29").replace(/%/g, "").toLowerCase(); 671 return title; 672 673 return removeSingleTrailingDash( 674 replaceSpacesWithDash( 675 removeAccents( 676 // Strip any HTML tags. 677 title.replace(/<[^>]+>/ig, '') 678 ).toLowerCase() 679 // Replace any forward slashes (/) or periods (.) with a dash (-). 680 .replace(/[\/\.]/g, '-') 681 // Replace anything that is not a: 682 // word character 683 // space 684 // nor a dash (-) 685 // with an empty string (i.e. remove it). 686 .replace(/[^\w\s-]+/g, '') 687 ) 688 ); 689 690 /** 691 * Replace one or more blank spaces (or repeated dashes) with a single dash. 692 * 693 * @param str String that may contain spaces or multiple dashes. 694 * @return String with spaces replaced by dashes and no more than one dash in a row. 695 */ 696 function replaceSpacesWithDash(str) { 697 return str 698 // Replace one or more blank spaces with a single dash (-) 699 .replace(/ +/g, '-') 700 // Replace two or more dashes (-) with a single dash (-). 701 .replace(/-{2,}/g, '-'); 702 } 703 704 /** 705 * If the string end in a dash, remove it. 706 * 707 * @param string str The string which may or may not end in a dash. 708 * @return string The string without a dash on the end. 709 */ 710 function removeSingleTrailingDash(str) { 711 if ('-' === str.substr(str.length - 1)) { 712 return str.substr(0, str.length - 1); 713 } 714 return str; 715 } 716 717 /* Remove accents/diacritics in a string in JavaScript 718 * from https://stackoverflow.com/a/18391901 719 */ 720 721 /* 722 * Licensed under the Apache License, Version 2.0 (the "License"); 723 * you may not use this file except in compliance with the License. 724 * You may obtain a copy of the License at 725 * 726 * http://www.apache.org/licenses/LICENSE-2.0 727 * 728 * Unless required by applicable law or agreed to in writing, software 729 * distributed under the License is distributed on an "AS IS" BASIS, 730 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 731 * See the License for the specific language governing permissions and 732 * limitations under the License. 733 */ 734 function getDiacriticsRemovalMap() { 735 if (diacriticsMap) { 736 return diacriticsMap; 737 } 738 var defaultDiacriticsRemovalMap = [{ 739 'base': 'A', 740 'letters': '\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F' 741 }, 742 { 743 'base': 'AA', 744 'letters': '\uA732' 745 }, 746 { 747 'base': 'AE', 748 'letters': '\u00C6\u01FC\u01E2' 749 }, 750 { 751 'base': 'AO', 752 'letters': '\uA734' 753 }, 754 { 755 'base': 'AU', 756 'letters': '\uA736' 757 }, 758 { 759 'base': 'AV', 760 'letters': '\uA738\uA73A' 761 }, 762 { 763 'base': 'AY', 764 'letters': '\uA73C' 765 }, 766 { 767 'base': 'B', 768 'letters': '\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181' 769 }, 770 { 771 'base': 'C', 772 'letters': '\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E' 773 }, 774 { 775 'base': 'D', 776 'letters': '\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0' 777 }, 778 { 779 'base': 'DZ', 780 'letters': '\u01F1\u01C4' 781 }, 782 { 783 'base': 'Dz', 784 'letters': '\u01F2\u01C5' 785 }, 786 { 787 'base': 'E', 788 'letters': '\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E' 789 }, 790 { 791 'base': 'F', 792 'letters': '\u0046\u24BB\uFF26\u1E1E\u0191\uA77B'
793 }, 794 { 795 'base': 'G', 796 'letters': '\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E' 797 }, 798 { 799 'base': 'H', 800 'letters': '\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D' 801 }, 802 { 803 'base': 'I', 804 'letters': '\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197' 805 }, 806 { 807 'base': 'J', 808 'letters': '\u004A\u24BF\uFF2A\u0134\u0248' 809 }, 810 { 811 'base': 'K', 812 'letters': '\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2' 813 }, 814 { 815 'base': 'L', 816 'letters': '\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780' 817 }, 818 { 819 'base': 'LJ', 820 'letters': '\u01C7' 821 }, 822 { 823 'base': 'Lj', 824 'letters': '\u01C8' 825 }, 826 { 827 'base': 'M', 828 'letters': '\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C' 829 }, 830 { 831 'base': 'N', 832 'letters': '\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4' 833 }, 834 { 835 'base': 'NJ', 836 'letters': '\u01CA' 837 }, 838 { 839 'base': 'Nj', 840 'letters': '\u01CB' 841 }, 842 { 843 'base': 'O', 844 'letters': '\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C' 845 }, 846 { 847 'base': 'OI', 848 'letters': '\u01A2' 849 }, 850 { 851 'base': 'OO', 852 'letters': '\uA74E' 853 }, 854 { 855 'base': 'OU', 856 'letters': '\u0222' 857 }, 858 { 859 'base': 'OE', 860 'letters': '\u008C\u0152' 861 }, 862 { 863 'base': 'oe', 864 'letters': '\u009C\u0153' 865 }, 866 { 867 'base': 'P', 868 'letters': '\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754' 869 }, 870 { 871 'base': 'Q', 872 'letters': '\u0051\u24C6\uFF31\uA756\uA758\u024A' 873 }, 874 { 875 'base': 'R', 876 'letters': '\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782' 877 }, 878 { 879 'base': 'S', 880 'letters': '\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784' 881 }, 882 { 883 'base': 'T', 884 'letters': '\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786' 885 }, 886 { 887 'base': 'TZ', 888 'letters': '\uA728' 889 }, 890 { 891 'base': 'U', 892 'letters': '\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244' 893 }, 894 { 895 'base': 'V', 896 'letters': '\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245' 897 }, 898 { 899 'base': 'VY', 900 'letters': '\uA760' 901 }, 902 { 903 'base': 'W', 904 'letters': '\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72' 905 }, 906 { 907 'base': 'X', 908 'letters': '\u0058\u24CD\uFF38\u1E8A\u1E8C' 909 }, 910 { 911 'base': 'Y', 912 'letters': '\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE' 913 }, 914 { 915 'base': 'Z', 916 'letters': '\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762' 917 }, 918 { 919 'base': 'a', 920 'letters': '\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250' 921 }, 922 { 923 'base': 'aa', 924 'letters': '\uA733' 925 }, 926 { 927 'base': 'ae', 928 'letters': '\u00E6\u01FD\u01E3' 929 }, 930 { 931 'base': 'ao', 932 'letters': '\uA735' 933 }, 934 { 935 'base': 'au', 936 'letters': '\uA737' 937 }, 938 { 939 'base': 'av', 940 'letters': '\uA739\uA73B' 941 }, 942 { 943 'base': 'ay', 944 'letters': '\uA73D' 945 }, 946 { 947 'base': 'b', 948 'letters': '\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253' 949 }, 950 { 951 'base': 'c', 952 'letters': '\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184' 953 }, 954 { 955 'base': 'd', 956 'letters': '\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A' 957 }, 958 { 959 'base': 'dz', 960 'letters': '\u01F3\u01C6' 961 }, 962 { 963 'base': 'e', 964 'letters': '\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD' 965 }, 966 { 967 'base': 'f', 968 'letters': '\u0066\u24D5\uFF46\u1E1F\u0192\uA77C' 969 }, 970 { 971 'base': 'g', 972 'letters': '\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F' 973 }, 974 { 975 'base': 'h', 976 'letters': '\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265' 977 }, 978 { 979 'base': 'hv', 980 'letters': '\u0195' 981 }, 982 { 983 'base': 'i', 984 'letters': '\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131' 985 }, 986 { 987 'base': 'j', 988 'letters': '\u006A\u24D9\uFF4A\u0135\u01F0\u0249' 989 }, 990 { 991 'base': 'k', 992 'letters': '\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3' 993 }, 994 { 995 'base': 'l', 996 'letters': '\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747' 997 }, 998 { 999 'base': 'lj', 1000 'letters': '\u01C9' 1001 }, 1002 { 1003 'base': 'm', 1004 'letters': '\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F' 1005 }, 1006 { 1007 'base': 'n', 1008 'letters': '\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5' 1009 }, 1010 { 1011 'base': 'nj', 1012 'letters': '\u01CC' 1013 }, 1014 { 1015 'base': 'o',
1016 'letters': '\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275' 1017 }, 1018 { 1019 'base': 'oi', 1020 'letters': '\u01A3' 1021 }, 1022 { 1023 'base': 'ou', 1024 'letters': '\u0223' 1025 }, 1026 { 1027 'base': 'oo', 1028 'letters': '\uA74F' 1029 }, 1030 { 1031 'base': 'p', 1032 'letters': '\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755' 1033 }, 1034 { 1035 'base': 'q', 1036 'letters': '\u0071\u24E0\uFF51\u024B\uA757\uA759' 1037 }, 1038 { 1039 'base': 'r', 1040 'letters': '\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783' 1041 }, 1042 { 1043 'base': 's', 1044 'letters': '\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B' 1045 }, 1046 { 1047 'base': 't', 1048 'letters': '\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787' 1049 }, 1050 { 1051 'base': 'tz', 1052 'letters': '\uA729' 1053 }, 1054 { 1055 'base': 'u', 1056 'letters': '\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289' 1057 }, 1058 { 1059 'base': 'v', 1060 'letters': '\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C' 1061 }, 1062 { 1063 'base': 'vy', 1064 'letters': '\uA761' 1065 }, 1066 { 1067 'base': 'w', 1068 'letters': '\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73' 1069 }, 1070 { 1071 'base': 'x', 1072 'letters': '\u0078\u24E7\uFF58\u1E8B\u1E8D' 1073 }, 1074 { 1075 'base': 'y', 1076 'letters': '\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF' 1077 }, 1078 { 1079 'base': 'z', 1080 'letters': '\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763' 1081 } 1082 ]; 1083 1084 diacriticsMap = {}; 1085 for (var i = 0; i < defaultDiacriticsRemovalMap.length; i++) { 1086 var letters = defaultDiacriticsRemovalMap[i].letters; 1087 for (var j = 0; j < letters.length; j++) { 1088 diacriticsMap[letters[j]] = defaultDiacriticsRemovalMap[i].base; 1089 } 1090 } 1091 return diacriticsMap; 1092 } 1093 1094 // Remove accent characters/diacritics from the string. 1095 function removeAccents(str) { 1096 diacriticsMap = getDiacriticsRemovalMap();
1097 return str.replace(/[^\u0000-\u007E]/g, function (a) { 1098 return diacriticsMap[a] || a; 1099 }); 1100 } 1101 1102 function urlenc(str) { 1103 return encodeURI(str).toLowerCase(); 1104 } 1105}; 1106 1107iMapsActions.resetContainer = function (id, selector) { 1108 var mapContainer = document.getElementById("map_wrapper_" + id); 1109 var footerContent = document.getElementById("igm-hidden-footer-content"); 1110 var mapContentContainer, what2hide; 1111 1112 // if map container doesn't exist, return. we might be trying to reset a container with id of an overlay 1113 if (mapContainer === null) { 1114 return; 1115 } 1116 1117 mapContentContainer = mapContainer.querySelector(selector); 1118 1119 if (mapContentContainer !== null) { 1120 1121 what2hide = mapContentContainer.firstChild; 1122 if (what2hide && footerContent) { 1123 what2hide.style.display = 'none'; 1124 footerContent.appendChild(what2hide); 1125 } 1126 what2display = document.getElementById('default_' + id); 1127 if (what2display) { 1128 mapContentContainer.appendChild(what2display); 1129 what2display.style.display = 'block'; 1130 } 1131 } 1132}; 1133 1134iMapsActions.resetActions = function (id) { 1135 1136 iMapsActions.resetContainer(id, ".igm_content_below"); 1137 iMapsActions.resetContainer(id, ".igm_content_above"); 1138 iMapsActions.resetContainer(id, ".igm_content_right_1_3"); 1139 1140}; 1141 1142iMapsActions.isTouchScreendevice = function () { 1143 return 'ontouchstart' in window || navigator.maxTouchPoints; 1144}; 1145 1146 1147iMapsActions.loadScript = function (url, callback) { 1148 var script = document.createElement('script'); 1149 script.type = 'text/javascript'; 1150 script.src = url; 1151 script.onreadystatechange = callback; 1152 script.onload = callback; 1153 document.head.appendChild(script); 1154}; 1155 1156iMapsActions.loadScripts = function (urls, callback) { 1157 1158 var loadedCount = 0; 1159 var multiCallback = function () { 1160 loadedCount++; 1161 if (loadedCount >= urls.length) { 1162 callback.call(this, arguments); 1163 } 1164 }; 1165 1166 urls.forEach(function (url, index) { 1167 iMapsActions.loadScript(url, multiCallback); 1168 }); 1169}; 1170 1171if (typeof iMapsActionOptions.async !== 'undefined' && Array.isArray(iMapsActionOptions.urls) && iMapsActionOptions.urls.length > 0) { 1172 1173 iMapsActions.loadScripts(iMapsActionOptions.urls, function () { 1174 iMapsActions.init(); 1175 }); 1176 1177} else { 1178 iMapsActions.init(); 1179}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.