Repository navigation
Expand file tree
/
Copy pathcode.html
More file actions
44 lines (41 loc) · 1.37 KB
/
Copy pathcode.html
File metadata and controls
44 lines (41 loc) · 1.37 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
<!-- COOKIES -->
<div id="barraaceptacion">
<div class="inner">
Esta web utiliza cookies propias y de terceros para ofrecerte un mejor servicio. Si continuas navegando, consideramos que aceptas su uso.
<a href="javascript:void(0);" class="ok" onClick="PonerCookie();"><b>Aceptar</b></a>
</div>
</div>
<script>// COOKIES
function getCookie(c_name){
var c_value = document.cookie;
var c_start = c_value.indexOf(" " + c_name + "=");
if (c_start == -1){
c_start = c_value.indexOf(c_name + "=");
}
if (c_start == -1){
c_value = null;
}else{
c_start = c_value.indexOf("=", c_start) + 1;
var c_end = c_value.indexOf(";", c_start);
if (c_end == -1){
c_end = c_value.length;
}
c_value = unescape(c_value.substring(c_start,c_end));
}
return c_value;
}
function setCookie(c_name,value,exdays){
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
document.cookie=c_name + "=" + c_value;
}
if(getCookie('avisocookie')!="1"){
document.getElementById("barraaceptacion").style.display="block";
}
function PonerCookie(){
setCookie('avisocookie','1',365);
document.getElementById("barraaceptacion").style.display="none";
}
</script>
<!-- FIN COOKIES -->