mirror of
https://codeberg.org/vegvisir/website.git
synced 2025-09-15 01:13:42 +02:00
5 lines
No EOL
214 B
JavaScript
5 lines
No EOL
214 B
JavaScript
const target = document.querySelector("#target");
|
|
const nav = new vegvisir.Navigation("/some-page");
|
|
|
|
// Will replace the contents of an element with id #target with the contents of /some-page
|
|
nav.navigate(target); |