Skip to content

Commit 1815f65

Browse files
committed
2 parents 0a9cc16 + 585c707 commit 1815f65

File tree

2 files changed

+164
-133
lines changed

2 files changed

+164
-133
lines changed

_site/public/scripts/script.js

+28
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,35 @@ $(document).ready(function() {
112112
return false;
113113
}
114114
});
115+
/*$('div[class=^"language-"] a').bind("click", function(){
116+
var langValue = $(this).attr("rel");
117+
createCookie("idioma", langValue, 60);
118+
});*/
115119
});
120+
/*
121+
function createCookie(name, value, days) {
122+
if (days) {
123+
var date = new Date();
124+
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
125+
var expires = "; expires=" + date.toGMTString();
126+
}
127+
else var expires = "";
128+
document.cookie = name + "=" + value + expires + "; path=/";
129+
}
130+
function getCookie(c_name) {
131+
if (document.cookie.length > 0) {
132+
c_start = document.cookie.indexOf(c_name + "=");
133+
if (c_start != -1) {
134+
c_start = c_start + c_name.length + 1;
135+
c_end = document.cookie.indexOf(";", c_start);
136+
if (c_end == -1) {
137+
c_end = document.cookie.length;
138+
}
139+
return unescape(document.cookie.substring(c_start, c_end));
140+
}
141+
}
142+
return "";
143+
}*/
116144
function hideLanguage() {
117145
$('input[name="language"]').attr('checked', false);
118146
}

0 commit comments

Comments
 (0)