{"id":7612,"date":"2026-11-05T16:50:25","date_gmt":"2026-11-05T19:50:25","guid":{"rendered":"https:\/\/www.escuelathays.mendoza.edu.ar\/?page_id=7612"},"modified":"2026-11-05T18:56:16","modified_gmt":"2026-11-05T21:56:16","slug":"carrera-de-fracciones","status":"publish","type":"page","link":"https:\/\/www.escuelathays.mendoza.edu.ar\/?page_id=7612","title":{"rendered":"Carrera de Fracciones"},"content":{"rendered":"\n<div id=\"game-portal-wrapper\" style=\"background-color: #08090d; color: #ffffff; font-family: 'Inter', sans-serif; padding: 40px 20px; min-height: 85vh; display: flex; justify-content: center; align-items: center; border-radius: 20px; margin: 20px 0;\">\n    \n    <style>\n        #game-portal-wrapper * { \n            box-sizing: border-box; \n        }\n        .arcade-card-box {\n            background-color: #141624 !important;\n            border: 1px solid rgba(255, 255, 255, 0.1) !important;\n            border-radius: 20px !important;\n            box-shadow: 0 0 30px rgba(34, 211, 238, 0.15) !important;\n            max-width: 500px !important;\n            width: 100% !important;\n            padding: 30px !important;\n            text-align: center !important;\n            position: relative !important;\n        }\n        .arcade-back-link {\n            position: absolute !important;\n            top: 20px !important;\n            left: 20px !important;\n            color: #94a3b8 !important;\n            text-decoration: none !important;\n            font-size: 0.8rem !important;\n            font-weight: 700 !important;\n            transition: color 0.2s !important;\n            cursor: pointer !important;\n        }\n        .arcade-back-link:hover { \n            color: #22d3ee !important; \n        }\n        .arcade-h1 {\n            color: #22d3ee !important;\n            font-size: 2rem !important;\n            font-weight: 900 !important;\n            text-shadow: 0 0 10px rgba(34, 211, 238, 0.5) !important;\n            margin: 20px 0 5px 0 !important;\n            line-height: 1.2 !important;\n        }\n        .arcade-sub { \n            color: #94a3b8 !important; \n            font-size: 0.9rem !important; \n            margin-bottom: 25px !important; \n        }\n        .arcade-score-row {\n            display: flex !important;\n            justify-content: space-around !important;\n            background: rgba(255, 255, 255, 0.03) !important;\n            border: 1px solid rgba(255, 255, 255, 0.08) !important;\n            border-radius: 12px !important;\n            padding: 12px !important;\n            margin-bottom: 25px !important;\n        }\n        .arcade-score-val { \n            font-size: 1.5rem !important; \n            font-weight: 900 !important; \n        }\n        .arcade-challenge {\n            background: rgba(34, 211, 238, 0.05) !important;\n            border: 1px solid rgba(34, 211, 238, 0.2) !important;\n            border-radius: 16px !important;\n            padding: 25px 15px !important;\n            margin-bottom: 25px !important;\n        }\n        .arcade-q-text { \n            font-size: 1.3rem !important; \n            font-weight: 800 !important; \n            color: #ffffff !important; \n            margin-bottom: 15px !important;\n        }\n        .arcade-options-grid {\n            display: grid !important;\n            grid-template-columns: 1fr 1fr !important;\n            gap: 15px !important;\n            margin-bottom: 15px !important;\n        }\n        .arcade-opt-btn {\n            background: #08090d !important;\n            border: 2px solid #334155 !important;\n            border-radius: 12px !important;\n            padding: 15px !important;\n            color: #22d3ee !important;\n            font-size: 1.4rem !important;\n            font-weight: 900 !important;\n            cursor: pointer !important;\n            transition: all 0.2s !important;\n        }\n        .arcade-opt-btn:hover {\n            border-color: #ec4899 !important;\n            transform: translateY(-2px) !important;\n        }\n        .arcade-btn {\n            background: linear-gradient(135deg, #0f766e 0%, #22d3ee 100%) !important;\n            color: #ffffff !important;\n            font-weight: 800 !important;\n            font-size: 1rem !important;\n            padding: 14px 24px !important;\n            border-radius: 12px !important;\n            border: none !important;\n            cursor: pointer !important;\n            text-transform: uppercase !important;\n            letter-spacing: 1px !important;\n            box-shadow: 0 0 15px rgba(34, 211, 238, 0.4) !important;\n            width: 100% !important;\n            display: block !important;\n            transition: all 0.2s !important;\n        }\n        .arcade-btn:hover {\n            opacity: 0.9 !important;\n            transform: translateY(-2px) !important;\n        }\n        .arcade-fb { \n            min-height: 24px !important; \n            font-weight: 700 !important; \n            font-size: 0.95rem !important; \n            margin-bottom: 15px !important; \n        }\n        .fb-ok { color: #4ade80 !important; }\n        .fb-err { color: #f87171 !important; }\n    <\/style>\n\n    <div class=\"arcade-card-box\">\n        <a href=\"https:\/\/www.escuelathays.mendoza.edu.ar\/?page_id=7474\" class=\"arcade-back-link\">\u2190 Volver al Portal<\/a>\n        \n        <h1 class=\"arcade-h1\">\ud83c\udfce\ufe0f Carrera de Fracciones<\/h1>\n        <p class=\"arcade-sub\">\u00bfCu\u00e1l de las siguientes fracciones es MAYOR?<\/p>\n\n        <div class=\"arcade-score-row\">\n            <div>\n                <div style=\"font-size: 0.75rem; color: #94a3b8; font-weight: 700; text-transform: uppercase;\">Puntos<\/div>\n                <div class=\"arcade-score-val\" style=\"color: #facc15;\" id=\"points\">0<\/div>\n            <\/div>\n            <div>\n                <div style=\"font-size: 0.75rem; color: #94a3b8; font-weight: 700; text-transform: uppercase;\">Aciertos Seguidos<\/div>\n                <div class=\"arcade-score-val\" style=\"color: #ec4899;\" id=\"streak\">0<\/div>\n            <\/div>\n        <\/div>\n\n        <div class=\"arcade-challenge\">\n            <div class=\"arcade-q-text\" id=\"question-text\">Presiona Iniciar para acelerar<\/div>\n            <div class=\"arcade-options-grid\" id=\"options-container\" style=\"display: none;\">\n                <button class=\"arcade-opt-btn\" id=\"opt0\">1\/2<\/button>\n                <button class=\"arcade-opt-btn\" id=\"opt1\">3\/4<\/button>\n            <\/div>\n            <div class=\"arcade-fb\" id=\"feedback-text\"><\/div>\n        <\/div>\n\n        <button id=\"start-btn\" class=\"arcade-btn\">\ud83d\ude80 INICIAR CARRERA<\/button>\n\n        <div style=\"margin-top: 25px; font-size: 0.8rem; color: #64748b; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 15px;\">\n            Creado por las profesoras <strong>Pamela D\u00edaz<\/strong> y <strong>Yemina Lusi<\/strong>\n        <\/div>\n    <\/div>\n\n    <script>\n        document.addEventListener(\"DOMContentLoaded\", function() {\n            let score = 0;\n            let streak = 0;\n            let correctIdx = 0;\n            let val0 = 0;\n            let val1 = 0;\n\n            const startBtn = document.getElementById('start-btn');\n            const opt0Btn = document.getElementById('opt0');\n            const opt1Btn = document.getElementById('opt1');\n\n            if (startBtn) {\n                startBtn.addEventListener('click', startGame);\n            }\n\n            if (opt0Btn) {\n                opt0Btn.addEventListener('click', function() { selectOption(0); });\n            }\n\n            if (opt1Btn) {\n                opt1Btn.addEventListener('click', function() { selectOption(1); });\n            }\n\n            function startGame() {\n                score = 0;\n                streak = 0;\n                document.getElementById('points').innerText = score;\n                document.getElementById('streak').innerText = streak;\n                document.getElementById('start-btn').style.display = 'none';\n                document.getElementById('options-container').style.display = 'grid';\n                generateRound();\n            }\n\n            function generateRound() {\n                document.getElementById('feedback-text').innerText = '';\n                const n1 = Math.floor(Math.random() * 5) + 1;\n                const d1 = Math.floor(Math.random() * 6) + 2;\n                const n2 = Math.floor(Math.random() * 5) + 1;\n                const d2 = Math.floor(Math.random() * 6) + 2;\n                \n                val0 = n1 \/ d1; \n                val1 = n2 \/ d2;\n\n                if (val0 === val1) { \n                    generateRound(); \n                    return; \n                }\n\n                correctIdx = val0 > val1 ? 0 : 1;\n                document.getElementById('opt0').innerText = `${n1}\/${d1}`;\n                document.getElementById('opt1').innerText = `${n2}\/${d2}`;\n            }\n\n            function selectOption(idx) {\n                const fb = document.getElementById('feedback-text');\n                if (idx === correctIdx) {\n                    score += 20;\n                    streak++;\n                    document.getElementById('points').innerText = score;\n                    document.getElementById('streak').innerText = streak;\n                    fb.className = 'arcade-fb fb-ok'; \n                    fb.innerText = '\ud83c\udfc1 \u00a1Avanzas r\u00e1pido! Fracci\u00f3n correcta';\n                    setTimeout(generateRound, 800);\n                } else {\n                    streak = 0;\n                    document.getElementById('streak').innerText = streak;\n                    fb.className = 'arcade-fb fb-err'; \n                    fb.innerText = '\u274c Incorrecto. \u00a1Sigue intentando!';\n                }\n            }\n        });\n    <\/script>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u2190 Volver al Portal \ud83c\udfce\ufe0f Carrera de Fracciones \u00bfCu\u00e1l de las siguientes fracciones es MAYOR? Puntos 0 Aciertos Seguidos 0 [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"_eb_attr":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","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":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","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-7612","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.escuelathays.mendoza.edu.ar\/index.php?rest_route=\/wp\/v2\/pages\/7612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.escuelathays.mendoza.edu.ar\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.escuelathays.mendoza.edu.ar\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.escuelathays.mendoza.edu.ar\/index.php?rest_route=\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.escuelathays.mendoza.edu.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7612"}],"version-history":[{"count":4,"href":"https:\/\/www.escuelathays.mendoza.edu.ar\/index.php?rest_route=\/wp\/v2\/pages\/7612\/revisions"}],"predecessor-version":[{"id":7674,"href":"https:\/\/www.escuelathays.mendoza.edu.ar\/index.php?rest_route=\/wp\/v2\/pages\/7612\/revisions\/7674"}],"wp:attachment":[{"href":"https:\/\/www.escuelathays.mendoza.edu.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}