Skip to content

Commit

Permalink
Updated url (projects.schalk.hu)
Browse files Browse the repository at this point in the history
  • Loading branch information
TS committed Jun 26, 2023
1 parent 00e4fb3 commit c275a52
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ EU Cookie Law warning message

## Preview

[![preview](https://img.shields.io/badge/preview-click_here-green.svg?style=flat-square)](https://schalk.hu/projects/cookie-warn/demo/)
[![preview](https://img.shields.io/badge/preview-click_here-green.svg?style=flat-square)](https://projects.schalk.hu/cookie-warn/demo/)

## Features

Expand Down
2 changes: 1 addition & 1 deletion demo/index-params.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}"
data-debug="true"
data-expire="90"
data-path="/projects/cookie-warn/demo"
data-path="/cookie-warn/demo"
data-delay="220"
data-class="myCookieWarningClass"
data-style="#cookieScriptBox a { color: lightblue } #cookieScriptBox .btn { border-radius: 5px }"
Expand Down
4 changes: 2 additions & 2 deletions dist/cookie-warn.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* @preserve cookie-warn - EU cookie warn
*
*
* @version v3.2.10
* @link https://schalk.hu/projects/cookie-warn/demo/index.html
* @link https://projects.schalk.hu/cookie-warn/demo/index.html
* @author Tamas Schalk (https://github.com/schalkt)
* @license MIT
*/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cookie-warn",
"version": "3.2.10",
"description": "EU cookie warn",
"homepage": "https://schalk.hu/projects/cookie-warn/demo/index.html",
"homepage": "https://projects.schalk.hu/cookie-warn/demo/index.html",
"repository": {
"type": "git",
"url": "https://github.com/schalkt/cookie-warn.git"
Expand Down
14 changes: 7 additions & 7 deletions src/cookie-warn.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* @preserve cookie-warn - EU cookie warn
*
*
* @version v3.2.10
* @link https://schalk.hu/projects/cookie-warn/demo/index.html
* @link https://projects.schalk.hu/cookie-warn/demo/index.html
* @author Tamas Schalk (https://github.com/schalkt)
* @license MIT
*/
Expand Down Expand Up @@ -56,8 +56,8 @@
data: data,
};

if (parameters.secure) {
parameters.secure = parameters.secure == "true" ? true : false;
if (parameters.secure) {
parameters.secure = parameters.secure == "true" ? true : false;
} else {
parameters.secure = location.protocol !== 'https:' ? false : true;
}
Expand Down Expand Up @@ -88,7 +88,7 @@
cookies = document.cookie.split(";");

for (i = 0; i < cookies.length; i++) {

cidx = cookies[i].indexOf("=");
ckey = cookies[i].substring(0, cidx).trim();
cval = cookies[i].substring(cidx + 1).trim();
Expand Down Expand Up @@ -265,7 +265,7 @@
}

// append to body
document.body.appendChild(wbox);
document.body.appendChild(wbox);

setTimeout(function () {
wbox.className = wbox.className + " loaded";
Expand All @@ -278,7 +278,7 @@

if (attributes.debug) {
console.log("readyState: " + readyState);
console.log("cookieWarnValue: " + cookieWarnValue);
console.log("cookieWarnValue: " + cookieWarnValue);
}

if (readyState == "complete") {
Expand Down

0 comments on commit c275a52

Please sign in to comment.