Skip to content

Commit

Permalink
Use version number instead of latest to bypass caching issues
Browse files Browse the repository at this point in the history
  • Loading branch information
humancopy committed Feb 7, 2017
1 parent 931e047 commit 097edbb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Add the following piece of code before the closing ```</body>``` tag on your website to support **PEACE.JS**:

```html
<script src="https://cdn.jsdelivr.net/peace.js/latest/peace.min.js" async></script>
<script src="https://cdn.jsdelivr.net/peace.js/1.1.3/peace.min.js" async></script>
```

*You can actually paste it where you want inside the ```<body>```. It will inject itself at the same level as the ```<script>``` tag.*
Expand All @@ -13,23 +13,23 @@ Add the following piece of code before the closing ```</body>``` tag on your web
The default color for the **PEACE.JS** is black. This can be controlled via the `data-theme` attribute. Possible values are: black, white, green & blue.

```html
<script src="https://cdn.jsdelivr.net/peace.js/latest/peace.min.js" data-theme="blue" async></script>
<script src="https://cdn.jsdelivr.net/peace.js/1.1.3/peace.min.js" data-theme="blue" async></script>
```

## Style

By default **PEACE.JS** will show the word Peace in different languages. If you prefer instead to show a peace symbol simply add the `data-stlye="symbol"` attribute to the script tag:

```html
<script src="https://cdn.jsdelivr.net/peace.js/latest/peace.min.js" data-style="symbol" async></script>
<script src="https://cdn.jsdelivr.net/peace.js/1.1.3/peace.min.js" data-style="symbol" async></script>
```

## Autoloading

You can also disable the automatic activation of the banner by adding the attribute `data-auto="false"` to the script:

```html
<script src="https://cdn.jsdelivr.net/peace.js/latest/peace.min.js" data-auto="false" async></script>
<script src="https://cdn.jsdelivr.net/peace.js/1.1.3/peace.min.js" data-auto="false" async></script>
```

You can then activate it by calling the ```peaceJS()``` function anywhere in your page or javascript.
2 changes: 1 addition & 1 deletion dist/peace.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/peace.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/peace.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* PEACE.js - http://humancopy.net/peace-js.html
* Peace please, humancopy.net 2017
* Version 1.1.2
* Version 1.1.3
*
*/

Expand Down Expand Up @@ -35,7 +35,7 @@ var peaceJS;
if (target_element) {
// Load the CSS
link = document.createElement('link');
link.href = 'https://cdn.jsdelivr.net/peace.js/latest/peace.min.css';
link.href = 'https://cdn.jsdelivr.net/peace.js/1.1.3/peace.min.css';
link.type = 'text/css';
link.rel = 'stylesheet';
link.media = 'screen,print';
Expand Down
2 changes: 1 addition & 1 deletion src/peace.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* PEACE.js - http://humancopy.net/peace-js.html
* Peace please, humancopy.net 2017
* Version 1.1.2
* Version 1.1.3
*
*/

Expand Down

0 comments on commit 097edbb

Please sign in to comment.