{"id":1127,"date":"2025-11-18T11:45:55","date_gmt":"2025-11-18T11:45:55","guid":{"rendered":"https:\/\/islampoems.com\/?page_id=1127"},"modified":"2025-12-06T12:47:20","modified_gmt":"2025-12-06T12:47:20","slug":"game","status":"publish","type":"page","link":"https:\/\/islampoems.com\/index.php\/game\/","title":{"rendered":"Game"},"content":{"rendered":"\n<style>\n  html, body {\n    margin: 0;\n    padding: 0;\n    background: #000;\n    overflow: hidden;\n  }\n\n  \/* A container that ensures the iframe keeps the correct aspect ratio *\/\n  .game-wrapper {\n    position: fixed;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n\n    \/* Game design resolution *\/\n    width: 540px;\n    height: 960px;\n    \n    \/* This scales the game to fit any screen *\/\n    transform-origin: center center;\n  }\n\n  iframe {\n    width: 100%;\n    height: 100%;\n    border: none;\n  }\n<\/style>\n\n<div id=\"gameContainer\" class=\"game-wrapper\">\n  <iframe\n    src=\"https:\/\/islampoems.com\/wp-content\/uploads\/arbaeen-game\/index.html\"\n    allow=\"autoplay\"\n  ><\/iframe>\n<\/div>\n\n<script>\n  function scaleGame() {\n    const designW = 540;\n    const designH = 960;\n    const scale = Math.min(\n      window.innerWidth \/ designW,\n      window.innerHeight \/ designH\n    );\n\n    const container = document.getElementById(\"gameContainer\");\n    container.style.transform = `translate(-50%, -50%) scale(${scale})`;\n  }\n\n  scaleGame();\n  window.addEventListener(\"resize\", scaleGame);\n<\/script>\n\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_eb_attr":"","footnotes":""},"class_list":["post-1127","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/islampoems.com\/index.php\/wp-json\/wp\/v2\/pages\/1127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/islampoems.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/islampoems.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/islampoems.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/islampoems.com\/index.php\/wp-json\/wp\/v2\/comments?post=1127"}],"version-history":[{"count":18,"href":"https:\/\/islampoems.com\/index.php\/wp-json\/wp\/v2\/pages\/1127\/revisions"}],"predecessor-version":[{"id":1180,"href":"https:\/\/islampoems.com\/index.php\/wp-json\/wp\/v2\/pages\/1127\/revisions\/1180"}],"wp:attachment":[{"href":"https:\/\/islampoems.com\/index.php\/wp-json\/wp\/v2\/media?parent=1127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}