Skip to content

Commit

Permalink
Fix version numbers in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jackocnr committed Dec 4, 2024
1 parent c901716 commit a3283a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ _Note: We have now dropped support for all versions of Internet Explorer because
## Getting Started (Using a CDN)
1. Add the CSS
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].1/build/css/intlTelInput.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].2/build/css/intlTelInput.css">
```

2. Add the plugin script and initialise it on your input element
```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/build/js/intlTelInput.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/build/js/intlTelInput.min.js"></script>
<script>
const input = document.querySelector("#phone");
window.intlTelInput(input, {
loadUtils: () => import("https://cdn.jsdelivr.net/npm/[email protected].1/build/js/utils.js"),
loadUtils: () => import("https://cdn.jsdelivr.net/npm/[email protected].2/build/js/utils.js"),
});
</script>
```
Expand Down Expand Up @@ -317,7 +317,7 @@ The `loadUtils` option takes a function which returns a Promise which resolves t
```js
// (A) import utils module from a CDN
intlTelInput(htmlInputElement, {
loadUtils: () => import("https://cdn.jsdelivr.net/npm/[email protected].1/build/js/utils.js"),
loadUtils: () => import("https://cdn.jsdelivr.net/npm/[email protected].2/build/js/utils.js"),
});

// (B) import utils module from your own hosted version of utils.js
Expand Down Expand Up @@ -598,7 +598,7 @@ The `loadUtils` option takes a function which returns a Promise which resolves t
```js
// (A) import utils module from a CDN
intlTelInput(htmlInputElement, {
loadUtils: () => import("https://cdn.jsdelivr.net/npm/[email protected].1/build/js/utils.js"),
loadUtils: () => import("https://cdn.jsdelivr.net/npm/[email protected].2/build/js/utils.js"),
});

// (B) import utils module from your own hosted version of utils.js
Expand Down

0 comments on commit a3283a9

Please sign in to comment.