This commit is contained in:
2024-06-06 09:10:12 +02:00
parent 5f58589713
commit 90d578cc36
5 changed files with 21 additions and 21 deletions

View File

@@ -1,11 +1,8 @@
<script>
// Function to handle download
function handleDownload() {
// Get the download link element
var downloadLink = document.getElementById('download-link');
// Get the image source URL
var imageUrl = downloadLink.querySelector('img').src;
// Set the download link href to the image source URL
downloadLink.href = imageUrl;
}

View File

@@ -1,12 +1,9 @@
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('login-form').addEventListener('submit', function(event) {
event.preventDefault();
// Get values from the form
var username = document.getElementById('login-username').value;
var password = document.getElementById('login-password').value;
// Here you would perform login authentication, for demonstration purposes let's just log the values
console.log('Username:', username);
console.log('Password:', password);
// Redirect to dashboard or perform further actions
});
}, false);