1.1.0 • Published 2 years ago

anchors-away v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

anchors-away

Simple file to redirect an HTML page to another page including the anchors.

Since anchors are not sent to the server in regular web requests such that they can be detected and including in redirects, this HTML file includes some JavaScript which can do the job.

Usage

  1. Clone this repository. (This is also available via npm i anchors-away, but as you'll wish to customize the URL, this approach is not very useful and only meant at the moment for discoverability.)
  2. In index.html, alter the <a href> value to point to your desired webpage.
  3. Optionally customize the rest of the page.

To-dos

  1. Refactor as a module for importing into one's own HTML.
1.1.0

2 years ago

1.0.0

6 years ago