<commit_before># Cookie Disclaimer

[![Build Status](https://travis-ci.org/jonnyhaynes/cookie-disclaimer.svg?branch=master)](https://travis-ci.org/jonnyhaynes/cookie-disclaimer)

Dynamically add a cookie disclaimer to your website

## EU Requirements

The Cookie Law is a piece of privacy legislation that requires websites to get consent from visitors to store or retrieve any information on a computer, smartphone or tablet.

It was designed to protect online privacy, by making consumers aware of how information about them is collected and used online, and give them a choice to allow it or not.

It started as an EU Directive that was adopted by all EU countries in May 2011. Each country then updated its own laws to comply. In the UK this meant an update to the Privacy and Electronic Communications Regulations.

More info: http://ec.europa.eu/ipg/basics/legal/cookies/index_en.htm

## Solution

This code will dynamically add a disclaimer to the top of the body after checking to see if the _cookieDiscliamer cookie has been accepted or not.

If this is your first visit, you won;t have this cookie so it will display the disclaimer. If you visited previously and accepted the disclaimer, the disclaimer will no longer show for a period of 30 days or fi you clear your cookies.

### ToDo

- Bower package?
- Remove dependancy on jQuery<commit_msg>Removed Bower from ToDO<commit_after># Cookie Disclaimer

[![Build Status](https://travis-ci.org/jonnyhaynes/cookie-disclaimer.svg?branch=master)](https://travis-ci.org/jonnyhaynes/cookie-disclaimer)

Dynamically add a cookie disclaimer to your website

## EU Requirements

The Cookie Law is a piece of privacy legislation that requires websites to get consent from visitors to store or retrieve any information on a computer, smartphone or tablet.

It was designed to protect online privacy, by making consumers aware of how information about them is collected and used online, and give them a choice to allow it or not.

It started as an EU Directive that was adopted by all EU countries in May 2011. Each country then updated its own laws to comply. In the UK this meant an update to the Privacy and Electronic Communications Regulations.

More info: http://ec.europa.eu/ipg/basics/legal/cookies/index_en.htm

## Solution

This code will dynamically add a disclaimer to the top of the body after checking to see if the _cookieDiscliamer cookie has been accepted or not.

If this is your first visit, you won;t have this cookie so it will display the disclaimer. If you visited previously and accepted the disclaimer, the disclaimer will no longer show for a period of 30 days or fi you clear your cookies.

### ToDo

- Remove dependancy on jQuery
{'fraction_non_alphanumeric': 0.04953789279112754, 'fraction_numerical': 0.0044362292051756, 'mean_word_length': 4.522448979591837, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7498523', 'n_tokens_mistral': 703, 'n_tokens_neox': 670, 'n_words': 388}