GameHub/scripty/index.js

11 lines
374 B
JavaScript
Raw Normal View History

2024-05-16 09:50:23 +02:00
<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>