PageSourceSearch

https://hidrografija.si/wp-content/themes/hello-elementor-child/assets/js/hg-table-titles.js?ver=1.0.0

js hidrografija.si collected 2026-09-25 07:39:35 UTC 4,377 bytes, 133 lines download raw bytes

1(function ($) {
2  function lang() {
3    return (document.documentElement.getAttribute("lang") || "").trim().toLowerCase();
4  }
5
6  function getTooltips() {
7    var l = lang();
8
9    if (l.startsWith("en")) {
10      return {
11        custom_field_1: [
12          "Slovenian Unique Identifier",
13          "British Admiralty Unique Identifier (where applicable)"
14        ],
15        custom_field_16: [
16          "Name of the area in which the object is located",
17          "The individual name of an object"
18        ],
19        custom_field_3: [
20          "The coordinate, a position is converted to WGS 84 and given in degrees and minutes",
21          "The coordinate, a position is converted to WGS 84 and given in degrees and minutes"
22        ],
23        custom_field_19: [
24          "Color, flashing and period of light (the time taken to exhibit one full sequence of flashes and eclipses, given in seconds)"
25        ],
26        custom_field_10: [
27          "The elevation of the light, given in meters. The reference for elevation is mean sea level"
28        ],
29        custom_field_11: [
30          "Range in sea miles, in bold type if of 15 miles or more"
31        ],
32        custom_field_20: [
33          "Description of structure (shape, colour, material of the object and topmark)",
34          "Height from the bottom to the top, given in metres"
35        ],
36        custom_field_21: [
37          "Remarks, including phase, sectors and arcs of visibility"
38        ],
39        custom_field_12: [
40          "The origin of the Notice to Mariners in which the changes were published"
41        ]
42      };
43    }
44
45    return {
46      custom_field_1: [
47        "Enolični SI identifikator",
48        "Enolični identifikator British Admiralty (kjer obstaja)"
49      ],
50      custom_field_2: [
51        "Krajevno ime območja, v katerem se objekt nahaja",
52        "Individualno ime objekta"
53      ],
54      custom_field_3: [
55        "Koordinata, ki se nanaša na referenčni elipsoid WGS 84, izražena v kotnih stopinjah in kotnih minutah",
56        "Koordinata, ki se nanaša na referenčni elipsoid WGS 84, izražena v kotnih stopinjah in kotnih minutah"
57      ],
58      custom_field_7: [
59        "Barva luči, število bliskov in perioda luči (čas, ki je potreben, da se ponovi celo zaporedje bliskov in zatemnitev, izraženo v sekundah)"
60      ],
61      custom_field_10: [
62        "Nadmorska višina svetilnega telesa na objektu, izražena v metrih. Višine se nanašajo na srednji nivo morja"
63      ],
64      custom_field_11: [
65        "Svetlobni domet svetilnega telesa, izražen v navtičnih miljah"
66      ],
67      custom_field_8: [
68        "Opis strukture objekta (oblika, barva, material in vrhnje znamenje)",
69        "Višina od vznožja do vrha objekta, izražena v metrih"
70      ],
71      custom_field_9: [
72        "Dopolnilne informacije o objektu (trajanje bliska in zatemnitve, sektorji vidnosti, navedba rezervne luči in njen domet, navedba drugih signalnih sredstev)"
73      ],
74      custom_field_12: [
75        "Izvod Obvestila za pomorščake, v katerem so bile objavljene spremembe"
76      ]
77    };
78  }
79
80  function escapeAttr(str) {
81    return String(str)
82      .replace(/&/g, "&")
83      .replace(/"/g, """)
84      .replace(/</g, "&lt;")
85      .replace(/>/g, "&gt;");
86  }
87
88  function applyHeaderTooltips() {
89    var tooltips = getTooltips();
90
91    $("table.wpgmza_table th[data-wpgmza-column-name]").each(function () {
92      var $th = $(this);
93      var colName = $th.attr("data-wpgmza-column-name");
94      var tips = tooltips[colName];
95
96      if (!tips) return;
97      if ($th.data("hg-tooltips-done")) return;
98
99      var html = $th.html();
100
101      if (/<br\s*\/?>/i.test(html)) {
102        var parts = html.split(/<br\s*\/?>/i);
103        var newHtml = "";
104
105        parts.forEach(function (part, i) {
106          var tip = tips[i] || tips[0] || "";
107          newHtml += '<span class="hg-th-part" title="' + escapeAttr(tip) + '">' + part.trim() + "</span>";
108
109          if (i < parts.length - 1) {
110            newHtml += "<br>";
111          }
112        });
113
114        $th.html(newHtml);
115      } else {
116        $th.attr("title", tips[0]);
117      }
118
119      $th.data("hg-tooltips-done", true);
120    });
121  }
122
123  function run() {
124    applyHeaderTooltips();
125  }
126
127  $(document).ready(function () {
128    run();
129    setTimeout(run, 800);
130    setTimeout(run, 1800);
131    setTimeout(run, 3000);
132  });
133})(jQuery);

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.