-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
97 lines (94 loc) · 2.48 KB
/
index.html
File metadata and controls
97 lines (94 loc) · 2.48 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Accept Cookie JS | @kushalcodes</title>
<style>
body{
margin: 0;
}
/* .__AcceptCookie{
position: fixed;
bottom: 10px;
padding: 20px;
background-color: #000;
color: #fff;
width: 60%;
left: 20%;
margin: 0;
overflow: auto;
box-sizing: border-box;
border-radius: 10px;
margin-bottom: 10px;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
-webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
}
.__AcceptCookie .__accept_text{
padding: 4px 0 0 0;
float: left;
text-align: justify;
}
.__AcceptCookie > button,
.__AcceptCookie .__accept_btn{
float: right;
padding: 8px;
box-sizing: border-box;
background-color: aliceblue;
color: #000;
text-align: center;
border-radius: 4px;
outline: none;
border: none;
cursor: pointer;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
min-width: 50px;
z-index: 100000;
}
.__AcceptCookie > button:active{
background-color: antiquewhite;
}
.__AcceptCookie .__accept_btn{
border-radius: 0;
background-color: rgb(0, 0, 0);
padding: 4px 2px 2px 2px;
}
.__AcceptCookie a{
outline: none;
color: aqua !important;
text-decoration: none;
}
.__AcceptCookie a:hover{
text-decoration: underline;
}
@media screen and (max-width:768px){
.__AcceptCookie{
width: 80%;
left: 10%;
}
.__AcceptCookie > button,
.__AcceptCookie .__accept_btn{
display: block;
width: 100%;
margin-top: 8px;
padding: 10px;
font-size: 16px;
}
} */
</style>
</head>
<body>
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/kushalcodes/accept-cookie-js@master/accept-cookie-min.js"></script>
<script>
window.onload = () => {
// initialize accept cookie prompt with default values
// __AcceptCookie.initialize() or .init()
__AcceptCookie.init();
};
</script>
</body>
</html>