Skip to content

Commit 8bda8c6

Browse files
committed
Idioma por fazer
1 parent 23f1438 commit 8bda8c6

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

index.html

+1-4
Original file line numberDiff line numberDiff line change
@@ -252,20 +252,17 @@ <h2>A Coderockr está pronta para<br /><span>dar um show</span>,<br />entre em c
252252
<script defer src="/public/scripts/plugins.js"></script>
253253
<script defer src="/public/scripts/script.js"></script>
254254

255-
<script type="text/javascript">
255+
<script>
256256
window._gaq = [['_setAccount','UA-584603-6'],['_trackPageview'],['_trackPageLoadTime']];
257257
Modernizr.load({
258258
load: ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js'
259259
});
260260
</script>
261261
<script>
262-
console.log(getCookie());
263-
if(getCookie("idioma") == "") {
264262
var language = window.navigator.userLanguage || window.navigator.language;
265263
if(language.toLowerCase() != 'pt-br') {
266264
window.location.href='http://en.coderockr.com';
267265
}
268-
}
269266
</script>
270267

271268
<!--[if lt IE 7 ]>

public/scripts/script.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,12 @@ $(document).ready(function() {
112112
return false;
113113
}
114114
});
115-
$('div[class=^"language-"] a').bind("click", function(){
115+
/*$('div[class=^"language-"] a').bind("click", function(){
116116
var langValue = $(this).attr("rel");
117117
createCookie("idioma", langValue, 60);
118-
});
118+
});*/
119119
});
120+
/*
120121
function createCookie(name, value, days) {
121122
if (days) {
122123
var date = new Date();
@@ -126,7 +127,7 @@ function createCookie(name, value, days) {
126127
else var expires = "";
127128
document.cookie = name + "=" + value + expires + "; path=/";
128129
}
129-
function getCookie() {
130+
function getCookie(c_name) {
130131
if (document.cookie.length > 0) {
131132
c_start = document.cookie.indexOf(c_name + "=");
132133
if (c_start != -1) {
@@ -139,7 +140,7 @@ function getCookie() {
139140
}
140141
}
141142
return "";
142-
}
143+
}*/
143144
function hideLanguage() {
144145
$('input[name="language"]').attr('checked', false);
145146
}

0 commit comments

Comments
 (0)