Small .NET utility for displaying an user warning about using of cookies on the site (tested with ASP.NET MVC, but should work on any framework). Inspired by https://github.com/infinum/cookies_eu (that's were css and js scripts come from, thanx guys)!
Install via Nuget (not yet available, soon ...).
First include JS and CSS files in header, bottom of the body or in the Bundle config:
<link href="~/Content/cookies_eu.css" rel="stylesheet" />
<script src="~/Scripts/jquery-2.0.3.js"></script>
<script src="~/Scripts/jquery.cookie.js"></script>
<script src="~/Scripts/cookies_eu.js"></script>
Then, simply call this line to inject a necessery HTML:
@Html.Raw(Consent.Instance.Install())
that's it! There are some options on Install method, so you can override default text.