Skip to content

Instantly share code, notes, and snippets.

@wwwebman
Last active November 16, 2017 17:35
Show Gist options
  • Save wwwebman/6cbf338a5b65f82dda896e2ad7eb4085 to your computer and use it in GitHub Desktop.
Save wwwebman/6cbf338a5b65f82dda896e2ad7eb4085 to your computer and use it in GitHub Desktop.
Set and get cookie with JavaScript (JS, SCSS, HTML)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div class="m-cookies">
<div class="container">
<div class="row">
<div class="col-sm-9"><p>Find out about the cookies - <a href="http://www.sussex.ac.uk/about/website/cookies" rel="nofollow noreferrer noopener" target="_blank">link</a></p></div>
<div class="col-sm-3"><button type="button" class="btn">Accept</button></div>
</div>
</div>
</div>
</body>
</html>
@wwwebman
Copy link
Author

Looks good! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment