forked from carlwoodhouse/jquery.cookieBar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
44 lines (43 loc) · 1.45 KB
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<head>
<title>jquery.cookieBar </title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.cookieBar.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.cookie-message').cookieBar();
});
</script>
<link rel="stylesheet" type="text/css" href="cookieBar.css">
<style type="text/css">
/* Unimportant styles, although you really should include a reset */
@import url(http://reset5.googlecode.com/hg/reset.min.css);
body { font:14px/21px Helvetica, Arial, serif; }
.container {
width:640px;
margin:60px auto;
padding:30px;
background:#ededed;
border-radius:10px;
box-shadow:1px 1px 3px #aaa;
}
h1 {
font-size:30px;
margin-bottom:15px;
}
</style>
</head>
<body>
<!-- This is the start of the super important snippet -->
<div class="ui-widget">
<div class="cookie-message ui-widget-header blue">
<p>By using this website you allow us to place cookies on your computer. They are harmless and never personally identify you.</p>
</div>
</div>
<!-- and this is the end. -->
<div class="container">
<h1>jquery.cookieBar</h1>
<p>A simple, lightweight jQuery plugin for creating a notification bar that is dismissable and dismiss is saved by cookie. Perfect for implementing the new eu cookielaw!</p>
</div>
</body>
</html>