{"id":21774,"date":"2026-04-03T07:29:22","date_gmt":"2026-04-03T06:29:22","guid":{"rendered":"https:\/\/marinaport.hu\/app\/?page_id=21774"},"modified":"2026-04-03T11:15:11","modified_gmt":"2026-04-03T10:15:11","slug":"win","status":"publish","type":"page","link":"https:\/\/marinaport.hu\/app\/win\/","title":{"rendered":"Win"},"content":{"rendered":"\n<style>\n    .marina-container {\n        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n        max-width: 800px;\n        margin: 20px auto;\n        background: #fff;\n        border-radius: 8px;\n        box-shadow: 0 4px 6px rgba(0,0,0,0.1);\n        overflow: hidden;\n    }\n    .marina-header {\n        background-color: #005f9e; \/* Kik\u00f6t\u0151i s\u00f6t\u00e9tk\u00e9k *\/\n        color: white;\n        padding: 15px 20px;\n        font-size: 1.2em;\n        font-weight: bold;\n        display: flex;\n        justify-content: space-between;\n        align-items: center;\n    }\n    .marina-table {\n        width: 100%;\n        border-collapse: collapse;\n    }\n    .marina-table th, .marina-table td {\n        padding: 12px 20px;\n        text-align: left;\n        border-bottom: 1px solid #eee;\n    }\n    .marina-table th {\n        background-color: #f4f7f6;\n        color: #333;\n        font-weight: 600;\n        text-transform: uppercase;\n        font-size: 0.9em;\n    }\n    .marina-table tr:hover {\n        background-color: #f9fbff;\n    }\n    .marina-status {\n        display: inline-block;\n        padding: 4px 8px;\n        border-radius: 12px;\n        background-color: #e3fcec;\n        color: #108043;\n        font-size: 0.85em;\n        font-weight: bold;\n    }\n    #marina-loading {\n        padding: 20px;\n        text-align: center;\n        color: #666;\n        font-style: italic;\n    }\n    #marina-error {\n        padding: 20px;\n        color: #d9534f;\n        text-align: center;\n        display: none;\n    }\n<\/style>\n\n<div class=\"marina-container\">\n    <div class=\"marina-header\">\n        <span>\u2693 Jelenleg a kik\u00f6t\u0151ben tart\u00f3zkod\u00f3 j\u00e1rm\u0171vek<\/span>\n        <span id=\"marina-count\" style=\"font-size: 0.8em; background: rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 20px;\">Adatok bet\u00f6lt\u00e9se&#8230;<\/span>\n    <\/div>\n    \n    <div id=\"marina-loading\">A rendszer lek\u00e9rdezi az \u00e9l\u0151 adatokat a port\u00e1r\u00f3l&#8230; \u23f3<\/div>\n    <div id=\"marina-error\">Hiba t\u00f6rt\u00e9nt az adatok lek\u00e9rdez\u00e9sekor. Nem siker\u00fclt kapcsol\u00f3dni a szerverhez!<\/div>\n\n    <table class=\"marina-table\" id=\"marina-data-table\" style=\"display: none;\">\n        <thead>\n            <tr>\n                <th>N\u00e9v (B\u00e9rl\u0151 \/ Tulajdonos)<\/th>\n                <th>Bel\u00e9p\u00e9s ideje<\/th>\n                <th>\u00c1llapot<\/th>\n            <\/tr>\n        <\/thead>\n        <tbody id=\"marina-table-body\">\n            <\/tbody>\n    <\/table>\n<\/div>\n\n<script>\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        \/\/ === IDE \u00cdRD A PYTHON SZERVERED C\u00cdM\u00c9T! ===\n        \/\/ Ha a weblapot a bels\u0151 h\u00e1l\u00f3zatr\u00f3l n\u00e9zitek, a 10.0.1.253 is j\u00f3 lehet.\n        \/\/ Ha otthonr\u00f3l, akkor a kik\u00f6t\u0151 publikus IP c\u00edme kell (\u00e9s port nyit\u00e1s a routeren).\n        const apiUrl = '10.0.1.19:5050\/api\/parkolo-lista';\n\n        const loadingDiv = document.getElementById('marina-loading');\n        const errorDiv = document.getElementById('marina-error');\n        const table = document.getElementById('marina-data-table');\n        const tableBody = document.getElementById('marina-table-body');\n        const countSpan = document.getElementById('marina-count');\n\n        \/\/ Lek\u00e9rdezz\u00fck az adatokat a Python szervert\u0151l\n        fetch(apiUrl)\n            .then(response => {\n                if (!response.ok) {\n                    throw new Error('H\u00e1l\u00f3zati hiba t\u00f6rt\u00e9nt');\n                }\n                return response.json();\n            })\n            .then(data => {\n                \/\/ Elt\u00fcntetj\u00fck a t\u00f6lt\u00e9s feliratot, megjelen\u00edtj\u00fck a t\u00e1bl\u00e1zatot\n                loadingDiv.style.display = 'none';\n                table.style.display = 'table';\n                \n                \/\/ Be\u00e1ll\u00edtjuk a darabsz\u00e1mot a fejl\u00e9cben\n                countSpan.innerText = data.length + ' j\u00e1rm\u0171 bent';\n\n                \/\/ V\u00e9gigmegy\u00fcnk a kapott list\u00e1n, \u00e9s sorokat gy\u00e1rtunk bel\u0151le\n                data.forEach(item => {\n                    const row = document.createElement('tr');\n                    \n                    row.innerHTML = `\n                        <td><strong>${item.nev}<\/strong><\/td>\n                        <td>${item.belepes_ideje}<\/td>\n                        <td><span class=\"marina-status\">BENT VAN<\/span><\/td>\n                    `;\n                    \n                    tableBody.appendChild(row);\n                });\n\n                if(data.length === 0) {\n                     tableBody.innerHTML = '<tr><td colspan=\"3\" style=\"text-align:center;\">Jelenleg nincs bent regisztr\u00e1lt j\u00e1rm\u0171.<\/td><\/tr>';\n                }\n            })\n            .catch(error => {\n                console.error('Lek\u00e9rdez\u00e9si hiba:', error);\n                loadingDiv.style.display = 'none';\n                errorDiv.style.display = 'block';\n                countSpan.innerText = 'Hiba a kapcsolatban';\n            });\n    });\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>\u2693 Jelenleg a kik\u00f6t\u0151ben tart\u00f3zkod\u00f3 j\u00e1rm\u0171vek Adatok bet\u00f6lt\u00e9se&#8230; A rendszer lek\u00e9rdezi az \u00e9l\u0151 adatokat a port\u00e1r\u00f3l&#8230; \u23f3 Hiba t\u00f6rt\u00e9nt az adatok lek\u00e9rdez\u00e9sekor. Nem siker\u00fclt kapcsol\u00f3dni a szerverhez! N\u00e9v (B\u00e9rl\u0151 \/ Tulajdonos) Bel\u00e9p\u00e9s ideje \u00c1llapot<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"blank","meta":{"footnotes":""},"class_list":["post-21774","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/pages\/21774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/comments?post=21774"}],"version-history":[{"count":4,"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/pages\/21774\/revisions"}],"predecessor-version":[{"id":21783,"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/pages\/21774\/revisions\/21783"}],"wp:attachment":[{"href":"https:\/\/marinaport.hu\/app\/wp-json\/wp\/v2\/media?parent=21774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}