mirror of
https://github.com/jakejarvis/simple-anchor.git
synced 2025-04-25 17:35:21 -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)
|
||||
|
||||
@ -14,7 +18,7 @@ Otherwise, the [AnchorJS docs](https://www.bryanbraun.com/anchorjs/) still serve
|
||||
### Browser
|
||||
|
||||
```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>
|
||||
var anchor = new SimpleAnchor();
|
||||
anchors.add({
|
||||
|
Loading…
x
Reference in New Issue
Block a user