Skip to content

Commit 4a5c3bf

Browse files
author
Donatas Stonys
committed
'Read more...' links changed.
Signed-off-by: Donatas Stonys <[email protected]>
1 parent 6c49719 commit 4a5c3bf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

A simple cookie warning/warnCookies.js

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

8-
// Asign current date to variable //
8+
// Assign current date to variable //
99
var currentDate = new Date();
1010

1111
// Create some DOM elements
@@ -16,7 +16,7 @@ function checkCookie(cookieName) {
1616
"use strict";
1717
var cookieValue, cookieStartsAt, cookieEndsAt;
1818

19-
// Get all coookies in one string
19+
// Get all cookies in one string
2020
cookieValue = document.cookie;
2121
// Check if cookie's name is within that string
2222
cookieStartsAt = cookieValue.indexOf(" " + cookieName + "=");
@@ -89,7 +89,7 @@ function acceptCookies() {
8989
document.getElementById("cookiesWarning").appendChild(newCookiesWarningDiv).setAttribute("id", "cookiesWarningActive");
9090
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
92-
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>";
92+
document.getElementById("readMoreURL").innerHTML = "<a href='https://github.com/BlueWhaleSEO/JavaScript.git' title='ICO - New EU cookie law (e-Privacy Directive)' target='_blank' rel='nofollow'>Read more...</a>";
9393
}
9494

9595
function acceptCookiesTickBoxWarning() {
@@ -99,7 +99,7 @@ function acceptCookiesTickBoxWarning() {
9999
document.getElementById("cookiesWarning").appendChild(newCookiesWarningDiv).setAttribute("id", "cookiesWarningActive");
100100
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
102-
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>";
102+
document.getElementById("readMoreURL").innerHTML = "<a href='https://github.com/BlueWhaleSEO/JavaScript.git' title='ICO - New EU cookie law (e-Privacy Directive)' target='_blank' rel='nofollow'>Read more...</a>";
103103
}
104104

105105
// Check if cookie has been set before //

0 commit comments

Comments
 (0)