{"id":60,"date":"2025-09-04T10:40:26","date_gmt":"2025-09-04T10:40:26","guid":{"rendered":"https:\/\/vladi.dapho.net\/?page_id=60"},"modified":"2025-09-11T13:16:04","modified_gmt":"2025-09-11T13:16:04","slug":"elementor-60","status":"publish","type":"page","link":"https:\/\/vladi.dapho.net\/","title":{"rendered":"Elementor #60"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"60\" class=\"elementor elementor-60\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f728911 e-flex e-con-boxed e-con e-parent\" data-id=\"f728911\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-fe6e266 elementor-widget elementor-widget-html\" data-id=\"fe6e266\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n    <title>Document<\/title>\r\n<\/head>\r\n<body onload=\"getEvents()\">\r\n<div id=\"main\">\r\n<\/div>\r\n<\/body>\r\n<script>\r\n    const mainDiv = document.getElementById(\"main\");\r\n    let json_data;\r\n    function getEvents() {\r\n        fetch(\"https:\/\/vladi.dapho.net\/wp-json\/myproxy\/v1\/getEvents\", {\r\n            method: \"POST\",\r\n            headers: {\r\n                \"Content-Type\": \"application\/json\",\r\n            },\r\n            body: \"\",\r\n        })\r\n            .then((response) => {\r\n                if (!response.ok) throw new Error(\"Network response was not ok\");\r\n                return response.json();\r\n            })\r\n            .then((data) => {\r\n                json_data = data;\r\n                json_data.events.forEach(event => {\r\n                    const eventDiv = document.createElement('div');\r\n                    const eventName = document.createElement('p');\r\n                    eventName.innerHTML = `${event.name}`;\r\n                    const eventDate = document.createElement('p');\r\n                    eventDate.innerHTML = `${event.date}`;\r\n                    const eventId = document.createElement('p');\r\n                    eventId.innerHTML = `${event.id}`;\r\n                    eventDiv.style.justifyContent = 'flex'\r\n                    mainDiv.appendChild(eventDiv);\r\n                    eventDiv.appendChild(eventName);\r\n                    eventDiv.appendChild(eventDate);\r\n                    eventDiv.appendChild(eventId);\r\n                    eventDiv.addEventListener(\"click\",() => {\r\n                        let url = `https:\/\/vladi.dapho.net\/index.php\/elementor-18\/?event_name=${event.name}&event_id=${event.id}&event_time=${event.date[11]+event.date[12]}`;\r\n                        window.location.href = url;\r\n                    })\r\n                })\r\n            })\r\n            .catch((error) => {\r\n                mainDiv.textContent = \"Error: \" + error;\r\n            });\r\n    }\r\n\r\n<\/script>\r\n<\/html>\t\t\t\t<\/div>\n\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>Document<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-60","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/pages\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/comments?post=60"}],"version-history":[{"count":13,"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/pages\/60\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/pages\/60\/revisions\/106"}],"wp:attachment":[{"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/media?parent=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}