// POPUP SHOW $('.click').click(function(){ var pop_id = $(this).attr('data-pop'); $("#"+pop_id).addClass('popup_show'); }) // POPUP HIDE $('.popup_cerrar, #cancelar, .pop_btn_rojo').click(function(){ $('.popup').removeClass('popup_show'); }); // LOGIN $('#inicia').click(function(){ $('#login').addClass('popup_show'); }); $('.popup_salir').click(function(){ $('.popup').removeClass('popup_show'); }); // LOGOUT $('#logout').click(function(){ $('#pop_logout').addClass('popup_show'); }); $('#cancelar').click(function(){ $('#pop_logout').removeClass('popup_show'); }); // TABS $(document).ready(function(){ $('ul.tabs li').click(function(){ var tab_id = $(this).attr('data-tab'); var sub_id = $(this).attr('data-tab'); $('ul.tabs li').removeClass('current'); $('.tab-content').removeClass('current'); $('.subtitle').removeClass('current'); $(this).addClass('current'); $("#"+tab_id).addClass('current'); $("."+sub_id).addClass('current'); }) }) // PROFILE $('#profile_btn_editar').click(function(){ $('#profile_info').hide(); $('#profile_picture_change').show(); }); $('#profile_btn_aceptar').click(function(){ $('#profile_picture_change').hide(); $('#profile_info').show(); }); // PROFILE OPTIONS // $('.rory').click(function(){ // $('.profile_options_list').show(); // $('#hidden_rory').show(); // $('#hidden_speedy').hide(); // $('#hidden_barry').hide(); // $('#hidden_cientifico').hide(); // }); // $('.speedy').click(function(){ // $('.profile_options_list').show(); // $('#hidden_rory').hide(); // $('#hidden_speedy').show(); // $('#hidden_barry').hide(); // $('#hidden_cientifico').hide(); // }); // $('.barry').click(function(){ // $('.profile_options_list').show(); // $('#hidden_rory').hide(); // $('#hidden_speedy').hide(); // $('#hidden_barry').show(); // $('#hidden_cientifico').hide(); // }); // $('.cientifico').click(function(){ // $('.profile_options_list').show(); // $('#hidden_rory').hide(); // $('#hidden_speedy').hide(); // $('#hidden_barry').hide(); // $('#hidden_cientifico').show(); // }); // POPUP SÚPER PAR SHOW $('.doubles_cerrar').click(function(){ var pop_id = $(this).attr('data-pop'); $("#abandonar_doubles").addClass('popup_show'); }) $('#button_giveup_back').click(function(){ $('#abandonar_doubles').hide(); }) // MESSAGE var msg='{#TI:SUCCESS_MSG}'; $('#cancelar_msg').click(function(){ $('#pop_msg').removeClass('popup_show'); }); // SHORTCUTS $(".side").hover(function(){ $(this).stop().animate({ 'left': "-20px" },400,function(){ }); }, function(){ $(this).stop().animate({ 'left': "-140px" },400, function(){ }); } );