diff options
| author | Adam Soltys <[email protected]> | 2023-11-20 09:26:06 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-11-20 09:26:06 -0800 |
| commit | 3a5d21db11a2f128e5f51df9c123b7abc367c778 (patch) | |
| tree | 52df486c0c06bc7e55773b49e18aad4c4e08d8ff /src/components | |
| parent | ee8d15697a3b758b8f26d7074edf017b3db6d480 (diff) | |
| download | coinos-ui-3a5d21db11a2f128e5f51df9c123b7abc367c778.tar.gz coinos-ui-3a5d21db11a2f128e5f51df9c123b7abc367c778.zip | |
randomize avatars
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/LocationsMap.svelte | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte index 6f84408e..d5caba0d 100644 --- a/src/components/LocationsMap.svelte +++ b/src/components/LocationsMap.svelte @@ -3,6 +3,7 @@ import { browser } from '$app/environment'; import html2canvas from 'html2canvas'; import { Icon, Popup } from '$comp'; + import { shuffleArray } from "$lib/utils"; import 'maplibre-gl/dist/maplibre-gl.css'; @@ -129,13 +130,6 @@ shuffleArray(inview); } -function shuffleArray(array) { - for (let i = array.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [array[i], array[j]] = [array[j], array[i]]; - } -} - let popups = {}; let counter = 0; |
