Skip to content

Commit

Permalink
Update jsdelivr links without @1 or @latest (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cioraz committed May 21, 2023
1 parent 766c128 commit 9527bb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ Examples on using table-sort-js with frontend frameworks such as [React.js](http
- <b>Option 2</b>: Load as script from a Content Delivery Network (CDN):

```javascript
<script src="https://cdn.jsdelivr.net/npm/table-sort-js@latest/table-sort.js"></script>
<script src="https://cdn.jsdelivr.net/npm/table-sort-js/table-sort.js"></script>
```

Or Minified (smaller size, but harder to debug!):

```javascript
<script src="https://cdn.jsdelivr.net/npm/table-sort-js@latest/table-sort.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/table-sort-js/table-sort.min.js"></script>
```

Refer to the documenation for examples on how to use table-sort-js with [HTML](https://leewannacott.github.io/table-sort-js/docs/html5.html)

- <b>Option 3:</b> Download [table-sort.js](https://cdn.jsdelivr.net/npm/table-sort-js@latest/table-sort.js) (Select save as.), or download a [minified version](https://cdn.jsdelivr.net/npm/table-sort-js@latest/table-sort.min.js) (~5kB)
- <b>Option 3:</b> Download [table-sort.js](https://cdn.jsdelivr.net/npm/table-sort-js/table-sort.js) (Select save as.), or download a [minified version](https://cdn.jsdelivr.net/npm/table-sort-js/table-sort.min.js) (~5kB)

Then rename and add the following script before your HTML table:

Expand Down
2 changes: 1 addition & 1 deletion public/docs/html5.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ <h2>table-sort-js</h2>
<div class="info">
Download:
<a
href="https://cdn.jsdelivr.net/npm/table-sort-js@latest/table-sort.js"
href="https://cdn.jsdelivr.net/npm/table-sort-js/table-sort.js"
target="_blank"
>table-sort.js
</a>
Expand Down

0 comments on commit 9527bb5

Please sign in to comment.