Repostería Tradicional
Asturiana

Productos Artesanales hechos con pasión

Tienda Sector Pueblos

Sector Pueblos, 6, 28760 Tres Cantos, Madrid

Tienda C/Letonia

C/Letonia 2, 28780 Tres Cantos, Madrid.

// Código para agregar la funcionalidad de compartir en iOS y Android const shareButtons = document.getElementsByClassName('ov-share-button'); for (const shareButton of shareButtons) { shareButton.addEventListener('click', function() { if (navigator.share) { navigator.share({ title: 'Título de la card', text: 'Descripción de la card', url: window.location.href }) .then(() => console.log('Contenido compartido con éxito.')) .catch((error) => console.error('Error al compartir:', error)); } else { const shareURL = window.location.href; const shareTitle = document.title; if (navigator.userAgent.match(/Android/i)) { window.location.href = `intent:${shareURL}#Intent;package=com.whatsapp;scheme=whatsapp;action=android.intent.action.SEND;S.android.intent.extra.TEXT=${shareTitle} - ${shareURL};end`; } else if (navigator.userAgent.match(/iPhone|iPad|iPod/i)) { window.location.href = `whatsapp://send?text=${shareTitle} - ${shareURL}`; } else { window.open(`mailto:?subject=${shareTitle}&body=${shareTitle} - ${shareURL}`); } } }); } // Funcionalidad menu mostrar/ocultar elementos jQuery(function($) { $(document).ready(function() { $(".info-home").show(); $(".menu-home").addClass("active"); $(".menu-home").click(function() { $(".info-home").show(); $(".info-menu").hide(); $(".info-ubicacion").hide(); $(".ov-vcard-tabs div").removeClass("active"); $(this).addClass("active"); }); $(".menu-menu").click(function() { $(".info-home").hide(); $(".info-menu").show(); $(".info-ubicacion").hide(); $(".ov-vcard-tabs div").removeClass("active"); $(this).addClass("active"); }); $(".menu-ubicacion").click(function() { $(".info-home").hide(); $(".info-menu").hide(); $(".info-ubicacion").show(); $(".ov-vcard-tabs div").removeClass("active"); $(this).addClass("active"); }); }); }); // Funcionalidad para ocultar footer al hacer scroll - solo iPhone document.addEventListener('DOMContentLoaded', function() { var contenido = document.querySelector('.contenido'); var footer = document.querySelector('.footer'); var prevScrollpos = contenido.scrollTop; var isScrolling = false; var isIPhone = /iPhone/i.test(navigator.userAgent); if (isIPhone) { contenido.addEventListener('scroll', function() { if (!isScrolling) { isScrolling = true; requestAnimationFrame(function() { var currentScrollPos = contenido.scrollTop; if (prevScrollpos > currentScrollPos && currentScrollPos <= 10) { footer.style.bottom = "0"; } else if (prevScrollpos 10) { footer.style.bottom = "-" + footer.offsetHeight + "px"; } prevScrollpos = currentScrollPos; isScrolling = false; }); } }); } }); // Bloquear vista horizontal en móvil function isMobile() { return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); } function checkOrientation() { if (isMobile() && window.innerHeight < window.innerWidth) { alert("Por favor, utiliza el dispositivo en orientación vertical."); } } window.addEventListener('resize', checkOrientation); window.addEventListener('load', checkOrientation); // Bloquear clic derecho document.addEventListener('contextmenu', function(event) { event.preventDefault(); });