$(document).ready( function(){
/*- Links que llaman a Jquery -*/
$('a.jquery').attr('href', 'javascript:void(0);');
/*- Boton de agregar tweet -*/
$(function (){
$('#addNewTweetLink .actionLink').prepend('
');
/*
$('#addNewTweetLink .actionLink').click(function (){
$('#addNewTweetForm').fadeIn('slow');
});
*/
});
/*- Formulario de agregar -*/
/*
$('#addTweetsField').focus(function(){
$(this).addClass('addFocus');
});
$('#addTweetsField').blur(function(){
$(this).removeClass('addFocus');
});
*/
/*- Formulario de busqueda -*/
var searchLabel = $('#search label');
var searchLabelContent = $(searchLabel).text();
var searchBox = $('#searchTweetsField');
$(function(){
$(searchBox).val(searchLabelContent);
});
$(searchBox).focus(function(){
$(this).val('');
$(this).addClass('searchFocus');
});
$(searchBox).blur(function(){
$(this).removeClass('searchFocus');
});
/*- Resultados alternados en los tweets -*/
$(function (){
$('#tweetsContainer .tweet:odd').addClass('oddTweet');
});
/*- Agregar arroba al nombre del usuario en el tweet -*/
$(function (){
$('.tweet strong a').prepend('@');
});
/*- Votos -*/
$('.votes').each(function (){
$(this).stop().animate({'opacity': .4});
});
$('.tweet').hover(function() {
$(this).find('.votes').stop().animate({'opacity': 1});
}, function() {
$(this).find('.votes').stop().animate({'opacity': .4});
});
/*- Pajarito del footer -*/
$(function (){
$('#footer p').prepend('
');
});
});