{"id":64,"date":"2022-05-09T21:22:44","date_gmt":"2022-05-10T02:22:44","guid":{"rendered":"https:\/\/www.texomaemmaus.com\/?page_id=64"},"modified":"2025-10-21T18:35:36","modified_gmt":"2025-10-21T23:35:36","slug":"upcoming-events","status":"publish","type":"page","link":"https:\/\/www.texomaemmaus.com\/?page_id=64","title":{"rendered":"Upcoming Events"},"content":{"rendered":"\n<div id=\"calendar-container\"><\/div>\n\n<style>\n  .calendar-wrapper {\n    display: inline-block;\n    margin: 20px;\n    vertical-align: top;\n    border: 1px solid #ccc;\n    padding: 10px;\n    font-family: Arial, sans-serif;\n    width: 220px;\n  }\n  .calendar-header {\n    text-align: center;\n    font-weight: bold;\n    margin-bottom: 10px;\n  }\n  .calendar-grid {\n    display: grid;\n    grid-template-columns: repeat(7, 1fr);\n    gap: 2px;\n    font-size: 12px;\n  }\n  .calendar-day {\n    border: 1px solid #ddd;\n    min-height: 60px;\n    padding: 2px;\n    position: relative;\n  }\n  .event {\n    display: block;\n    background: #e0ffe0;\n    margin-top: 2px;\n    padding: 2px;\n    font-size: 11px;\n    border-radius: 3px;\n  }\n  .dow {\n    font-weight: bold;\n    text-align: center;\n    background: #f9f9f9;\n  }\n<\/style>\n\n<script>\n(function() {\n  const container = document.getElementById(\"calendar-container\");\n  const today = new Date();\n\n  \/\/ === EDIT YOUR EVENTS HERE ===\n  \/\/ Format: \"YYYY-M-D\": \"Event text\"\n  const events = {\n    \"2025-11-8\": \"30th Anniversary Celebration, Bingo @ Sherman VFW 11-2\",\n    \"2026-1-31\": \"Deadline to create Admin Council\"\n  };\n\n  function renderCalendar(monthOffset) {\n    const date = new Date(today.getFullYear(), today.getMonth() + monthOffset, 1);\n    const year = date.getFullYear();\n    const month = date.getMonth();\n    const monthName = date.toLocaleString(\"default\", { month: \"long\" });\n\n    const wrapper = document.createElement(\"div\");\n    wrapper.className = \"calendar-wrapper\";\n\n    const header = document.createElement(\"div\");\n    header.className = \"calendar-header\";\n    header.textContent = `${monthName} ${year}`;\n    wrapper.appendChild(header);\n\n    const grid = document.createElement(\"div\");\n    grid.className = \"calendar-grid\";\n\n    [\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"].forEach(d => {\n      const cell = document.createElement(\"div\");\n      cell.className = \"dow\";\n      cell.textContent = d;\n      grid.appendChild(cell);\n    });\n\n    const firstDay = new Date(year, month, 1).getDay();\n    for (let i=0; i<firstDay; i++) {\n      const blank = document.createElement(\"div\");\n      grid.appendChild(blank);\n    }\n\n    const daysInMonth = new Date(year, month+1, 0).getDate();\n    for (let d=1; d<=daysInMonth; d++) {\n      const cell = document.createElement(\"div\");\n      cell.className = \"calendar-day\";\n      cell.setAttribute(\"data-date\", `${year}-${month+1}-${d}`);\n      cell.innerHTML = `<div>${d}<\/div>`;\n\n      \/\/ Insert event if defined\n      const key = `${year}-${month+1}-${d}`;\n      if (events[key]) {\n        const evDiv = document.createElement(\"span\");\n        evDiv.className = \"event\";\n        evDiv.textContent = events[key];\n        cell.appendChild(evDiv);\n      }\n\n      grid.appendChild(cell);\n    }\n\n    wrapper.appendChild(grid);\n    return wrapper;\n  }\n\n  function refresh() {\n    container.innerHTML = \"\";\n    for (let i=0; i<4; i++) {\n      container.appendChild(renderCalendar(i));\n    }\n  }\n\n  refresh();\n})();\n<\/script>\n\n\n<ul class=\"wp-block-page-list\"><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.texomaemmaus.com\/?page_id=136\">Sponsorship<\/a><\/li><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.texomaemmaus.com\/?page_id=129\">TEC Pages<\/a><\/li><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.texomaemmaus.com\/?page_id=40\">What is the Walk to Emmaus?<\/a><\/li><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.texomaemmaus.com\/?page_id=64\">Upcoming Events<\/a><\/li><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.texomaemmaus.com\/?page_id=55\">Board Members<\/a><\/li><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.texomaemmaus.com\/?page_id=104\">Give to the TEC<\/a><\/li><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.texomaemmaus.com\/?page_id=50\">Contact Us<\/a><\/li><\/ul>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-64","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.texomaemmaus.com\/index.php?rest_route=\/wp\/v2\/pages\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.texomaemmaus.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.texomaemmaus.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.texomaemmaus.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.texomaemmaus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=64"}],"version-history":[{"count":38,"href":"https:\/\/www.texomaemmaus.com\/index.php?rest_route=\/wp\/v2\/pages\/64\/revisions"}],"predecessor-version":[{"id":278,"href":"https:\/\/www.texomaemmaus.com\/index.php?rest_route=\/wp\/v2\/pages\/64\/revisions\/278"}],"wp:attachment":[{"href":"https:\/\/www.texomaemmaus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}