{"id":54,"date":"2026-04-17T00:21:43","date_gmt":"2026-04-17T00:21:43","guid":{"rendered":"https:\/\/givechristministries.com\/?page_id=54"},"modified":"2026-04-17T00:25:10","modified_gmt":"2026-04-17T00:25:10","slug":"bible-reading-hour","status":"publish","type":"page","link":"https:\/\/givechristministries.com\/?page_id=54","title":{"rendered":"Bible Reading Hour"},"content":{"rendered":"\n<style>\n.bible-room {\n    height: 100vh;\n    width: 100%;\n    background: url('https:\/\/images.unsplash.com\/photo-1529070538774-1843cb3265df?auto=format&fit=crop&w=1600&q=80') no-repeat center center\/cover;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    position: relative;\n}\n\n.bible-room::before {\n    content: \"\";\n    position: absolute;\n    top:0;\n    left:0;\n    width:100%;\n    height:100%;\n    background: rgba(0,0,0,0.72);\n}\n\n.content {\n    position: relative;\n    text-align: center;\n    color: white;\n    max-width: 800px;\n    padding: 20px;\n}\n\n.clock {\n    font-size: 70px;\n    font-weight: bold;\n    color: #93c5fd;\n    margin-bottom: 10px;\n}\n\n.timer {\n    font-size: 34px;\n    color: #a5b4fc;\n    margin: 10px 0;\n}\n\nh1 {\n    font-size: 26px;\n    margin: 10px 0;\n}\n\n.subtitle {\n    opacity: 0.8;\n    margin-bottom: 15px;\n}\n\n\/* BUTTONS *\/\nbutton {\n    padding: 10px 16px;\n    margin: 5px;\n    border: none;\n    border-radius: 8px;\n    cursor: pointer;\n    font-weight: bold;\n}\n\n.start { background: #22c55e; color: white; }\n.pause { background: #f59e0b; color: white; }\n.reset { background: #ef4444; color: white; }\n\n\/* VERSE *\/\n.verse {\n    margin-top: 20px;\n    padding: 20px;\n    background: rgba(255,255,255,0.06);\n    border-radius: 12px;\n    font-size: 18px;\n    line-height: 1.6;\n}\n\n\/* STREAK *\/\n.streak {\n    margin-top: 15px;\n    font-size: 16px;\n    color: #c7d2fe;\n}\n<\/style>\n\n<div class=\"bible-room\">\n\n<div class=\"content\">\n\n    <div class=\"clock\" id=\"clock\">00:00:00<\/div>\n\n    <h1>Bible Reading Hour<\/h1>\n    <div class=\"subtitle\">One hour of Scripture, prayer, and silence<\/div>\n\n    <div class=\"timer\" id=\"timer\">60:00<\/div>\n\n    <button class=\"start\" onclick=\"startTimer()\">Start<\/button>\n    <button class=\"pause\" onclick=\"pauseTimer()\">Pause<\/button>\n    <button class=\"reset\" onclick=\"resetTimer()\">Reset<\/button>\n\n    <div class=\"streak\" id=\"streak\">Weekly Streak: 0 days<\/div>\n\n    <div class=\"verse\">\n        \u201cBe still, and know that I am God.\u201d<br>\n        <strong>Psalm 46:10<\/strong>\n    <\/div>\n\n<\/div>\n\n<\/div>\n\n<audio id=\"bell\" src=\"https:\/\/actions.google.com\/sounds\/v1\/alarms\/soft_bell_ring.ogg\"><\/audio>\n\n<script>\n\n\/* ================= CLOCK ================= *\/\nfunction updateClock() {\n    document.getElementById(\"clock\").innerText =\n        new Date().toLocaleTimeString();\n}\nsetInterval(updateClock, 1000);\nupdateClock();\n\n\/* ================= TIMER ================= *\/\nlet totalSeconds = 60 * 60;\nlet interval = null;\nlet running = false;\n\nfunction updateTimerDisplay() {\n    let m = Math.floor(totalSeconds \/ 60);\n    let s = totalSeconds % 60;\n\n    m = m < 10 ? \"0\" + m : m;\n    s = s < 10 ? \"0\" + s : s;\n\n    document.getElementById(\"timer\").innerText = `${m}:${s}`;\n}\n\nfunction startTimer() {\n    if (running) return;\n    running = true;\n\n    interval = setInterval(() => {\n        if (totalSeconds > 0) {\n            totalSeconds--;\n            updateTimerDisplay();\n        } else {\n            pauseTimer();\n            document.getElementById(\"bell\").play();\n            markSessionComplete();\n            alert(\"Bible Reading Hour Complete. Amen.\");\n        }\n    }, 1000);\n}\n\nfunction pauseTimer() {\n    running = false;\n    clearInterval(interval);\n}\n\nfunction resetTimer() {\n    pauseTimer();\n    totalSeconds = 60 * 60;\n    updateTimerDisplay();\n}\n\nupdateTimerDisplay();\n\n\/* ================= WEEKLY STREAK ================= *\/\n\nfunction getWeekKey() {\n    const now = new Date();\n    const year = now.getFullYear();\n\n    \/\/ get week number\n    const start = new Date(year, 0, 1);\n    const diff = now - start;\n    const oneWeek = 1000 * 60 * 60 * 24 * 7;\n    return `${year}-W${Math.floor(diff \/ oneWeek)}`;\n}\n\nfunction loadStreak() {\n    const key = getWeekKey();\n    let data = JSON.parse(localStorage.getItem(\"bibleStreak\") || \"{}\");\n\n    if (!data[key]) {\n        data[key] = 0;\n        localStorage.setItem(\"bibleStreak\", JSON.stringify(data));\n    }\n\n    document.getElementById(\"streak\").innerText =\n        \"Weekly Streak: \" + data[key] + \" day(s)\";\n}\n\nfunction markSessionComplete() {\n    const key = getWeekKey();\n    let data = JSON.parse(localStorage.getItem(\"bibleStreak\") || \"{}\");\n\n    if (!data[key]) data[key] = 0;\n\n    \/\/ only count once per session\n    data[key] = Math.min(data[key] + 1, 7);\n\n    localStorage.setItem(\"bibleStreak\", JSON.stringify(data));\n\n    loadStreak();\n}\n\nloadStreak();\n\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>00:00:00 Bible Reading Hour One hour of Scripture, prayer, and silence 60:00 Start Pause Reset Weekly Streak: 0 days \u201cBe still, and know that I am God.\u201d Psalm 46:10<\/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-54","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/givechristministries.com\/index.php?rest_route=\/wp\/v2\/pages\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/givechristministries.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/givechristministries.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/givechristministries.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/givechristministries.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=54"}],"version-history":[{"count":2,"href":"https:\/\/givechristministries.com\/index.php?rest_route=\/wp\/v2\/pages\/54\/revisions"}],"predecessor-version":[{"id":56,"href":"https:\/\/givechristministries.com\/index.php?rest_route=\/wp\/v2\/pages\/54\/revisions\/56"}],"wp:attachment":[{"href":"https:\/\/givechristministries.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}