This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2012-04-06 10:06:57 +00:00
|
|
|
$(document).on('click', '.orbit-bar-search', function (){
|
|
|
|
if ($(this).parents('.search').hasClass('visible')){
|
|
|
|
$(this).parents('.search').stop().animate({
|
|
|
|
'width':'28px',
|
2012-09-13 18:38:56 +00:00
|
|
|
},500);
|
|
|
|
$('.navbar-search').stop().animate({
|
|
|
|
'left':'30px',
|
|
|
|
'opacity':'0',
|
|
|
|
},200);
|
2012-04-06 10:06:57 +00:00
|
|
|
$(this).parents('.search').css({
|
|
|
|
'background-color': 'transparent',
|
|
|
|
});
|
2012-09-13 18:38:56 +00:00
|
|
|
$(this).parents('.search').removeClass('visible');
|
2012-04-06 10:06:57 +00:00
|
|
|
}
|
|
|
|
else{
|
|
|
|
$(this).parents('.search').stop().animate({
|
|
|
|
'width':'265px',
|
2012-09-13 18:38:56 +00:00
|
|
|
},200);
|
|
|
|
$('.navbar-search').stop().animate({
|
|
|
|
'left':'7px',
|
|
|
|
'opacity':'1'
|
|
|
|
},500);
|
2012-04-06 10:06:57 +00:00
|
|
|
$(this).parents('.search').css({
|
|
|
|
'background-color': 'rgba(0, 0, 0, 0.5)',
|
|
|
|
});
|
|
|
|
$(this).parents('.search').addClass('visible');
|
|
|
|
}
|
|
|
|
});
|