File tree 2 files changed +164
-133
lines changed
2 files changed +164
-133
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,35 @@ $(document).ready(function() {
112
112
return false ;
113
113
}
114
114
} ) ;
115
+ /*$('div[class=^"language-"] a').bind("click", function(){
116
+ var langValue = $(this).attr("rel");
117
+ createCookie("idioma", langValue, 60);
118
+ });*/
115
119
} ) ;
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
+ }*/
116
144
function hideLanguage ( ) {
117
145
$ ( 'input[name="language"]' ) . attr ( 'checked' , false ) ;
118
146
}
You can’t perform that action at this time.
0 commit comments