Files
cv-site/templates/partials/widgets/contact-button.html
T
juanatsap 2d3d3de8cd feat: lazy load ninja-keys + HTML Invoker Commands API
- Lazy load ninja-keys only on CMD+K press (0 requests on initial load)
- Use esm.sh bundled module (3 requests vs ~81 previously)
- Add esm.sh to CSP whitelist
- Implement HTML Invoker Commands API for modals:
  - commandfor="modal-id" + command="show-modal" for opening
  - commandfor="modal-id" + command="close" for closing
  - Removes need for onclick handlers on modal buttons
- Refactor index.html into layout partials (head, body-scripts)
- Add comprehensive tests for both features
2025-12-02 08:29:54 +00:00

14 lines
463 B
HTML

{{define "contact-button"}}
<!-- Contact Button (Fixed Left) -->
<!-- Uses HTML Invoker Commands API: commandfor + command="show-modal" -->
<button
id="contact-button"
class="fixed-btn contact-btn no-print has-tooltip"
commandfor="contact-modal"
command="show-modal"
aria-label="{{.UI.Widgets.Contact.AriaLabel}}"
data-tooltip="{{.UI.Widgets.Contact.Tooltip}}">
<iconify-icon icon="mdi:email-outline"></iconify-icon>
</button>
{{end}}