{"id":150,"date":"2025-10-17T04:50:40","date_gmt":"2025-10-17T04:50:40","guid":{"rendered":"https:\/\/staging.eg-sa.com\/?page_id=150"},"modified":"2025-10-17T06:01:46","modified_gmt":"2025-10-17T06:01:46","slug":"general-assembly","status":"publish","type":"page","link":"https:\/\/staging.eg-sa.com\/?page_id=150","title":{"rendered":"General Assembly"},"content":{"rendered":"\n<div class=\"wp-block-uagb-container uagb-block-d0b263ee alignfull uagb-is-root-container\"><div class=\"uagb-container-inner-blocks-wrap\">\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<title>Yearly PDF Archive<\/title>\n\n<style>\n  body {\n    font-family: Arial, sans-serif;\n    background: #fff;\n    margin: 0;\n    padding: 40px;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    min-height: 100vh;\n  }\n\n  .archive-container {\n    width: 85%;\n    max-width: 900px;\n    border: 1px solid #ccc;\n    border-radius: 12px;\n    padding: 20px 60px 20px 20px;\n    position: relative;\n    box-shadow: 0 3px 10px rgba(0,0,0,0.1);\n  }\n\n  #yearTitle {\n    font-size: 26px;\n    font-weight: bold;\n    text-align: center;\n    color: #333;\n    margin-bottom: 15px;\n  }\n\n  #yearContent {\n    min-height: 600px;\n    border: 1px solid #ddd;\n    border-radius: 8px;\n    overflow: hidden;\n    transition: opacity 0.5s ease;\n  }\n\n  iframe {\n    width: 100%;\n    height: 600px;\n    border: none;\n  }\n\n  .nav-buttons {\n    position: absolute;\n    right: 20px;\n    top: 50%;\n    transform: translateY(-50%);\n    display: flex;\n    flex-direction: column;\n    gap: 10px;\n  }\n\n  .nav-buttons button {\n    background: #333;\n    color: #fff;\n    border: none;\n    border-radius: 50%;\n    width: 45px;\n    height: 45px;\n    font-size: 18px;\n    cursor: pointer;\n    transition: background 0.3s;\n  }\n\n  .nav-buttons button:hover {\n    background: #000;\n  }\n\n  .nav-buttons button:disabled {\n    background: #ccc;\n    cursor: not-allowed;\n  }\n\n  @media (max-width: 600px) {\n    .archive-container {\n      width: 95%;\n      padding: 20px 50px 20px 20px;\n    }\n    .nav-buttons {\n      right: 10px;\n    }\n  }\n<\/style>\n<\/head>\n<body>\n\n<div class=\"archive-container\">\n  <div id=\"yearTitle\">2004<\/div>\n\n  <div id=\"yearContent\">\n    <iframe id=\"pdfViewer\" src=\"\"><\/iframe>\n  <\/div>\n\n  <div class=\"nav-buttons\">\n    <button id=\"upBtn\">\u25b2<\/button>\n    <button id=\"downBtn\">\u25bc<\/button>\n  <\/div>\n<\/div>\n\n<script>\n  \/\/ Range of years\n  const startYear = 2004;\n  const endYear = 2025;\n  let currentYear = startYear;\n\n  \/\/ Map each year to its PDF file (adjust paths as needed)\n  const pdfFiles = {\n    2004: \"https:\/\/staging.eg-sa.com\/wp-content\/uploads\/2025\/10\/2004-3.pdf\",\n    2005: \"https:\/\/staging.eg-sa.com\/wp-content\/uploads\/2025\/10\/2005.pdf\",\n    2006: \"https:\/\/staging.eg-sa.com\/wp-content\/uploads\/2025\/10\/2006.pdf\",\n    2007: \"https:\/\/staging.eg-sa.com\/wp-content\/uploads\/2025\/10\/2007.pdf\",\n    2008: \"pdfs\/2008.pdf\",\n    2009: \"pdfs\/2009.pdf\",\n    2010: \"pdfs\/2010.pdf\",\n    2011: \"pdfs\/2011.pdf\",\n    2012: \"pdfs\/2012.pdf\",\n    2013: \"pdfs\/2013.pdf\",\n    2014: \"pdfs\/2014.pdf\",\n    2015: \"pdfs\/2015.pdf\",\n    2016: \"pdfs\/2016.pdf\",\n    2017: \"pdfs\/2017.pdf\",\n    2018: \"pdfs\/2018.pdf\",\n    2019: \"pdfs\/2019.pdf\",\n    2020: \"pdfs\/2020.pdf\",\n    2021: \"pdfs\/2021.pdf\",\n    2022: \"pdfs\/2022.pdf\",\n    2023: \"pdfs\/2023.pdf\",\n    2024: \"pdfs\/2024.pdf\",\n    2025: \"pdfs\/2025.pdf\"\n  };\n\n  const yearTitle = document.getElementById(\"yearTitle\");\n  const pdfViewer = document.getElementById(\"pdfViewer\");\n  const upBtn = document.getElementById(\"upBtn\");\n  const downBtn = document.getElementById(\"downBtn\");\n\n  function loadYear(year) {\n    yearTitle.textContent = year;\n    pdfViewer.style.opacity = 0;\n    setTimeout(() => {\n      pdfViewer.src = pdfFiles[year] || \"\";\n      pdfViewer.style.opacity = 1;\n    }, 200);\n\n    upBtn.disabled = (year === endYear);\n    downBtn.disabled = (year === startYear);\n  }\n\n  upBtn.addEventListener(\"click\", () => {\n    if (currentYear < endYear) {\n      currentYear++;\n      loadYear(currentYear);\n    }\n  });\n\n  downBtn.addEventListener(\"click\", () => {\n    if (currentYear > startYear) {\n      currentYear--;\n      loadYear(currentYear);\n    }\n  });\n\n  \/\/ Load first year\n  loadYear(currentYear);\n<\/script>\n\n<\/body>\n<\/html>\n\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yearly PDF Archive 2004 \u25b2 \u25bc<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","footnotes":""},"class_list":["post-150","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"admin","author_link":"https:\/\/staging.eg-sa.com\/?author=1"},"uagb_comment_info":0,"uagb_excerpt":"Yearly PDF Archive 2004 \u25b2 \u25bc","_links":{"self":[{"href":"https:\/\/staging.eg-sa.com\/index.php?rest_route=\/wp\/v2\/pages\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.eg-sa.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/staging.eg-sa.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/staging.eg-sa.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.eg-sa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=150"}],"version-history":[{"count":13,"href":"https:\/\/staging.eg-sa.com\/index.php?rest_route=\/wp\/v2\/pages\/150\/revisions"}],"predecessor-version":[{"id":170,"href":"https:\/\/staging.eg-sa.com\/index.php?rest_route=\/wp\/v2\/pages\/150\/revisions\/170"}],"wp:attachment":[{"href":"https:\/\/staging.eg-sa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}