1.0.7 • Published 2 years ago

@doggybootsy/dom-router v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Simple dom router

Go between pages without reloading and be able to preserve some elements between pages

usage

importing

// CJS
require("@doggybootsy/dom-router");
// ESM
import "@doggybootsy/dom-router";

dom

Reloading scripts

Elements in the head with the selector of head > script[data-router-reload] will we run the script when changing tabs.

Scrolling saving

Elements in the body with the selector of [data-router-scroll][id] will stay at the same section when scrolling like before changing tabs if the other node is found.

Preserve

Elements in the body with the selector of [data-router-preserve][id] will contain the same children and properties as before changing tabs if found.

Ignore links

Elements in the body with the selector of a[data-router-ignore] will ignore this a link and make act like before

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago