Initial commit: Custom Start Page application with authentication and DynamoDB storage
This commit is contained in:
16
static/js/main.js
Normal file
16
static/js/main.js
Normal file
@@ -0,0 +1,16 @@
|
||||
// Custom JavaScript for Custom Start Page
|
||||
|
||||
// Initialize on page load
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
console.log('Custom Start Page loaded');
|
||||
});
|
||||
|
||||
// Handle HTMX events
|
||||
document.body.addEventListener('htmx:afterSwap', function(evt) {
|
||||
console.log('HTMX swap completed:', evt.detail.target.id);
|
||||
});
|
||||
|
||||
document.body.addEventListener('htmx:responseError', function(evt) {
|
||||
console.error('HTMX error:', evt.detail);
|
||||
alert('An error occurred. Please try again.');
|
||||
});
|
||||
Reference in New Issue
Block a user