Skip to content

Commit fc47060

Browse files
committed
Update warnCookies.js
1 parent 3f984a8 commit fc47060

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

A simple cookie warning/warnCookies.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
///////////////////////////////////////
22
// Author: Donatas Stonys //
33
// WWW: http://www.BlueWhaleSEO.com //
4-
// Date: 26 July 2012 //
5-
// Version: 0.7 //
4+
// Date: 26 July 2012 //
5+
// Version: 0.9 //
66
///////////////////////////////////////
77

88
// Asign current date to variable //
@@ -87,7 +87,7 @@ function acceptCookies() {
8787
"use strict";
8888

8989
document.getElementById("cookiesWarning").appendChild(newCookiesWarningDiv).setAttribute("id", "cookiesWarningActive");
90-
document.getElementById("cookiesWarningActive").innerHTML = "<strong id='text'>We would like to place cookies on your computer to help us make this website better. </strong><span id='readMoreURL'></span><form name='cookieAgreement'><input type='checkbox' name='agreed' value='Agreed' class='checkbox'>I accept cookies from this site.<input type='submit' value='Continue' onclick='getAgreementValue(); return false;' class='button'></form>";
90+
document.getElementById("cookiesWarningActive").innerHTML = "<strong id='text'>We would like to place cookies on your computer to help us make this website better. </strong><span id='readMoreURL'></span><form name='cookieAgreement'><input type='checkbox' name='agreed' value='Agreed' class='checkbox'><span class='acceptance'>I accept cookies from this site.</span><input type='submit' value='Continue' onclick='getAgreementValue(); return false;' class='button'></form>";
9191
// Change the URL of "Read more..." here
9292
document.getElementById("readMoreURL").innerHTML = "<a href='http://www.ico.gov.uk/for_organisations/privacy_and_electronic_communications/the_guide/cookies.aspx' title='ICO - New EU cookie law (e-Privacy Directive)' target='_blank' rel='nofollow'>Read more...</a>";
9393
}
@@ -97,7 +97,7 @@ function acceptCookiesTickBoxWarning() {
9797

9898
setCookie("TestCookie", "Yes", "", "1 Jan 2000 00:00:00");
9999
document.getElementById("cookiesWarning").appendChild(newCookiesWarningDiv).setAttribute("id", "cookiesWarningActive");
100-
document.getElementById("cookiesWarningActive").innerHTML = "<strong id='text'>We would like to place cookies on your computer to help us make this website better. </strong><span id='readMoreURL'></span><form name='cookieAgreement'><p id='warning'><small>You must tick the 'I accept cookies from this site' box to accept. If you continue without changing your settings, we'll assume that you agree to receive all cookies on this website.</small></p><input type='checkbox' name='agreed' value='Agreed' class='checkbox'>I accept cookies from this site.<input type='submit' value='Continue' onclick='getAgreementValue()' class='button'></form>";
100+
document.getElementById("cookiesWarningActive").innerHTML = "<strong id='text'>We would like to place cookies on your computer to help us make this website better. </strong><span id='readMoreURL'></span><form name='cookieAgreement'><p id='warning'><small>You must tick the 'I accept cookies from this site' box to accept. If you continue without changing your settings, we'll assume that you agree to receive all cookies on this website.</small></p><input type='checkbox' name='agreed' value='Agreed' class='checkbox'><span class='acceptance'>I accept cookies from this site.</span><input type='submit' value='Continue' onclick='getAgreementValue()' class='button'></form>";
101101
// Change the URL of "Read more..." here
102102
document.getElementById("readMoreURL").innerHTML = "<a href='http://www.ico.gov.uk/for_organisations/privacy_and_electronic_communications/the_guide/cookies.aspx' title='ICO - New EU cookie law (e-Privacy Directive)' target='_blank' rel='nofollow'>Read more...</a>";
103103
}
@@ -134,4 +134,4 @@ function getAgreementValue() {
134134
// If agreement box hasn't been checked, delete cookie (if exist) and add extra warning to HTML form
135135
acceptCookiesTickBoxWarning();
136136
}
137-
}
137+
}

0 commit comments

Comments
 (0)