(filename)
| 27 | |
| 28 | // Resolve the icon path |
| 29 | function getIconPath(filename) { |
| 30 | const currentPath = window.location.pathname |
| 31 | if (currentPath.includes('/tools/')) { |
| 32 | return `../../docs/icons/${filename}` |
| 33 | } |
| 34 | return `./docs/icons/${filename}` |
| 35 | } |
| 36 | |
| 37 | // Create the taskbar HTML (matching the original markup) |
| 38 | container.className = 'taskbar taskbar--light' |