forked from fdnd-task/your-tribe-squad-page
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjavarenzo.js
87 lines (81 loc) · 4.17 KB
/
javarenzo.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
let currentIndex = 0;
const images = document.querySelectorAll(".carousel-images img");
function updateSlide() {
const carouselImages = document.getElementById('carousel-images');
const translateXValue = -currentIndex * 600; // 600px is the width of each image
carouselImages.style.transform = `translateX(${translateXValue}px)`;
}
function nextSlide() {
currentIndex = (currentIndex + 1) % images.length;
updateSlide();
}
function prevSlide() {
currentIndex = (currentIndex - 1 + images.length) % images.length;
updateSlide();
}
function openLink(imgElement) {
const currentSrc = imgElement.src;
// Bepaal welke link moet worden geopend op basis van de afbeelding
let url;
if (currentSrc.includes("Squad1H-Renzo.JPG")) {
url = "https://renzowille.github.io/your-tribe-profile-card/index.html";
} else if (currentSrc.includes("Squad1H-Riley.JPG")) {
url = "https://ryryesther.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Miel.JPG")) {
url = "https://miel775.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Anouar.JPG")) {
url = "https://anouarab2.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Anouk.JPG")) {
url = "https://anoukderooij24.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Daan.JPG")) {
url = "https://dvdalfsen.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Finn.JPG")) {
url = "";
} else if (currentSrc.includes("Squad1H-Kai.JPG")) {
url = "https://kaiven7.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Kate.JPG")) {
url = "https://kitkatisvibing.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Kerem.JPG")) {
url = "https://keremttc.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Aria.JPG")) {
url = "https://poormoa00.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Arman.JPG")) {
url = "https://armanvd.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Kyan.JPG")) {
url = "https://kyantg.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Luuk-2.JPG")) {
url = "https://lutrian1.github.io/your-tribe-profile-card---Luuk/";
} else if (currentSrc.includes("Squad1H-Marije.JPG")) {
url = "";
} else if (currentSrc.includes("Squad1H-Mkiyas.JPG")) {
url = "https://mikiyas-hs.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Nawal.JPG")) {
url = "https://nawallox.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Nayome.JPG")) {
url = "https://nayomekaia.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Rapha.JPG")) {
url = "";
} else if (currentSrc.includes("Squad1H-Reyhan.JPG")) {
url = "https://reyrey-https.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Rick.JPG")) {
url = "https://rickfdnd.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Safoe.JPG")) {
url = "https://safae-e.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Sascha.JPG")) {
url = "https://saschavanvliet.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Sebastiaan-2.JPG")) {
url = "https://sebastiaan-hva.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Senne.JPG")) {
url = "https://senneb31.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Sidney.JPG")) {
url = "https://sidopjescherm.github.io/your-tribe-profile-card/";
} else if (currentSrc.includes("Squad1H-Sjors.JPG")) {
url = "";
} else if (currentSrc.includes("Squad1H-Stella.JPG")) {
url = "https://misspastelwitch.github.io/your-tribe-profile-card/";
}
// Open de link in een nieuw tabblad
if (url) {
window.open(url, "_blank");
}
}