- 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:
@@ -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,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -384,11 +384,13 @@
|
||||
id="carousel-scroll-target"
|
||||
class="carousel-scroll-container"
|
||||
:style="heightcarousel ? `height: ${heightcarousel}` : ''"
|
||||
v-intersection="onIntersection"
|
||||
>
|
||||
<q-carousel
|
||||
swipeable
|
||||
animated
|
||||
:autoplay="autoplay"
|
||||
infinite
|
||||
v-model="slideGridOriz"
|
||||
navigation
|
||||
control-text-color="white"
|
||||
@@ -491,7 +493,7 @@
|
||||
<div
|
||||
:style="heightcarousel ? `height: ${heightcarousel}` : ''"
|
||||
:class="{ 'carousel-scroll-container': !!heightcarousel }"
|
||||
>
|
||||
>
|
||||
<div v-for="(row, indexrow) in serverData" :key="indexrow">
|
||||
<div
|
||||
v-if="
|
||||
|
||||
Reference in New Issue
Block a user