{"id":9008,"date":"2025-06-02T14:45:57","date_gmt":"2025-06-02T11:45:57","guid":{"rendered":"https:\/\/www.aydinaski.gov.tr\/?page_id=9008"},"modified":"2025-06-02T15:04:51","modified_gmt":"2025-06-02T12:04:51","slug":"bilgi-merkezi","status":"publish","type":"page","link":"https:\/\/www.aydinaski.gov.tr\/index.php\/bilgi-merkezi\/","title":{"rendered":"Bilgi Merkezi"},"content":{"rendered":"\n    <link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/6.4.0\/css\/all.min.css\">\n\n    \n    <div class=\"abone-buttons-container\">\n    <button class=\"abone-btn abone-update-btn\" onclick=\"window.location.href='index.php\/2025\/05\/15\/abone-bilgilerinizi-guncelleyiniz\/'\">\n        <i class=\"fas fa-user-edit\"><\/i>\n        Abone Bilgilerini G\u00fcncelle\n    <\/button>\n\n   <!-- <button class=\"abone-btn abone-cancel-btn\" onclick=\"document.getElementById('bildirimModal').style.display='flex'\">\n        <i class=\"fas fa-bell-slash\"><\/i>\n        SMS Bildirimini \u0130ptal Et\n    <\/button>  -->\n<\/div>\n\n    \n   <script>\n    const apiBase = \"https:\/\/muhtar.aydinaski.gov.tr\/api\/vatandas\";\n    let countdownInterval; \/\/ Sayac\u0131 tutacak de\u011fi\u015fken\n    const countdownDuration = 180; \/\/ Saniye cinsinden saya\u00e7 s\u00fcresi\n\n    function dogrulamaKoduGonder() {\n        const tel = document.getElementById('telefonNo').value.trim();\n        const sendCodeButton = document.getElementById('sendCodeButton');\n        const countdownTimerDisplay = document.getElementById('countdownTimer');\n\n        if (!tel) return alert('L\u00fctfen telefon numaran\u0131z\u0131 girin');\n\n        \/\/ Butonu devre d\u0131\u015f\u0131 b\u0131rak ve sayac\u0131 ba\u015flat\n        sendCodeButton.disabled = true;\n        countdownTimerDisplay.style.display = 'block';\n        let timeLeft = countdownDuration;\n        countdownTimerDisplay.textContent = `Kalan s\u00fcre:${timeLeft} saniye`; \/\/\n\n        countdownInterval = setInterval(() => {\n            timeLeft--;\n            countdownTimerDisplay.textContent = `Kalan s\u00fcre:${timeLeft} saniye`;\n            if (timeLeft <= 0) {\n                clearInterval(countdownInterval);\n                sendCodeButton.disabled = false;\n                countdownTimerDisplay.style.display = 'none';\n                countdownTimerDisplay.textContent = ''; \/\/ Metni temizle\n            }\n        }, 1000);\n\n        fetch(`${apiBase}\/sendCode`, {\n            method: 'POST',\n            headers: {\n                'Content-Type': 'application\/json'\n            },\n            body: JSON.stringify({ phone: tel })\n        })\n        .then(res => res.json())\n        .then(data => {\n            if (data.status === 'success') {\n                alert('Kod g\u00f6nderildi');\n                document.getElementById('dogrulamaKoduAlani').style.display = 'block';\n            } else {\n                alert(data.message || 'Hata olu\u015ftu');\n                \/\/ Hata durumunda sayac\u0131 durdur ve butonu tekrar aktif et\n                clearInterval(countdownInterval);\n                sendCodeButton.disabled = false;\n                countdownTimerDisplay.style.display = 'none';\n                countdownTimerDisplay.textContent = '';\n            }\n        })\n        .catch(err => {\n            console.error(err);\n            alert('Sunucu hatas\u0131!');\n            \/\/ Hata durumunda sayac\u0131 durdur ve butonu tekrar aktif et\n            clearInterval(countdownInterval);\n            sendCodeButton.disabled = false;\n            countdownTimerDisplay.style.display = 'none';\n            countdownTimerDisplay.textContent = '';\n        });\n    }\n\n    function dogrula() {\n        const tel = document.getElementById('telefonNo').value.trim();\n        const kod = document.getElementById('dogrulamaKodu').value.trim();\n        if (!kod) return alert('L\u00fctfen telefon numaran\u0131za g\u00f6nderilen do\u011frulama kodunu giriniz.');\n\n        fetch(`${apiBase}\/verifyCode`, {\n            method: 'POST',\n            headers: {\n                'Content-Type': 'application\/json'\n            },\n            body: JSON.stringify({ phone: tel, code: kod })\n        })\n        .then(res => res.json())\n        .then(data => {\n            if (data.status === 'success') {\n                alert('Do\u011frulama ba\u015far\u0131l\u0131. Art\u0131k sms g\u00f6nderilmeyecektir.');\n                document.getElementById('bildirimModal').style.display = 'none';\n                \/\/ Do\u011frulama ba\u015far\u0131l\u0131 oldu\u011funda da sayac\u0131 durdur\n                clearInterval(countdownInterval);\n                document.getElementById('sendCodeButton').disabled = false;\n                document.getElementById('countdownTimer').style.display = 'none';\n                document.getElementById('countdownTimer').textContent = '';\n                \/\/ Buraya abone kayd\u0131 iptal i\u015flemi tetiklenebilir\n            } else {\n                alert(data.message || 'Kod hatal\u0131!');\n            }\n        })\n        .catch(err => {\n            console.error(err);\n            alert('Sunucu hatas\u0131!');\n        });\n    }\n<\/script>\n\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/template-page-full-width.php","meta":{"ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-9008","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.aydinaski.gov.tr\/index.php\/wp-json\/wp\/v2\/pages\/9008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aydinaski.gov.tr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.aydinaski.gov.tr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.aydinaski.gov.tr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aydinaski.gov.tr\/index.php\/wp-json\/wp\/v2\/comments?post=9008"}],"version-history":[{"count":2,"href":"https:\/\/www.aydinaski.gov.tr\/index.php\/wp-json\/wp\/v2\/pages\/9008\/revisions"}],"predecessor-version":[{"id":9011,"href":"https:\/\/www.aydinaski.gov.tr\/index.php\/wp-json\/wp\/v2\/pages\/9008\/revisions\/9011"}],"wp:attachment":[{"href":"https:\/\/www.aydinaski.gov.tr\/index.php\/wp-json\/wp\/v2\/media?parent=9008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}