- fix: Invio RIS (non si vedevano i circuiti !)

- se si usava l'username telegram per registrarsi non faceva il controllo delle minuscole.
- bottone "Invia RIS" era scomparso
This commit is contained in:
Surya Paolo
2024-11-03 19:15:44 +01:00
parent a46b988440
commit 90ed545070
125 changed files with 4189 additions and 3592402 deletions

View File

@@ -368,7 +368,8 @@ export default defineComponent({
const showMapAtLeast1 = ref(false)
const mapInitialized = ref(false)
const slideGridOriz = ref(0)
const autoplay = ref(true)
const autoplay = ref(false)
const autoplayInterval = ref(<any>null)
const scrollTargetId = 'carousel-scroll-target'
@@ -2549,6 +2550,7 @@ export default defineComponent({
carouselTabRef.value?.removeEventListener('scroll', checkScrollPosition)
stopAutoplay()
// window.removeEventListener('popstate', onBackButton);
});
@@ -2676,6 +2678,35 @@ export default defineComponent({
}
}
const startAutoplay = () => {
if (autoplay.value && !autoplayInterval.value) {
autoplayInterval.value = setInterval(() => {
autoplay.value = true
}, 3000) // Intervallo di 3 secondi
} else {
autoplay.value = true
}
}
const stopAutoplay = () => {
if (autoplayInterval.value) {
clearInterval(autoplayInterval.value)
autoplayInterval.value = null
}
autoplay.value = false
}
const onIntersection = (entry: any) => {
if (entry.isIntersecting) {
// console.log('PARTITO INTERSECTION!')
startAutoplay()
} else {
// console.log(' USCITO DALL\'INTERSEZIONE! !!!')
stopAutoplay()
}
}
created()
return {
@@ -2809,6 +2840,7 @@ export default defineComponent({
scrollTargetId,
handleTransition,
loadMore,
onIntersection,
}
}
})