{"id":7,"date":"2026-01-19T11:04:54","date_gmt":"2026-01-19T11:04:54","guid":{"rendered":"http:\/\/myretasdiamond.com\/?page_id=7"},"modified":"2026-01-19T11:04:54","modified_gmt":"2026-01-19T11:04:54","slug":"7-2","status":"publish","type":"page","link":"http:\/\/myretasdiamond.com\/index.php\/7-2\/","title":{"rendered":".."},"content":{"rendered":"<p>&nbsp;<\/p>\n<pre>    <table class=\"ayar-table\">\r\n        <thead>\r\n            <tr>\r\n                <th>KUYUMCULAR ODASI<\/th>\r\n                <th>ALI\u015e<\/th>\r\n                <th>SATI\u015e<\/th>\r\n            <\/tr>\r\n            <tr>\r\n                <th>21.04.2026 08:44<\/th>\r\n                <th>ALI\u015e<\/th>\r\n                <th>SATI\u015e<\/th>\r\n             <\/tr>\r\n             <tr>\r\n                <th>ALTINKAYNAK<\/th>\r\n                <th>ALI\u015e<\/th>\r\n                <th>SATI\u015e<\/th>\r\n            <\/tr>\r\n             <tr>\r\n                <th>D\u00d6V\u0130Z<\/th>\r\n                <th>ALI\u015e<\/th>\r\n                <th>SATI\u015e<\/th>\r\n            <\/tr>\r\n        <\/thead>\r\n        <tbody>\r\n            <!-- Veriler buraya gelecek -->\r\n        <\/tbody>\r\n    <\/table>\r\n\r\n    <script>\r\n        async function fetchAyarData() {\r\n            const response = await fetch(`https:\/\/sheets.googleapis.com\/v4\/spreadsheets\/11ry1KmCUobfY2cmECjhRjrN4LRV_h3qw0rHDgE_9xqs\/values\/YONETIM!A2:O22?key=AIzaSyBCKfs_Vt3vyrPo54bOo68kGpe390Lom3A`);\r\n            const data = await response.json();\r\n            return data.values;\r\n        }\r\n\r\n        function displayAyarData(data) {\r\n            const tbody = document.querySelector('.ayar-table tbody');\r\n            tbody.innerHTML = ''; \r\n\r\n            data.forEach((row) => {\r\n                const tr = document.createElement('tr');\r\n                row.forEach((cell) => {\r\n                    const td = document.createElement('td');\r\n                    td.textContent = cell;\r\n                    tr.appendChild(td);\r\n                });\r\n                tbody.appendChild(tr);\r\n            });\r\n        }\r\n\r\n        \/\/ \u0130lk veri g\u00fcncellemesi\r\n        fetchAyarData()\r\n            .then(displayAyarData)\r\n            .catch(error => console.error('Veri al\u0131n\u0131rken hata olu\u015ftu:', error));\r\n\r\n        \/\/ Her 30 saniyede bir verileri g\u00fcncelle\r\n        setInterval(() => {\r\n            fetchAyarData()\r\n                .then(displayAyarData)\r\n                .catch(error => console.error('Veri al\u0131n\u0131rken hata olu\u015ftu:', error));\r\n        }, 30000); \/\/ 30 saniye = 30000 milisaniye\r\n    <\/script>\r\n    <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;<\/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-7","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/myretasdiamond.com\/index.php\/wp-json\/wp\/v2\/pages\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/myretasdiamond.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/myretasdiamond.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/myretasdiamond.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/myretasdiamond.com\/index.php\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":1,"href":"http:\/\/myretasdiamond.com\/index.php\/wp-json\/wp\/v2\/pages\/7\/revisions"}],"predecessor-version":[{"id":8,"href":"http:\/\/myretasdiamond.com\/index.php\/wp-json\/wp\/v2\/pages\/7\/revisions\/8"}],"wp:attachment":[{"href":"http:\/\/myretasdiamond.com\/index.php\/wp-json\/wp\/v2\/media?parent=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}