Update index.html
Browse files- index.html +6 -4
index.html
CHANGED
@@ -107,9 +107,12 @@
|
|
107 |
websiteLayer.style.display = 'none';
|
108 |
websiteFrame.src = '';
|
109 |
} else {
|
110 |
-
const websiteURL =
|
111 |
-
|
112 |
-
|
|
|
|
|
|
|
113 |
}
|
114 |
websiteVisible = !websiteVisible;
|
115 |
}
|
@@ -159,4 +162,3 @@
|
|
159 |
</script>
|
160 |
</body>
|
161 |
</html>
|
162 |
-
|
|
|
107 |
websiteLayer.style.display = 'none';
|
108 |
websiteFrame.src = '';
|
109 |
} else {
|
110 |
+
const websiteURL = slides[currentIndex]?.website || '';
|
111 |
+
if (websiteURL) {
|
112 |
+
window.open(websiteURL, '_blank');
|
113 |
+
} else {
|
114 |
+
console.warn('No website URL defined for this slide.');
|
115 |
+
}
|
116 |
}
|
117 |
websiteVisible = !websiteVisible;
|
118 |
}
|
|
|
162 |
</script>
|
163 |
</body>
|
164 |
</html>
|
|