mirror of
https://github.com/jakejarvis/simple-anchor.git
synced 2025-04-28 08:40:29 -04:00
update badges & fix unpkg URL
This commit is contained in:
parent
c760d51a4a
commit
98e6abda03
10
README.md
10
README.md
@ -1,6 +1,10 @@
|
|||||||
# 🔗 Simple Anchor [](https://www.npmjs.com/package/simple-anchor)
|
# 🔗 Simple Anchor
|
||||||
|
|
||||||
A JavaScript utility for adding deep anchor links ([like these](https://ux.stackexchange.com/q/36304/33248)) to existing page content.
|
[](https://github.com/jakejarvis/simple-anchor/actions/workflows/ci.yml)
|
||||||
|
[](https://www.npmjs.com/package/simple-anchor)
|
||||||
|
[](LICENSE)
|
||||||
|
|
||||||
|
A JavaScript utility for adding deep anchor links ([like these](https://ux.stackexchange.com/q/36304/33248)) to existing page content. Zero dependencies and [only ~1kB gzipped!](https://bundlephobia.com/package/simple-anchor)
|
||||||
|
|
||||||
## Changes from [AnchorJS](https://github.com/bryanbraun/anchorjs)
|
## Changes from [AnchorJS](https://github.com/bryanbraun/anchorjs)
|
||||||
|
|
||||||
@ -14,7 +18,7 @@ Otherwise, the [AnchorJS docs](https://www.bryanbraun.com/anchorjs/) still serve
|
|||||||
### Browser
|
### Browser
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="https://unpkg.com/@jakejarvis/simple-anchor/dist/simple-anchor.min.js"></script>
|
<script src="https://unpkg.com/simple-anchor/dist/simple-anchor.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var anchor = new SimpleAnchor();
|
var anchor = new SimpleAnchor();
|
||||||
anchors.add({
|
anchors.add({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user