Skip to content

Commit 868568b

Browse files
committed
Add script import to README
1 parent 6df07d4 commit 868568b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ Insert the banner before all content at the beginning of the `<body>` element, w
2121
- `#cookies-cnil-reject` and `#cookies-cnil-accept` to reject/accept cookies.
2222

2323

24-
Next, before the end of your `<body>`, or in a script file inserted at the same place, insert that:
24+
Next, get the [`cookies-cnil-banner.min.js`](cookies-cnil-banner.min.js) file and before the end of your `<body>`, or in a script file inserted at the same place, put that:
2525

2626
```html
27+
<script src="./cookies-cnil-banner.min.js"></script>
2728
<script>
2829
new CookiesCnilBanner(function(){
2930
// Your code to launch when user accept cookies
@@ -34,6 +35,7 @@ Next, before the end of your `<body>`, or in a script file inserted at the same
3435
Exemple for Google Analaytics:
3536

3637
```html
38+
<script src="./cookies-cnil-banner.min.js"></script>
3739
<script>
3840
new CookiesCnilBanner(function(){
3941
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

0 commit comments

Comments
 (0)