Skip to content

Commit f05ad85

Browse files
committed
Improve the demo by preventing the script from being loaded multiple times
1 parent df08a3b commit f05ad85

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

CHANGELOG.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,31 @@ All notable changes to this project will be documented in this file. This projec
44

55
## [Unreleased]
66

7-
### Added
8-
- **CSV Export**: Added a new feature to export validation results in a CSV format with detailed data.
9-
- **Dark/Light Theme Support**: Theme switching based on system preference, improving accessibility and user experience.
10-
117
### Changed
12-
- **Accessibility Improvements**: Enhanced support for keyboard navigation and ARIA implementation, improving accessibility for screen readers.
13-
- **UI Enhancements**: Reworked the control panel layout for better usability across devices.
14-
- **Validation Engine**: Improved the validation engine to handle more complex field types and edge cases.
8+
- **Demo update**: Improve the demo by preventing the script from being loaded multiple times.
9+
10+
## [1.3.4] – 2025-09-20
1511

1612
### Fixed
13+
- **Layout Fixes**: Added `color` and `background-color` for a more robust design and accessibility.
1714
- **UI Glitches**: Fixed minor UI glitches in the control panel layout on Safari and Edge.
1815
- **Cross-Browser Compatibility**: Resolved issues with validation results not displaying properly in certain browsers.
1916

2017
### Removed
2118
- **Legacy IE Support**: Removed support for Internet Explorer versions below IE11 due to lack of modern JavaScript support.
2219

20+
## [1.3.3] – 2025-05-23
21+
22+
### Added
23+
- **CSV Export**: Added a new feature to export validation results in a CSV format with detailed data.
24+
- **Dark/Light Theme Support**: Theme switching based on system preference, improving accessibility and user experience.
25+
26+
### Changed
27+
- **Documentation update**: Adding Changelog and Roadmap.
28+
- **Accessibility Improvements**: Enhanced support for keyboard navigation and ARIA implementation, improving accessibility for screen readers.
29+
- **UI Enhancements**: Reworked the control panel layout for better usability across devices.
30+
- **Validation Engine**: Improved the validation engine to handle more complex field types and edge cases.
31+
2332
## [1.3.2] – 2025-05-18
2433

2534
### Added

docs/index.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,15 @@ <h1><span aria-hidden="true">🔍</span> Autocomplete Attribute Audit - Demo</h1
170170
<script>
171171
const btn = document.getElementById('runAudit');
172172
btn.addEventListener('click', runAudit);
173+
173174
function runAudit() {
174-
const script = document.createElement("script");
175-
script.src = "https://cdn.jsdelivr.net/gh/MewenLeHo/detectAutocomplete@main/detectAutocomplete.min.js";
176-
document.body.appendChild(script);
175+
// Prevent adding the script multiple times
176+
if (!document.getElementById('ac-script')) {
177+
const script = document.createElement("script");
178+
script.id = "ac-script";
179+
script.src = "https://cdn.jsdelivr.net/gh/MewenLeHo/detectAutocomplete@main/detectAutocomplete.min.js";
180+
document.body.appendChild(script);
181+
}
177182
}
178183
</script>
179184

0 commit comments

Comments
 (0)