{"id":1517,"date":"2025-04-09T08:43:22","date_gmt":"2025-04-09T08:43:22","guid":{"rendered":"https:\/\/torneosmus.es\/?page_id=1517"},"modified":"2026-03-12T12:51:58","modified_gmt":"2026-03-12T12:51:58","slug":"resultados-del-torneo","status":"publish","type":"page","link":"https:\/\/torneosmus.es\/?page_id=1517","title":{"rendered":"RESULTADOS DEL TORNEO"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1517\" class=\"elementor elementor-1517\">\n\t\t\t\t\t\t<header class=\"elementor-section elementor-top-section elementor-element elementor-element-f67e616 elementor-section-content-top elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f67e616\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<header class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5865ad6\" data-id=\"5865ad6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-52607ff elementor-widget__width-inherit elementor-widget elementor-widget-thim-ekits-page-title\" data-id=\"52607ff\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"thim-ekits-page-title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"thim-ekit-page-title\">\n\t\t<h2 class=\"page-title\">Archivos<\/h2>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/header>\n\t\t\t\t\t<\/div>\n\t\t<\/header>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6960e9b7 elementor-section-content-middle elementor-section-stretched elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6960e9b7\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;stretch_section&quot;:&quot;section-stretched&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<section class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-59be5edf\" data-id=\"59be5edf\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-073088f elementor-widget__width-inherit elementor-widget elementor-widget-resultado\" data-id=\"073088f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"resultado.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n<div class=\"ts-resultados-wrapper\" style=\"max-width: 900px; margin: 0 auto;\">\n    <div style=\"background: #fff; padding: 20px; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 20px;\">\n        <h3 style=\"margin-top:0; color:#0073aa; border-bottom: 2px solid #f0f0f1; padding-bottom: 10px;\">\ud83d\udcca Clasificaci\u00f3n Oficial del Torneo<\/h3>\n        \n        <div class=\"ts-form-group\" style=\"margin-top: 15px;\">\n            <label for=\"ts-resultados-torneo-select\" style=\"font-weight:bold; display:block; margin-bottom: 8px;\">Selecciona el torneo que deseas consultar:<\/label>\n            <select id=\"ts-resultados-torneo-select\" class=\"ts-form-control\" style=\"width: 100%; padding: 10px; border-radius: 4px; border: 1px solid #ccc; font-size: 16px;\">\n                <option value=\"\">\u2014 Selecciona un torneo \u2014<\/option>\n                <option value=\"4639\">MINI AVANZA<\/option><option value=\"4602\">AVANZA 01<\/option><option value=\"4578\">MINI CUMPLEA\u00d1OS<\/option><option value=\"4566\">MINI CUMPLEA\u00d1OS<\/option><option value=\"4534\">CUMPLEA\u00d1OS 2026<\/option>            <\/select>\n        <\/div>\n    <\/div>\n\n    <div id=\"ts-resultados-torneo-contenido\">\n        <\/div>\n<\/div>\n\n<script>\ndocument.addEventListener('DOMContentLoaded', function() {\n    const selector = document.getElementById('ts-resultados-torneo-select');\n    const contenidoDiv = document.getElementById('ts-resultados-torneo-contenido');\n    \n    selector.addEventListener('change', async function() {\n        const torneoId = this.value;\n        if (!torneoId) {\n            contenidoDiv.innerHTML = '';\n            return;\n        }\n        \n        contenidoDiv.innerHTML = '<div style=\"text-align:center; padding: 20px; font-weight:bold; color:#0073aa;\">\u23f3 Calculando estad\u00edsticas...<\/div>';\n\n        const formData = new FormData();\n        formData.append('action', 'ts_cargar_resultados_torneo_ajax');\n        formData.append('torneo_id', torneoId);\n        formData.append('_wpnonce', tsResultadosTorneoAjax.nonce);\n\n        try {\n            const response = await fetch(tsResultadosTorneoAjax.ajax_url, { method: 'POST', body: formData });\n            if (!response.ok) throw new Error('Error de red.');\n            \n            const data = await response.json();\n            \n            if (data.success) {\n                contenidoDiv.innerHTML = data.data.html;\n            } else {\n                contenidoDiv.innerHTML = `<div style=\"padding:15px; background:#f8d7da; color:#721c24; border-radius:5px;\">\u274c ${data.data.message || 'Error.'}<\/div>`;\n            }\n\n        } catch (error) {\n            contenidoDiv.innerHTML = '<div style=\"padding:15px; background:#f8d7da; color:#721c24; border-radius:5px;\">\u274c Hubo un error al cargar la clasificaci\u00f3n.<\/div>';\n        }\n    });\n});\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Archivos \ud83d\udcca Clasificaci\u00f3n Oficial del Torneo Selecciona el torneo que deseas consultar: \u2014 Selecciona un torneo \u2014MINI AVANZAAVANZA 01MINI CUMPLEA\u00d1OSMINI CUMPLEA\u00d1OSCUMPLEA\u00d1OS 2026<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-1517","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/torneosmus.es\/index.php?rest_route=\/wp\/v2\/pages\/1517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/torneosmus.es\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/torneosmus.es\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/torneosmus.es\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/torneosmus.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1517"}],"version-history":[{"count":4,"href":"https:\/\/torneosmus.es\/index.php?rest_route=\/wp\/v2\/pages\/1517\/revisions"}],"predecessor-version":[{"id":4656,"href":"https:\/\/torneosmus.es\/index.php?rest_route=\/wp\/v2\/pages\/1517\/revisions\/4656"}],"wp:attachment":[{"href":"https:\/\/torneosmus.es\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}