Spaces:
Running
Running
Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
@@ -534,7 +534,7 @@
|
|
534 |
shareTwitterButton.addEventListener('click', () => {
|
535 |
const text = encodeURIComponent("Look! I made it rain 🌧️ exploring the water cycle with this cool simulation! #WaterCycle #ScienceForKids #EdTech");
|
536 |
// Get current URL - replace with actual deployed URL if needed
|
537 |
-
const url = encodeURIComponent(window.location.href || "https://
|
538 |
window.open(`https://twitter.com/intent/tweet?text=${text}&url=${url}`, '_blank');
|
539 |
});
|
540 |
|
|
|
534 |
shareTwitterButton.addEventListener('click', () => {
|
535 |
const text = encodeURIComponent("Look! I made it rain 🌧️ exploring the water cycle with this cool simulation! #WaterCycle #ScienceForKids #EdTech");
|
536 |
// Get current URL - replace with actual deployed URL if needed
|
537 |
+
const url = encodeURIComponent(window.location.href || "https://huggingface.co/spaces/pp/WaterCycle"); // Replace placeholder
|
538 |
window.open(`https://twitter.com/intent/tweet?text=${text}&url=${url}`, '_blank');
|
539 |
});
|
540 |
|