{"id":19,"date":"2026-03-28T06:21:24","date_gmt":"2026-03-28T06:21:24","guid":{"rendered":"http:\/\/192.168.1.70\/?p=19"},"modified":"2026-07-01T14:47:08","modified_gmt":"2026-07-01T14:47:08","slug":"modelo-evento-3d","status":"publish","type":"post","link":"https:\/\/eventosesteve.duckdns.org\/index.php\/2026\/03\/28\/modelo-evento-3d\/","title":{"rendered":"Modelo de prueba 3D"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<!-- 1. Cargamos el motor (Aseg\u00farate que el src termine en .js) -->\n<script type=\"module\" src=\"https:\/\/modelviewer.dev\/node_modules\/@google\/model-viewer\/dist\/model-viewer.min.js\"><\/script>\n\n<div style=\"background: #fffafa; padding: 25px; border-radius: 25px; text-align: center; border: 2px solid #ffc1e3; box-shadow: 0 10px 20px rgba(0,0,0,0.1); max-width: 500px; margin: auto;\">\n  \n  <!-- 1. El Visor del Pastel Original -->\n  <model-viewer src=\"\/wp-content\/uploads\/modelos3d\/Pastel.glb\" ar=\"\" camera-controls=\"\" autoplay=\"\" shadow-intensity=\"1\" oncontextmenu=\"return false;\" loading=\"eager\" style=\"width: 100%; height: 400px; background: radial-gradient(#f0f0f0, #ffebee); border-radius: 15px;\">\n  <\/model-viewer>\n\n  <h1 style=\"color: #d81b60; font-family: 'Arial', sans-serif;\">\ud83c\udf82 \u00a1Feliz Cumplea\u00f1os Princesa! \ud83c\udf88<\/h1>\n  <p style=\"color: #880e4f;\">Toca un bot\u00f3n para ponerle m\u00fasica a tu pastel:<\/p>\n\n  <!-- 2. Botones Musicales -->\n  <div style=\"display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 15px;\">\n    <button onclick=\"cambiarMusica('Manyanitas.mp3')\" style=\"background:#ff4081; color:white; border:none; padding:12px; border-radius:15px; cursor:pointer; font-weight:bold;\">\ud83c\udf81 Ma\u00f1anitas<\/button>\n    <button onclick=\"cambiarMusica('Parchis_cumpleanyos.mp3')\" style=\"background:#2196f3; color:white; border:none; padding:12px; border-radius:15px; cursor:pointer; font-weight:bold;\">\ud83c\udf89 Cumplea\u00f1os Feliz<\/button>\n    <button onclick=\"cambiarMusica('Munyequita_linda.mp3')\" style=\"background:#4caf50; color:white; border:none; padding:12px; border-radius:15px; cursor:pointer; font-weight:bold;\">\ud83c\udf88 Sorpresa<\/button>\n    <button onclick=\"silenciar()\" style=\"background:#607d8b; color:white; border:none; padding:12px; border-radius:15px; cursor:pointer; font-weight:bold;\">\ud83d\udd07 Detener<\/button>\n  <\/div>\n\n  <!-- 3. Reproductor Oculto -->\n  <audio id=\"miReproductor\" loop=\"\"><\/audio>\n<\/div>\n\n<script>\n  function cambiarMusica(archivo) {\n    const reproductor = document.getElementById('miReproductor');\n    \/\/ Ruta a tu carpeta de m\u00fasica\n    reproductor.src = '\/wp-content\/uploads\/mp3\/' + archivo;\n    reproductor.play();\n  }\n  \/\/ ESTA ES LA FUNCI\u00d3N NUEVA:\n  function silenciar() {\n    const reproductor = document.getElementById('miReproductor');\n    \n    \/\/ Si la m\u00fasica est\u00e1 sonando, la PAUSAMOS\n    if (!reproductor.paused) {\n      reproductor.pause();\n    } else {\n      \/\/ Si ya estaba pausada, le damos PLAY de nuevo\n      reproductor.play();\n    }\n  }\n<\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83c\udf82 \u00a1Feliz Cumplea\u00f1os Princesa! \ud83c\udf88 Toca un bot\u00f3n para ponerle m\u00fasica a tu pastel: \ud83c\udf81 Ma\u00f1anitas \ud83c\udf89 Cumplea\u00f1os Feliz \ud83c\udf88 Sorpresa \ud83d\udd07 Detener<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-sin-categoria"],"_links":{"self":[{"href":"https:\/\/eventosesteve.duckdns.org\/index.php\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eventosesteve.duckdns.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eventosesteve.duckdns.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eventosesteve.duckdns.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eventosesteve.duckdns.org\/index.php\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":74,"href":"https:\/\/eventosesteve.duckdns.org\/index.php\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/eventosesteve.duckdns.org\/index.php\/wp-json\/wp\/v2\/posts\/19\/revisions\/106"}],"wp:attachment":[{"href":"https:\/\/eventosesteve.duckdns.org\/index.php\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eventosesteve.duckdns.org\/index.php\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eventosesteve.duckdns.org\/index.php\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}