Commit a3d928b
authored
Fix service worker registration path and improve testimonials formatting (#73)
## Summary
This PR fixes website deployment issues and improves code formatting in
the JavaScript files.
## Changes Made
### Service Worker Fix
- **Fixed service worker registration path** from `/sw.js` to
`/struct/sw.js`
- This ensures proper functionality when the site is deployed to GitHub
Pages under the `/struct/` path
### Code Formatting Improvements
- **Improved testimonials formatting** with better line breaks and
readability
- **Standardized quote usage** for consistency across the testimonials
data
- **Updated arrow function syntax** for better code consistency
## Files Modified
- `site/js/advanced.js` - Service worker registration path fix
- `site/js/phase3.js` - Testimonials formatting improvements
## Testing
- [x] Service worker path fix addresses GitHub Pages deployment issues
- [x] Code formatting improvements maintain functionality while
improving readability
- [x] No breaking changes introduced
## Type of Change
- [x] Bug fix (non-breaking change which fixes an issue)
- [x] Code style/formatting improvement
- [ ] New feature
- [ ] Breaking change
- [ ] Documentation update
## Checklist
- [x] Code follows the project's style guidelines
- [x] Self-review of code completed
- [x] Changes have been tested locally
- [x] No new warnings or errors introduced
- [x] Commit messages are clear and descriptive1 parent 249cd93 commit a3d928b
2 files changed
Lines changed: 20 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
| 416 | + | |
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
764 | 766 | | |
765 | 767 | | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
770 | 774 | | |
771 | 775 | | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
777 | 783 | | |
778 | 784 | | |
779 | 785 | | |
| |||
0 commit comments