{"id":466,"date":"2025-11-11T23:26:00","date_gmt":"2025-11-11T23:26:00","guid":{"rendered":"https:\/\/remesas.moragamarketing.com\/inicio\/?page_id=466"},"modified":"2025-11-12T20:43:10","modified_gmt":"2025-11-12T20:43:10","slug":"test","status":"publish","type":"page","link":"https:\/\/remesas.moragamarketing.com\/inicio\/test\/","title":{"rendered":"test"},"content":{"rendered":"<div class=\"et_pb_section_0 et_pb_section et_section_regular et_flex_section\"><\/div>\n\n<div class=\"et_pb_section_1 et_pb_section et_section_regular et_flex_section\">\n<div class=\"et_pb_row_0 et_pb_row et_flex_row\">\n<div class=\"et_pb_column_0 et_pb_column et-last-child et_flex_column_24_24 et_flex_column et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_image_0 et_pb_image et_pb_module\"><span class=\"et_pb_image_wrap\"><img decoding=\"async\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMTA4MCIgaGVpZ2h0PSI1NDAiIHZpZXdCb3g9IjAgMCAxMDgwIDU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbD0iI0VCRUJFQiIgZD0iTTAgMGgxMDgwdjU0MEgweiIvPgogICAgICAgIDxwYXRoIGQ9Ik00NDUuNjQ5IDU0MGgtOTguOTk1TDE0NC42NDkgMzM3Ljk5NSAwIDQ4Mi42NDR2LTk4Ljk5NWwxMTYuMzY1LTExNi4zNjVjMTUuNjItMTUuNjIgNDAuOTQ3LTE1LjYyIDU2LjU2OCAwTDQ0NS42NSA1NDB6IiBmaWxsLW9wYWNpdHk9Ii4xIiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz4KICAgICAgICA8Y2lyY2xlIGZpbGwtb3BhY2l0eT0iLjA1IiBmaWxsPSIjMDAwIiBjeD0iMzMxIiBjeT0iMTQ4IiByPSI3MCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMDgwIDM3OXYxMTMuMTM3TDcyOC4xNjIgMTQwLjMgMzI4LjQ2MiA1NDBIMjE1LjMyNEw2OTkuODc4IDU1LjQ0NmMxNS42Mi0xNS42MiA0MC45NDgtMTUuNjIgNTYuNTY4IDBMMTA4MCAzNzl6IiBmaWxsLW9wYWNpdHk9Ii4yIiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz4KICAgIDwvZz4KPC9zdmc+Cg==\" width=\"\" height=\"\" srcset=\"\" sizes=\"\" class=\"wp-image-259\" \/><\/span><\/div>\n<\/div>\n<\/div>\n\n<div class=\"et_pb_row_1 et_pb_row et_flex_row\">\n<div class=\"et_pb_column_1 et_pb_column et_flex_column_12_24 et_flex_column_16_24_phone et_flex_column et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_text_0 et_pb_text et_pb_bg_layout_light et_pb_module\"><div class=\"et_pb_text_inner\"><p>Your content goes here. Edit or remove this text inline or in the module Content settings. You can also style every aspect of this content in the module Design settings and even apply custom CSS to this text in the module Advanced settings.<\/p>\n<\/div><\/div>\n<\/div>\n\n<div class=\"et_pb_column_2 et_pb_column et-last-child et_flex_column_12_24 et_flex_column_8_24_phone et_flex_column et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_button_module_wrapper et_pb_button_0_wrapper\"><a class=\"et_pb_button_0 et_pb_button et_pb_bg_layout_light copy-to-clipboard-btn\" href=\"http:\/\/data-clipboard-text=Texto%20que%20quiero%20copiar\">Click Here<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n<div class=\"et_pb_section_2 et_pb_section et_section_regular et_flex_section\">\n<div class=\"et_pb_row_2 et_pb_row et_flex_row\">\n<div class=\"et_pb_column_3 et_pb_column et-last-child et_flex_column_24_24 et_flex_column et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_code_0 et_pb_code et_pb_module\"><div class=\"et_pb_code_inner\"><button class=\"copy-total-btn et_pb_button\">\n    Copiar precio total\n<\/button>\n\n<style>\n.copy-total-btn.copied {\n    background-color: #4CAF50 !important;\n    color: white;\n    border: none;\n}\n<\/style>\n\n<script>\n\/\/ Esperar a que el DOM est\u00e9 completamente cargado\ndocument.addEventListener('DOMContentLoaded', function() {\n    \/\/ Buscar el bot\u00f3n\n    const copyButton = document.querySelector('.copy-total-btn');\n\n    \/\/ A\u00f1adir evento al bot\u00f3n\n    copyButton.addEventListener('click', function() {\n        \/\/ Buscar el elemento que contiene el precio total\n        const totalElement = document.querySelector('.woocommerce-order-overview__total .woocommerce-Price-amount');\n\n        if (totalElement) {\n            \/\/ Obtener el texto del precio total\n            const totalPrice = totalElement.textContent.trim();\n\n            \/\/ Copiar el precio total al portapapeles\n            navigator.clipboard.writeText(totalPrice).then(() => {\n                \/\/ Cambiar el estilo del bot\u00f3n para indicar que se copi\u00f3\n                copyButton.classList.add('copied');\n                copyButton.textContent = '\u00a1Copiado!';\n\n                \/\/ Restaurar el bot\u00f3n despu\u00e9s de 2 segundos\n                setTimeout(() => {\n                    copyButton.classList.remove('copied');\n                    copyButton.textContent = 'Copiar precio total';\n                }, 2000);\n            }).catch(err => {\n                console.error('Error al copiar el texto: ', err);\n                alert('No se pudo copiar el precio total.');\n            });\n        } else {\n            alert('No se encontr\u00f3 el precio total en la p\u00e1gina.');\n        }\n    });\n});\n<\/script>\n<\/div><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n<div class=\"et_pb_section_3 et_pb_section et_section_regular et_flex_section\">\n<div class=\"et_pb_row_3 et_pb_row et_flex_row\">\n<div class=\"et_pb_column_4 et_pb_column et-last-child et_flex_column_24_24 et_flex_column et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_code_1 et_pb_code et_pb_module\"><div class=\"et_pb_code_inner\"><button id=\"copyButton\" class=\"et_pb_button\">\n    Copiar al portapapeles\n<\/button>\n\n<script>\ndocument.getElementById('copyButton').addEventListener('click', async function() {\n    const textToCopy = \"Texto a copiar\"; \/\/ Reemplaza esto con tu texto\n\n    try {\n        await navigator.clipboard.writeText(textToCopy);\n        \/\/ Cambia el texto del bot\u00f3n para confirmar la acci\u00f3n\n        var button = document.getElementById('copyButton');\n        button.textContent = '\u00a1Copiado!';\n        setTimeout(function() {\n            button.textContent = 'Copiar al portapapeles';\n        }, 2000);\n    } catch (err) {\n        console.error('Error al copiar: ', err);\n        alert(\"No se pudo copiar el texto. Intenta de nuevo o usa otro navegador.\");\n    }\n});\n<\/script>\n<\/div><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n<div class=\"et_pb_section_4 et_pb_section et_section_regular et_flex_section\">\n<div class=\"et_pb_row_4 et_pb_row et_flex_row\">\n<div class=\"et_pb_column_5 et_pb_column et-last-child et_flex_column_24_24 et_flex_column et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_code_2 et_pb_code et_pb_module\"><div class=\"et_pb_code_inner\"><button id=\"copyButton\" class=\"et_pb_button\">\n    Copiar al portapapeles\n<\/button>\n\n<script>\ndocument.getElementById('copyButton').addEventListener('click', async function() {\n    const textToCopy = \"Texto a copiar\"; \/\/ Reemplaza esto con tu texto\n\n    try {\n        await navigator.clipboard.writeText(textToCopy);\n        \/\/ Cambia el texto del bot\u00f3n para confirmar la acci\u00f3n\n        var button = document.getElementById('copyButton');\n        button.textContent = '\u00a1Copiado!';\n        setTimeout(function() {\n            button.textContent = 'Copiar al portapapeles';\n        }, 2000);\n    } catch (err) {\n        console.error('Error al copiar: ', err);\n        alert(\"No se pudo copiar el texto. Intenta de nuevo o usa otro navegador.\");\n    }\n});\n<\/script>\n<\/div><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n<div class=\"et_pb_section_5 et_pb_section et_section_regular et_flex_section\">\n<div class=\"et_pb_row_5 et_pb_row et_flex_row\">\n<div class=\"et_pb_column_6 et_pb_column et-last-child et_flex_column_24_24 et_flex_column et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_button_module_wrapper et_pb_button_1_wrapper\"><a class=\"et_pb_button_1 et_pb_button et_pb_bg_layout_light\" href=\"\">Click Here<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-466","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/remesas.moragamarketing.com\/inicio\/wp-json\/wp\/v2\/pages\/466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/remesas.moragamarketing.com\/inicio\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/remesas.moragamarketing.com\/inicio\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/remesas.moragamarketing.com\/inicio\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/remesas.moragamarketing.com\/inicio\/wp-json\/wp\/v2\/comments?post=466"}],"version-history":[{"count":19,"href":"https:\/\/remesas.moragamarketing.com\/inicio\/wp-json\/wp\/v2\/pages\/466\/revisions"}],"predecessor-version":[{"id":593,"href":"https:\/\/remesas.moragamarketing.com\/inicio\/wp-json\/wp\/v2\/pages\/466\/revisions\/593"}],"wp:attachment":[{"href":"https:\/\/remesas.moragamarketing.com\/inicio\/wp-json\/wp\/v2\/media?parent=466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}