var RecaptchaOptions = { tabindex: 1, theme: 'custom', custom_theme_widget: 'recaptcha_widget' }; $('.placeholder').each(function(){ var ph = $(this).attr('placeholder'); $(this).val(ph).focus(function(){ if($(this).val() == ph) $(this).val('') }).blur(function(){ if(!$(this).val()) $(this).val(ph) }); }) function Esconde(){ $("#loginform").hide(); $("#senhaform").show(); } function Mostra(){ $("#loginform").show(); $("#senhaform").hide(); } $(document).ready(function() { $("#owl-demo").owlCarousel({ navigation : true, // Show next and prev buttons slideSpeed : 500, paginationSpeed : 400, autoPlay: 3000, stopOnHover : true, singleItem:true // "singleItem:true" is a shortcut for: // items : 1, // itemsDesktop : false, // itemsDesktopSmall : false, // itemsTablet: false, // itemsMobile : false }); $('#senha').each(function() { var val = $(this).attr('value'); if(val != '') { $(this).focus(function() { var newVal = $(this).val(); if(newVal == val) $(this).val(''); $(this)[0].type = 'password'; }); $(this).blur(function() { var newVal = $(this).val(); if(newVal == '') { $(this).val(val); $(this)[0].type = 'text'; } }); } }); $('#usuario').click(function() { $('#usuario').attr('style','text-transform:none'); $('#senha').attr('style','width: 320px;'); }); if($('form div').attr('class')=="box"){ $("#emails").val(''); $("#usuarios").val(''); } if($('form div').attr('class')=="box ativ_recuperar"){ $("#usuario").val(''); $("#senha").val(''); } $('#usuarios').click(function() { $('#usuarios').attr('style','text-transform:none'); $('#emails').attr('style','text-transform:none'); }); $( "form p span" ).click(function() { $( "form .box" ).toggleClass( "ativ_recuperar", 1000); $("#emails").val(''); $("#usuarios").val(''); $("#usuario").val(''); $("#senha").val(''); return false; }); });