Skip to content

Commit

Permalink
Add script import to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-D committed Jan 26, 2015
1 parent 6df07d4 commit 868568b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ Insert the banner before all content at the beginning of the `<body>` element, w
- `#cookies-cnil-reject` and `#cookies-cnil-accept` to reject/accept cookies.


Next, before the end of your `<body>`, or in a script file inserted at the same place, insert that:
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:

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

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

0 comments on commit 868568b

Please sign in to comment.