{"id":1148,"date":"2026-03-24T22:31:52","date_gmt":"2026-03-25T04:31:52","guid":{"rendered":"https:\/\/s-cool.net\/?page_id=1148"},"modified":"2026-03-24T22:31:52","modified_gmt":"2026-03-25T04:31:52","slug":"simulator","status":"publish","type":"page","link":"https:\/\/s-cool.net\/es\/simulator\/","title":{"rendered":"Simulator"},"content":{"rendered":"<style>\n            .sc-sim-page-wrap { \n                text-align: center; \n                padding: 100px 20px; \n                background-color: #0f172a; \n                border-radius: 20px; \n                color: #ffffff; \n                font-family: 'Segoe UI', system-ui, sans-serif;\n            }\n            \n            .sc-btn-launch {\n                background-color: #ea580c; \n                color: #ffffff; \n                padding: 20px 40px; \n                border-radius: 50px;\n                font-size: 1.5rem; \n                font-weight: 900; \n                border: none; \n                cursor: pointer;\n                transition: all 0.3s ease; \n                box-shadow: 0 10px 20px rgba(234, 88, 12, 0.4);\n            }\n            \n            .sc-btn-launch:hover { \n                transform: scale(1.05); \n                background-color: #f97316; \n            }\n\n            \/* THE MOVIE WINDOW Overlay *\/\n            #scool-sim-container {\n                display: none; \n                position: fixed; \n                top: 0; \n                left: 0;\n                width: 100vw; \n                height: 100vh; \n                background-color: #000000;\n                z-index: 999999; \n                overflow: hidden;\n                touch-action: none;\n            }\n\n            #scool-sim-iframe { \n                width: 100%; \n                height: 100%; \n                border: none; \n                display: block;\n            }\n\n            \/* Overlaid Close Button *\/\n            .sc-sim-close-btn {\n                position: absolute;\n                top: 40px; \/* Shifted down to clear the Godot UI *\/\n                right: 20px;\n                z-index: 1000000;\n                background-color: rgba(0, 0, 0, 0.6);\n                color: #ffffff;\n                border: 2px solid rgba(255, 255, 255, 0.3);\n                width: 45px;\n                height: 45px;\n                border-radius: 50%;\n                font-size: 24px;\n                font-weight: bold;\n                cursor: pointer;\n                display: flex;\n                align-items: center;\n                justify-content: center;\n                transition: all 0.2s ease;\n                user-select: none;\n            }\n            \n            .sc-sim-close-btn:hover {\n                background-color: #ea580c;\n                border-color: #ea580c;\n                transform: scale(1.1);\n            }\n        <\/style>\n\n        <div class=\"sc-sim-page-wrap\">\n            <h2>Simulador de Rob\u00f3tica Twin Engine<\/h2>\n            <p>Haz clic abajo para iniciar el entorno de programaci\u00f3n en pantalla completa.<\/p>\n            <br>\n            <button class=\"sc-btn-launch\" onclick=\"openSimulator()\">INICIAR SIMULADOR<\/button>\n        <\/div>\n\n        <div id=\"scool-sim-container\">\n            <div class=\"sc-sim-close-btn\" onclick=\"closeSimulator()\" title=\"Close Simulator\">\u2715<\/div>\n            <iframe id=\"scool-sim-iframe\" src=\"about:blank\" allow=\"autoplay; fullscreen; keyboard\"><\/iframe>\n        <\/div>\n\n        <script>\n        const simContainer = document.getElementById('scool-sim-container');\n        const simIframe = document.getElementById('scool-sim-iframe');\n        const targetSimUrl = \"https:\/\/s-cool.net\/simulator_v05\/index.html\";\n\n        function openSimulator() {\n            \/\/ Rip the container out of the WordPress theme hierarchy and append it to the absolute body.\n            \/\/ This guarantees 100vw and 100vh work flawlessly.\n            document.body.appendChild(simContainer);\n            \n            \/\/ Show container & load URL\n            simContainer.style.display = 'block';\n            simIframe.src = targetSimUrl;\n            \n            \/\/ Add class to body so the menu injector knows to hide the header\n            document.body.classList.add('sim-active');\n            \n            \/\/ Push history state to intercept the hardware back button\n            window.history.pushState({view: 'simulator'}, 'Simulator View');\n        }\n\n        function closeSimulator() {\n            \/\/ Hide container & unload URL to stop audio\/processing\n            simContainer.style.display = 'none';\n            simIframe.src = 'about:blank';\n            \n            \/\/ Remove class to restore the header\n            document.body.classList.remove('sim-active');\n        }\n\n        \/\/ Intercept ESC key\n        document.addEventListener('keydown', function(event) {\n            if (event.key === 'Escape' && simContainer.style.display === 'block') {\n                window.history.back(); \/\/ Triggers the popstate below\n            }\n        });\n\n        \/\/ Intercept Mobile\/Hardware Back Button\n        window.onpopstate = function(event) {\n            closeSimulator();\n        };\n        <\/script>","protected":false},"excerpt":{"rendered":"","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":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-1148","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,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"Headmaster","author_link":"https:\/\/s-cool.net\/es\/author\/headmaster\/"},"uagb_comment_info":0,"uagb_excerpt":null,"_links":{"self":[{"href":"https:\/\/s-cool.net\/es\/wp-json\/wp\/v2\/pages\/1148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/s-cool.net\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/s-cool.net\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/s-cool.net\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/s-cool.net\/es\/wp-json\/wp\/v2\/comments?post=1148"}],"version-history":[{"count":1,"href":"https:\/\/s-cool.net\/es\/wp-json\/wp\/v2\/pages\/1148\/revisions"}],"predecessor-version":[{"id":1149,"href":"https:\/\/s-cool.net\/es\/wp-json\/wp\/v2\/pages\/1148\/revisions\/1149"}],"wp:attachment":[{"href":"https:\/\/s-cool.net\/es\/wp-json\/wp\/v2\/media?parent=1148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}