-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,8 +46,8 @@ For React implementations, check our [PlaceKit Autocomplete React](https://githu | |
First, import the library and the default stylesheet into the `<head>` tag in your HTML: | ||
|
||
```html | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@placekit/[email protected].4/dist/placekit-autocomplete.min.css" /> | ||
<script src="https://cdn.jsdelivr.net/npm/@placekit/[email protected].4"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@placekit/[email protected].5/dist/placekit-autocomplete.min.css" /> | ||
<script src="https://cdn.jsdelivr.net/npm/@placekit/[email protected].5"></script> | ||
``` | ||
|
||
After importing the library, `placekitAutocomplete` becomes available as a global: | ||
|
@@ -66,7 +66,7 @@ Or if you are using native ES Modules: | |
|
||
```html | ||
<script type="module"> | ||
import placekitAutocomplete from 'https://cdn.jsdelivr.net/npm/@placekit/[email protected].4/dist/placekit-autocomplete.esm.js'; | ||
import placekitAutocomplete from 'https://cdn.jsdelivr.net/npm/@placekit/[email protected].5/dist/placekit-autocomplete.esm.js'; | ||
const pka = placekitAutocomplete(/* ... */); | ||
// ... | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<title>PlaceKit Autocomplete JS from CDN</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@placekit/[email protected].4/dist/placekit-autocomplete.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@placekit/[email protected].5/dist/placekit-autocomplete.min.css" /> | ||
<style> | ||
body { padding: 4rem; } | ||
.container { | ||
|
@@ -27,7 +27,7 @@ | |
/> | ||
</main> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/@placekit/[email protected].4"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@placekit/[email protected].5"></script> | ||
<script> | ||
const pka = placekitAutocomplete('pk_MP9JDzZr6jBoPH6i1K5BsBbTe2N9D4monmQyEHY7Qhk=', { | ||
target: '#placekit-input', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters