{"id":12,"date":"2026-03-14T11:45:31","date_gmt":"2026-03-14T11:45:31","guid":{"rendered":"https:\/\/kalman.unitfinder.rs\/?page_id=12"},"modified":"2026-09-08T21:33:12","modified_gmt":"2026-09-08T20:33:12","slug":"unit-finder","status":"publish","type":"page","link":"https:\/\/kalman.unitfinder.rs\/en\/","title":{"rendered":"Unit Finder"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"12\" class=\"elementor elementor-12\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-292dca2 e-con-full e-flex e-con e-parent\" data-id=\"292dca2\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-323437d elementor-widget elementor-widget-html\" data-id=\"323437d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<!-- Dugme za otvaranje mape -->\r\n<button id=\"openMapBtn\" class=\"open-map-btn\">Prika\u017ei poziciju<\/button>\r\n\r\n<!-- Floating mapa (kartica u gornjem desnom uglu) -->\r\n<div id=\"mapFloating\" class=\"map-floating\">\r\n  <div class=\"map-floating-header\">\r\n    <span class=\"map-title\">Navigacija<\/span>\r\n    <button id=\"closeMapBtn\" class=\"close-map-btn\">\u2715<\/button>\r\n  <\/div>\r\n  <div class=\"map-floating-body\">\r\n    <!-- Tri slike koje predstavljaju tri pogleda fasade -->\r\n    <img decoding=\"async\" class=\"map-view\" data-view=\"dva.jpg\"\r\n         src=\"https:\/\/kalman.unitfinder.rs\/wp-content\/uploads\/2026\/03\/a3-4.svg\"\r\n         style=\"display:none;\" alt=\"Mapa desno A\" \/>\r\n         <img decoding=\"async\" class=\"map-view\" data-view=\"jedan.jpg\"\r\n         src=\"https:\/\/kalman.unitfinder.rs\/wp-content\/uploads\/2026\/03\/a2-3.svg\"\r\n         style=\"display:none;\" alt=\"Mapa levo A\" \/>\r\n    <img decoding=\"async\" class=\"map-view\" data-view=\"tri.jpg\"\r\n         src=\"https:\/\/kalman.unitfinder.rs\/wp-content\/uploads\/2026\/03\/a1-4.svg\"\r\n         style=\"display:none;\" alt=\"Mapa front A\" \/>\r\n        \r\n  <\/div>\r\n<\/div>\r\n\r\n<script>\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n  const miniMaps = document.querySelectorAll(\".map-view\");\r\n  if (!miniMaps.length) return;\r\n\r\n  let lastSeen = \"\";\r\n\r\n  function updateMiniMap() {\r\n    const img = document.querySelector(\"img.imp-image\");\r\n    if (!img) return;\r\n\r\n    const src = img.getAttribute(\"src\");\r\n    if (!src) return;\r\n\r\n    const filename = src.split(\"\/\").pop();\r\n    if (filename === lastSeen) return;\r\n\r\n    lastSeen = filename;\r\n\r\n    miniMaps.forEach((map) => {\r\n      map.style.display = (map.dataset.view === filename) ? \"block\" : \"none\";\r\n    });\r\n  }\r\n\r\n  \/\/ Prati svakih 300ms \u2013 kao original\r\n  setInterval(updateMiniMap, 300);\r\n});\r\n<\/script>\r\n\r\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fbdc840 elementor-widget elementor-widget-html\" data-id=\"fbdc840\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<div id=\"scroll-hint-overlay\">\r\n  <div class=\"scroll-hint-content\">\r\n    <img decoding=\"async\" src=\"https:\/\/kalman.unitfinder.rs\/wp-content\/uploads\/2026\/09\/scroll-hint.png\" alt=\"Scroll hint\" class=\"scroll-hand-img\" \/>\r\n    <p class=\"scroll-hint-content-text\">Prevucite za pregled<\/p>\r\n  <\/div>\r\n<\/div>\r\n\r\n<style>\r\n\r\n\/* \u274c Sakrij na ve\u0107im ekranima *\/\r\n@media (min-width: 768px) {\r\n  #scroll-hint-overlay {\r\n    display: none !important;\r\n  }\r\n}\r\n\r\n\/* \ud83d\udda4 Crni overlay preko celog ekrana *\/\r\n#scroll-hint-overlay {\r\n  display: none; \/* \ud83d\udeab Ne prikazuj dok JS ne odlu\u010di *\/\r\n  position: fixed;\r\n  top: 0;\r\n  left: 0;\r\n  width: 100vw;\r\n  height: 100vh;\r\n  background: rgba(0, 0, 0, 0.7);\r\n  z-index: 999999;\r\n  justify-content: center;\r\n  align-items: center;\r\n  opacity: 0;\r\n  animation: hintOverlayFade 3s ease forwards;\r\n}\r\n\r\n\/* \ud83c\udf1f Sadr\u017eaj u centru *\/\r\n.scroll-hint-content {\r\n  text-align: center;\r\n  color: white;\r\n  font-family: 'Montserrat', sans-serif!important;\r\n  font-size: 20px;\r\n  letter-spacing: 0.5px;\r\n  display: flex;\r\n  flex-direction: column;\r\n  align-items: center;\r\n}\r\n\r\n\r\n\r\n\r\n\/* \ud83d\udd90 Slika ruke (animacija pomeranja levo-desno) *\/\r\n.scroll-hand-img {\r\n  width: 60px;\r\n  height: auto;\r\n  margin-bottom: 12px;\r\n  animation: handMove 1.6s ease-in-out infinite;\r\n}\r\n\r\n\/* \u2728 Tekst *\/\r\n.scroll-hint-content p {\r\n  margin: 0;\r\n  opacity: 0.9;\r\n}\r\n\r\n\/* \ud83d\udd04 Animacije *\/\r\n@keyframes hintOverlayFade {\r\n  0% { opacity: 0; }\r\n  10%, 85% { opacity: 1; }\r\n  100% { opacity: 0; }\r\n}\r\n\r\n@keyframes handMove {\r\n  0%, 100% { transform: translateX(-30px); }\r\n  50% { transform: translateX(30px); }\r\n}\r\n\r\n\/* \ud83d\udd73\ufe0f Kad JS sakrije overlay *\/\r\n#scroll-hint-overlay.hide {\r\n  display: none !important;\r\n}\r\n<\/style>\r\n\r\n<script type=\"text\/javascript\">\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n  console.log(\"Scroll hint script loaded \u2705\");\r\n\r\n  const pageKey = \"scrollHintSeen\"; \/\/ ako \u017eeli\u0161 po stranici, dodaj + window.location.pathname\r\n\r\n  \/\/ Ako je korisnik ve\u0107 video \u2014 presko\u010di\r\n  if (localStorage.getItem(pageKey)) {\r\n    console.log(\"User has already seen the hint. Skipping \ud83d\udc40\");\r\n    return;\r\n  }\r\n\r\n  const hint = document.getElementById(\"scroll-hint-overlay\");\r\n  if (!hint) {\r\n    console.log(\"\u274c #scroll-hint-overlay not found!\");\r\n    return;\r\n  }\r\n\r\n  \/\/ Prikazujemo overlay\r\n  hint.style.display = \"flex\";\r\n  hint.style.opacity = \"1\";\r\n  console.log(\"Hint shown for the first time \ud83c\udfac\");\r\n\r\n  \/\/ \u23f3 Nakon 2 sekunde pokre\u0107emo fade i sakrivamo\r\n  setTimeout(() => {\r\n    hint.style.transition = \"opacity 0.5s ease\"; \/\/ fade-out\r\n    hint.style.opacity = \"0\";\r\n\r\n    setTimeout(() => {\r\n      hint.classList.add(\"hide\");\r\n      localStorage.setItem(pageKey, \"true\");\r\n      console.log(\"Hint hidden and saved to localStorage \u2705\");\r\n    }, 500); \/\/ fade duration\r\n  }, 3000); \/\/ prikaz traje 2s\r\n});\r\n<\/script>\r\n\r\n\r\n\r\n\r\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8f50765 elementor-widget elementor-widget-html\" data-id=\"8f50765\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<script>\r\n(function () {\r\n  if (window.__landscapeFixInitialized) return;\r\n  window.__landscapeFixInitialized = true;\r\n\r\n  window.TTI18N = window.TTI18N || { lang:'sr', prefix:'', t:function(k,f){return f;}, url:function(u){return u;}, floor:function(v){return v==='PR'?'Prizemlje':v+'. sprat';} };\r\n\r\n  var isAndroid = \/Android\/i.test(navigator.userAgent);\r\n\r\n  var style = document.createElement(\"style\");\r\n  style.innerHTML = `\r\n    #global-landscape-blocker{\r\n      display:none;\r\n      position:fixed;\r\n      inset:0;\r\n      width:100vw;\r\n      height:100vh;\r\n      background:#ffffff;\r\n      z-index:2147483647;\r\n      align-items:center;\r\n      justify-content:center;\r\n      text-align:center;\r\n      padding:24px;\r\n      box-sizing:border-box;\r\n    }\r\n\r\n    #global-landscape-blocker.show{\r\n      display:flex;\r\n    }\r\n\r\n    #global-landscape-blocker .inner{\r\n      max-width:420px;\r\n      margin:0 auto;\r\n    }\r\n\r\n    #global-landscape-blocker h2{\r\n      margin:0 0 12px;\r\n      font-size:28px;\r\n      line-height:1.2;\r\n      color:#111111;\r\n    }\r\n\r\n    #global-landscape-blocker p{\r\n      margin:0;\r\n      font-size:16px;\r\n      line-height:1.5;\r\n      color:#444444;\r\n    }\r\n\r\n    .uf-hidden-landscape{\r\n      display:none !important;\r\n    }\r\n  `;\r\n  document.head.appendChild(style);\r\n\r\n  var blocker = document.createElement(\"div\");\r\n  blocker.id = \"global-landscape-blocker\";\r\n  blocker.setAttribute(\"data-no-translation\", \"\");\r\n  blocker.innerHTML = `\r\n    <div class=\"inner\">\r\n      <h2>${TTI18N.t('landscape_title', 'Molimo Vas koristite uspravan prikaz')}<\/h2>\r\n      <p>${TTI18N.t('landscape_text', 'Ova stranica je optimizovana za portrait re\u017eim ili desktop ure\u0111aje.')}<\/p>\r\n    <\/div>\r\n  `;\r\n  document.body.appendChild(blocker);\r\n\r\n  function isTouchDevice() {\r\n    return (\r\n      \"ontouchstart\" in window ||\r\n      navigator.maxTouchPoints > 0 ||\r\n      navigator.msMaxTouchPoints > 0\r\n    );\r\n  }\r\n\r\n  function isMobileLike() {\r\n    var smallestSide = Math.min(window.screen.width || 0, window.screen.height || 0);\r\n    return isTouchDevice() && smallestSide <= 1024;\r\n  }\r\n\r\n  function isLandscape() {\r\n    if (window.matchMedia) {\r\n      return window.matchMedia(\"(orientation: landscape)\").matches;\r\n    }\r\n    return window.innerWidth > window.innerHeight;\r\n  }\r\n\r\n  function getUnitFinderElement() {\r\n    var imp = document.querySelector('.imp-container');\r\n    if (!imp) return null;\r\n    return imp.closest('[id^=\"mm-aechitect-pro-\"]') || imp;\r\n  }\r\n\r\n  function resetUnitFinderForPortrait() {\r\n    var root = getUnitFinderElement();\r\n    if (!root) return;\r\n\r\n    var impContainer = root.querySelector('.imp-container');\r\n    var impWrap = root.querySelector('.imp-ui-wrap');\r\n    var impCanvasWrap = root.querySelector('.imp-canvas-wrap');\r\n    var impCanvas = root.querySelector('.imp-canvas');\r\n\r\n    root.style.removeProperty('width');\r\n    root.style.removeProperty('height');\r\n    root.style.removeProperty('max-width');\r\n    root.style.removeProperty('max-height');\r\n    root.style.removeProperty('overflow');\r\n\r\n    if (impContainer) {\r\n      impContainer.style.removeProperty('width');\r\n      impContainer.style.removeProperty('height');\r\n      impContainer.style.removeProperty('max-width');\r\n      impContainer.style.removeProperty('max-height');\r\n      impContainer.style.removeProperty('transform');\r\n    }\r\n\r\n    if (impWrap) {\r\n      impWrap.style.removeProperty('width');\r\n      impWrap.style.removeProperty('height');\r\n      impWrap.style.removeProperty('max-width');\r\n      impWrap.style.removeProperty('max-height');\r\n      impWrap.style.removeProperty('overflow-x');\r\n      impWrap.style.removeProperty('overflow-y');\r\n      impWrap.style.removeProperty('transform');\r\n      impWrap.scrollLeft = 0;\r\n    }\r\n\r\n    if (impCanvasWrap) {\r\n      impCanvasWrap.style.removeProperty('width');\r\n      impCanvasWrap.style.removeProperty('height');\r\n      impCanvasWrap.style.removeProperty('max-width');\r\n      impCanvasWrap.style.removeProperty('max-height');\r\n      impCanvasWrap.style.removeProperty('transform');\r\n    }\r\n\r\n    if (impCanvas) {\r\n      impCanvas.style.removeProperty('width');\r\n      impCanvas.style.removeProperty('height');\r\n      impCanvas.style.removeProperty('max-width');\r\n      impCanvas.style.removeProperty('max-height');\r\n      impCanvas.style.removeProperty('transform');\r\n    }\r\n\r\n    window.dispatchEvent(new Event('resize'));\r\n    window.dispatchEvent(new Event('orientationchange'));\r\n\r\n    setTimeout(function () {\r\n      window.dispatchEvent(new Event('resize'));\r\n    }, 150);\r\n\r\n    setTimeout(function () {\r\n      window.dispatchEvent(new Event('resize'));\r\n    }, 400);\r\n  }\r\n\r\n  function updateBlocker() {\r\n    var unitFinder = getUnitFinderElement();\r\n    var show = isMobileLike() && isLandscape();\r\n\r\n    if (show) {\r\n      blocker.classList.add(\"show\");\r\n      sessionStorage.setItem(\"wasLandscape\", \"1\");\r\n\r\n      if (unitFinder) {\r\n        unitFinder.classList.add(\"uf-hidden-landscape\");\r\n      }\r\n    } else {\r\n      if (sessionStorage.getItem(\"wasLandscape\") === \"1\") {\r\n        sessionStorage.removeItem(\"wasLandscape\");\r\n\r\n        blocker.classList.add(\"show\");\r\n\r\n        if (unitFinder) {\r\n          unitFinder.classList.remove(\"uf-hidden-landscape\");\r\n        }\r\n\r\n        setTimeout(function () {\r\n          resetUnitFinderForPortrait();\r\n        }, 80);\r\n\r\n        if (isAndroid) {\r\n          setTimeout(function () {\r\n            window.dispatchEvent(new Event('resize'));\r\n          }, 180);\r\n        }\r\n\r\n        setTimeout(function () {\r\n          blocker.classList.remove(\"show\");\r\n        }, 350);\r\n\r\n      } else {\r\n        blocker.classList.remove(\"show\");\r\n\r\n        if (unitFinder) {\r\n          unitFinder.classList.remove(\"uf-hidden-landscape\");\r\n        }\r\n      }\r\n    }\r\n  }\r\n\r\n  window.addEventListener(\"load\", function () {\r\n    updateBlocker();\r\n    setTimeout(updateBlocker, 200);\r\n  });\r\n\r\n  window.addEventListener(\"resize\", updateBlocker);\r\n\r\n  window.addEventListener(\"orientationchange\", function () {\r\n    setTimeout(updateBlocker, 100);\r\n    setTimeout(updateBlocker, 350);\r\n    setTimeout(updateBlocker, 700);\r\n  });\r\n\r\n  setTimeout(updateBlocker, 100);\r\n  setTimeout(updateBlocker, 400);\r\n})();\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9d98195 elementor-widget elementor-widget-shortcode\" data-id=\"9d98195\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><div><div id=\"mm-aechitect-pro-b349742e-7039-4aa5-85db-89a5cbe73f13\"><\/div><\/div><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Prika\u017ei poziciju Navigacija \u2715 Prevucite za pregled<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-12","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/kalman.unitfinder.rs\/en\/wp-json\/wp\/v2\/pages\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kalman.unitfinder.rs\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kalman.unitfinder.rs\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kalman.unitfinder.rs\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kalman.unitfinder.rs\/en\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":157,"href":"https:\/\/kalman.unitfinder.rs\/en\/wp-json\/wp\/v2\/pages\/12\/revisions"}],"predecessor-version":[{"id":1124,"href":"https:\/\/kalman.unitfinder.rs\/en\/wp-json\/wp\/v2\/pages\/12\/revisions\/1124"}],"wp:attachment":[{"href":"https:\/\/kalman.unitfinder.rs\/en\/wp-json\/wp\/v2\/media?parent=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}