gitoria

components

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc96709c8c96709c8media-player: skip = false and repeat = 'one' options (jukebox#19)mrec96709c8/components/main.hl

1.0 KB

  1. // components/main.hl — THE SHELL: the header (the site's name, a link home) and the slot every page renders into.
  2. // All CSS is in components/styles.hl.
  3. import { siteName } from '../project.hl'
  4. slot = null
  5. // OFFLINE (mission 046, as tracker.worldapi.org#10): the service worker opens `/` from its cache without a network; the
  6. // shell then says so. hl:web gives a page no connection state and no "mounted" hook, so a tick asks the browser:
  7. // `netProbe` runs an endless 1 s CSS animation (styles.hl), and each `animationiteration` reads navigator.onLine — a
  8. // write only when it changed.
  9. offline = false
  10. View {
  11. body {
  12. applicationHeader {
  13. a { class = "brand" href = "/" siteName }
  14. p { "Hybriel components, developed standalone" }
  15. }
  16. if (offline) { offlineNote { id = "offline" "You are offline. The demos need the network." } }
  17. netProbe { "aria-hidden" = "true" on animationiteration(e) { emit netTick(e) } }
  18. main { slot }
  19. }
  20. }
  21. on netTick(e) {
  22. down = window.navigator.onLine == false
  23. if (down != offline) { offline = down }
  24. }

Branches

Latest commits

  • c96709c8media-player: skip = false and repeat = 'one' options (jukebox#19)mre
  • bd4aa808Record VL24 deployment and live verificationmre
  • e5b98ecfRun virtual-list gate before deploymentmre
  • 2e9b4a8evirtual-list: into main, with centerId and scrollTop/onScroll (jukebox#20)mre
  • 69954249Align all plugin sources with Hybriel day38bmre
  • f740f666Re-vendor components to Hybriel set day38bmre
  • 8176eb14Record CS23b deployment and live verificationmre
  • 84e3ddaaRemove blank line before pagination Style closing bracemre
  • a92298ddRecord exact CSS and same-date proof after specificity reviewmre
  • c71a0abePreserve consumer theme specificity with nested tag rulesmre
  • 64a2bc27Document CS23b style formatting proof and review statusmre
  • a72b57cficons: nest Style rules in the language's formmre
  • 927616e2pagination: nest Style rules in the language's formmre
  • aab8ad29code-editor: nest Style rules in the language's formmre
  • ba30727afile-upload: nest Style rules in the language's formmre
  • 42fefa4emodal: nest Style rules in the language's formmre
  • 6fd953e3range-picker: nest Style rules in the language's formmre
  • f661951ddate-picker: nest Style rules in the language's formmre
  • 363577e6media-player: nest Style rules in the language's formmre
  • 0b3fd8c9comments: nest Style rules in the language's formmre