Initial production backup
This commit is contained in:
@@ -0,0 +1,149 @@
|
||||
<script>
|
||||
/* window.addEventListener('load', function () {
|
||||
var tituloservicioElement = document.querySelector('.col-derecha-titulo-servicio');
|
||||
tituloservicioElement.classList.add('show-line');
|
||||
});*/
|
||||
</script>
|
||||
|
||||
<script>
|
||||
window.addEventListener("load", function () {
|
||||
var navbar = document.querySelector('.navbar');
|
||||
// Función para actualizar el estilo de la barra de navegación
|
||||
function updateNavbarStyle() {
|
||||
if (window.innerWidth < 1200) {
|
||||
navbar.style.top = "0"; // Mover navbar a la parte superior cuando sea necesario
|
||||
navbar.classList.add('active');
|
||||
} else {
|
||||
if (window.scrollY > 30) {
|
||||
navbar.style.top = "0"; // Mover navbar a la parte superior cuando sea necesario
|
||||
navbar.classList.add('active');
|
||||
} else {
|
||||
navbar.style.top = "-80px"; // Ocultar navbar cuando sea necesario
|
||||
navbar.classList.remove('active');
|
||||
}
|
||||
}
|
||||
}
|
||||
// Llamar a la función una vez al cargar la página
|
||||
//updateNavbarStyle();
|
||||
// Agregar event listener para el evento de desplazamiento
|
||||
//window.addEventListener("scroll", updateNavbarStyle);
|
||||
// Agregar event listener para el evento de redimensionamiento de la ventana
|
||||
//window.addEventListener("resize", updateNavbarStyle);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
var preview = document.querySelector(".brillodiv");
|
||||
function activateAnimation() {
|
||||
preview.classList.add("animate");
|
||||
setTimeout(function () {
|
||||
preview.classList.remove("animate");
|
||||
}, 5000); // Remueve la clase después de 10 segundos
|
||||
}
|
||||
|
||||
// Activar la animación inicialmente
|
||||
//activateAnimation();
|
||||
|
||||
// Ciclo para repetir la animación cada 10 segundos
|
||||
// setInterval(activateAnimation, 10000);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
/*
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
var stickyBtn = document.getElementById('fijosticky');
|
||||
var subcontacto = document.getElementById('subcontacto');
|
||||
|
||||
function toggleStickyBtn() {
|
||||
if (window.scrollY >= subcontacto.offsetTop - window.innerHeight) {
|
||||
// Si el desplazamiento de la ventana alcanza el área de subcontacto, oculta el botón sticky
|
||||
stickyBtn.style.display = 'none';
|
||||
} else {
|
||||
// De lo contrario, muestra el botón sticky
|
||||
stickyBtn.style.display = 'block';
|
||||
}
|
||||
}
|
||||
|
||||
// Llama a la función toggleStickyBtn() cuando se carga la página y cuando se desplaza
|
||||
// toggleStickyBtn(); // Llamada inicial
|
||||
window.addEventListener('scroll', toggleStickyBtn);
|
||||
});*/
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
var stickyBtn = document.getElementById('fijosticky');
|
||||
var subcontacto = document.getElementById('subcontacto');
|
||||
|
||||
function toggleStickyBtn() {
|
||||
if (subcontacto && stickyBtn) {
|
||||
if (window.scrollY >= subcontacto.offsetTop - window.innerHeight) {
|
||||
stickyBtn.style.display = 'none';
|
||||
} else {
|
||||
stickyBtn.style.display = 'block';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener('scroll', toggleStickyBtn);
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
||||
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2D2TK20NNQ"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-2D2TK20NNQ');
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
const track = document.querySelector('.carousel-track');
|
||||
const items = document.querySelectorAll('.carousel-item');
|
||||
const nextBtn = document.getElementById('nextBtn');
|
||||
const prevBtn = document.getElementById('prevBtn');
|
||||
|
||||
let index = 0;
|
||||
|
||||
function getItemsPerView() {
|
||||
if (window.innerWidth < 768) return 2;
|
||||
if (window.innerWidth < 992) return 4;
|
||||
return 6;
|
||||
}
|
||||
|
||||
function updateCarousel() {
|
||||
const itemWidth = items[0].offsetWidth;
|
||||
track.style.transform = `translateX(-${index * itemWidth}px)`;
|
||||
}
|
||||
|
||||
nextBtn.addEventListener('click', () => {
|
||||
const maxIndex = items.length - getItemsPerView();
|
||||
index = (index + 1 > maxIndex) ? 0 : index + 1;
|
||||
updateCarousel();
|
||||
});
|
||||
|
||||
prevBtn.addEventListener('click', () => {
|
||||
const maxIndex = items.length - getItemsPerView();
|
||||
index = (index - 1 < 0) ? maxIndex : index - 1;
|
||||
updateCarousel();
|
||||
});
|
||||
|
||||
window.addEventListener('resize', updateCarousel);
|
||||
updateCarousel();
|
||||
});
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user