doc: add copy-paste local install instructions

This commit is contained in:
AJ ONeal 2022-06-07 13:17:58 -06:00 committed by GitHub
parent 100f70f047
commit ceda8242d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -7,6 +7,22 @@ Production Build: 103B (min + gz)
## Install
### via GitHub
```bash
my_ver="v2.1.2"
mkdir ./vendor/
curl -fsSL "https://raw.githubusercontent.com/coolaj86/ajquery.js/${my_ver}/ajquery.js" \
-o ./vendor/ajquery.js
```
```html
<script src="/vendor/ajquery.js"></script>
```
### via CDN
```html
<script src="https://unpkg.com/ajquery"></script>
```