Skip to content

Commit 40820bc

Browse files
committed
Removido redirect de lingua
1 parent 47905ac commit 40820bc

File tree

4 files changed

+168
-143
lines changed

4 files changed

+168
-143
lines changed

_site/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<meta property="og:url" content="http://coderockr.com/" />
2121

2222
<link rel="stylesheet" href="/public/styles/style.css">
23-
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300|Hammersmith+One&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
23+
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300|Hammersmith+One&subset=latin,latin-ext" rel="stylesheet" type="text/css">
2424

2525
<script src="/public/scripts/libs/modernizr-2.0.6.min.js"></script>
2626
</head>
@@ -54,8 +54,8 @@ <h1><a href="/" title="Coderockr"><img src="/public/images/coderockr-logo.png" w
5454
<input type="checkbox" name="language" id="language" />
5555
<div class="language-pt">
5656
<div>
57-
<a href="http://coderockr.com" title="Acesse nosso site em Português" target="_top">PT</a>
58-
<a href="http://en.coderockr.com" title="Visit our site in English." target="_top">EN</a>
57+
<a href="http://coderockr.com" title="Acesse nosso site em Português" rel="pt-br" target="_top">PT</a>
58+
<a href="http://en.coderockr.com" title="Visit our site in English." rel="en" target="_top">EN</a>
5959
</div>
6060
</div>
6161
</header>
@@ -1028,7 +1028,7 @@ <h3>André Espeiorin</h3>
10281028
<article>
10291029
<span class="avatar"><img src="/public/images/content/Bibi.jpg" width="80" height="80" alt="" /><span></span></span>
10301030
<h3>Bibi Ferreira</h3>
1031-
<p>Office Manager da Coderockr, graduando em Gastronomia, mas pretende investir sua carreira na área de Tecnologia. Gosta de conversar em alemão, é fã de Rock e Heavy Metal, apaixonada por carros antigos, não abre mão de cerveja gelada, Xbox e de um bom e velho whisky.</p>
1031+
<p>Office Manager da Coderockr, graduada em Gastronomia, mas pretende investir sua carreira na área de Tecnologia. Gosta de conversar em alemão, é fã de Rock e Heavy Metal, apaixonada por carros antigos, não abre mão de cerveja gelada, Xbox e de um bom e velho whisky.</p>
10321032
<div class="share">
10331033
<a href="https://twitter.com/fs_bibi" target="_blank" title="Twitter"><img src="/public/images/share-twitter.gif" width="33" height="33" alt="Twitter" /></a>
10341034
<a href="https://www.facebook.com/bibi.ferreira.5?ref=tn_tnmn" target="_blank" title="Facebook"><img src="/public/images/share-facebook.gif" width="33" height="33" alt="Facebook" /></a>

_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)