update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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);
|
Reference in New Issue
Block a user