GameHub/scripty/index.js
2024-06-06 09:10:12 +02:00

11 lines
374 B
JavaScript

<script>
// Function to handle download
function handleDownload() {
var downloadLink = document.getElementById('download-link');
var imageUrl = downloadLink.querySelector('img').src;
downloadLink.href = imageUrl;
}
// Add event listener to the download link
document.getElementById('download-link').addEventListener('click', handleDownload);
</script>