{"id":927,"date":"2026-02-05T19:37:41","date_gmt":"2026-02-05T18:37:41","guid":{"rendered":"https:\/\/www.comprensivomedi.edu.it\/medimagazine\/?page_id=927"},"modified":"2026-02-08T12:07:24","modified_gmt":"2026-02-08T11:07:24","slug":"gioco","status":"publish","type":"page","link":"https:\/\/www.comprensivomedi.edu.it\/medimagazine\/gioco\/","title":{"rendered":"Gioco"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.comprensivomedi.edu.it\/medimagazine\/wp-content\/uploads\/2026\/01\/moltiplicazioni-a-bersaglio.html\">nome del gioco<\/a><\/p>\n\n\n\n<style>\n  .iframe-box { max-width: 100%; }\n\n  .iframe-toolbar {\n    display: flex;\n    gap: 8px;\n    align-items: center;\n    margin-bottom: 8px;\n  }\n  .iframe-toolbar button {\n    cursor: pointer;\n    padding: 10px 14px;\n    border-radius: 10px;\n    border: 1px solid #ddd;\n    background: #AAA;\n  }\n\n  .iframe-responsive {\n  width: 100%;\n  height: 900px;\n  aspect-ratio: auto;\n  border: 0;\n  }\n\n  \/* quando \u00e8 fullscreen, l'iframe deve occupare tutto *\/\n  .is-fullscreen iframe {\n    width: 100vw;\n    height: 100vh;\n    aspect-ratio: auto;\n  }\n<\/style>\n\n<div class=\"iframe-box\" id=\"iframeBox-1\">\n  <div class=\"iframe-toolbar\">\n    <button type=\"button\" class=\"fs-btn\" data-target=\"iframeBox-1\">Schermo intero<\/button>\n  <\/div>\n\n  <iframe\n    class=\"iframe-responsive\"\n    src=\"https:\/\/www.comprensivomedi.edu.it\/medimagazine\/wp-content\/uploads\/2026\/01\/moltiplicazioni-a-bersaglio.html\"\n    allowfullscreen\n    allow=\"fullscreen\"\n    loading=\"lazy\"\n  ><\/iframe>\n<\/div>\n\n<script>\n  (function () {\n    function requestFs(el) {\n      if (el.requestFullscreen) return el.requestFullscreen();\n      if (el.webkitRequestFullscreen) return el.webkitRequestFullscreen(); \/\/ Safari\n    }\n\n    document.addEventListener('click', function (e) {\n      const fsBtn = e.target.closest('.fs-btn');\n      if (!fsBtn) return;\n\n      const box = document.getElementById(fsBtn.dataset.target);\n      if (!box) return;\n\n      box.classList.add('is-fullscreen');\n      requestFs(box);\n    });\n\n    \/\/ quando l'utente esce dal fullscreen (ESC o controllo browser), ripristina stato\n    document.addEventListener('fullscreenchange', onFsChange);\n    document.addEventListener('webkitfullscreenchange', onFsChange);\n\n    function onFsChange() {\n      const fsEl = document.fullscreenElement || document.webkitFullscreenElement;\n\n      document.querySelectorAll('.iframe-box').forEach(function (box) {\n        const btn = box.querySelector('.fs-btn');\n\n        if (fsEl === box) {\n          if (btn) btn.style.display = 'none'; \/\/ nasconde il pulsante mentre \u00e8 fullscreen\n        } else {\n          box.classList.remove('is-fullscreen');\n          if (btn) btn.style.display = ''; \/\/ ri-mostra il pulsante quando esci\n        }\n      });\n    }\n  })();\n<\/script>\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>nome del gioco Schermo intero<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"class_list":["post-927","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.comprensivomedi.edu.it\/medimagazine\/wp-json\/wp\/v2\/pages\/927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.comprensivomedi.edu.it\/medimagazine\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.comprensivomedi.edu.it\/medimagazine\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.comprensivomedi.edu.it\/medimagazine\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.comprensivomedi.edu.it\/medimagazine\/wp-json\/wp\/v2\/comments?post=927"}],"version-history":[{"count":43,"href":"https:\/\/www.comprensivomedi.edu.it\/medimagazine\/wp-json\/wp\/v2\/pages\/927\/revisions"}],"predecessor-version":[{"id":986,"href":"https:\/\/www.comprensivomedi.edu.it\/medimagazine\/wp-json\/wp\/v2\/pages\/927\/revisions\/986"}],"wp:attachment":[{"href":"https:\/\/www.comprensivomedi.edu.it\/medimagazine\/wp-json\/wp\/v2\/media?parent=927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}