refactor: improve donation tabs code organization
- Extract logic into dedicated functions for better readability - Create handleDonationIntervalChange() as main click handler - Separate concerns: updateLinkInterval, updateAmountDisplay, switchActiveTab - Remove unnecessary comments in favor of clear function names - Update footer to link script.js instead of donation-tabs.js 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
cea38b4219
commit
b44f353208
5 changed files with 65 additions and 60 deletions
|
|
@ -11,6 +11,8 @@
|
|||
<?php endif ?>
|
||||
<?= $site->title() ?>
|
||||
</title>
|
||||
|
||||
<script src="<?= url('assets/js/script.js') ?>"></script>
|
||||
</head>
|
||||
<body data-template="<?= $page->template() ?>">
|
||||
<?php snippet('nav') ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue