Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- if (window.location.href.indexOf("en") != -1) {
- console.log("esta en ingles");
- }
- //cuando cliqueo el boton #goen:
- $('#goen').click (function(){
- // renueva el contenido
- $('.en').css('visibility','visible');
- $('.es, .por').css('visibility','hidden');
- //agrega parametro ?lang=en a los links con la clase "tradulink"
- //var url = window.location.href;
- $('.tradulink').attr("href", "?lang=en");
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement