Remove unused code

This commit is contained in:
2022-08-14 22:59:28 +02:00
parent fd6fc20b13
commit 57f1dca240
5 changed files with 7 additions and 7 deletions

View File

@@ -11,7 +11,6 @@
export let slides: any
let arrowEl: HTMLElement
let carouselEl: HTMLElement
let carousel: EmblaCarouselType
let currentSlide = 0
@@ -117,7 +116,7 @@
{/each}
</ul>
<span class="carousel__arrow" bind:this={arrowEl}
<span class="carousel__arrow"
style:--x="{$arrowPosition.x}px"
style:--y="{$arrowPosition.y}px"
class:is-flipped={arrowDirection === 'prev' && !isFirstSlide || isLastSlide}

View File

@@ -137,7 +137,7 @@
{#if popinOpen}
<div class="globe__popin" transition:fly={{ y: 16, duration: 500, easing: quartOut }}>
<ul>
{#each clusterLocations as { name, slug, country }, index}
{#each clusterLocations as { name, slug, country }}
<li>
<a href="/{country.slug}/{slug}" sveltekit:noscroll tabindex="0">
<Image

View File

@@ -185,7 +185,8 @@ export class Globe {
this.hoveringMarker = false
}, false)
console.log(marker)
// console.log(marker)
return marker
})
}

View File

@@ -10,7 +10,7 @@
import relativeTime from 'dayjs/plugin/relativeTime.js'
import { quartOut } from '$animations/easings'
import { fetchAPI, getAssetUrlKey } from '$utils/api'
import { DELAY, DURATION } from '$utils/contants'
import { DELAY } from '$utils/contants'
import { photoFields } from '.'
// Components
import Metas from '$components/Metas.svelte'

View File

@@ -99,14 +99,14 @@
** States
*/
// Has name
&.is-dot-only {
&:global(.is-dot-only) {
dt, dd {
opacity: 0;
}
}
// Has country
&.has-country {
&:global(.has-country) {
dd {
opacity: 1;
}