Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 1.5 KB

File metadata and controls

46 lines (39 loc) · 1.5 KB

⇐ addon-script list

This turns your bookmarks into a navigation when paired with an iframe.

preview1

How to load

Read the main README.md on how to properly load this.

  <link rel="preload" href="/assets/glance-addon-scripts/iframe-bookmarks-nav/style.css?v=1" as="style" onload="this.onload=null;this.rel='stylesheet'">
  <script defer src="/assets/glance-addon-scripts/iframe-bookmark-nav/script.js?v=1"></script>

Get started

Pair the css-class of the widget bookmarks and iframe: iframe-links-id-of-class and iframe-page-id-of-class, id-of-class should be unique per pair.

Basic setup

- name: Pages
  columns:
    - size: small
      widgets:
        - type: bookmarks
          css-class: iframe-links-id-of-class
          groups:
            - links:
                - title: Nginx Proxy Manager
                  url: https://nginx.home.local
                - title: IT-Tools
                  url: https://it-tools.home.local
    - size: full
      widgets:
        - type: iframe
          title: Nginx Proxy Manager
          title-url: https://nginx.home.local
          source: https://nginx.home.local
          css-class: iframe-page-id-of-class
          height: 800
          cache: 30s

This also assumes the first bookmark is the one opened by default.

Credits

caesarbishop - for the idea