fixed orbit bar that like nccu bar now, and add rails version in Gemfile

This commit is contained in:
Rueshyna authored and chris committed 2013-02-04 18:01:03 +08:00
1 parent 0b18cf48e3
commit b2bc62dadd
3 files changed
+57 -41

No files matched your search

+42 -28
View File
@@ -1,28 +1,42 @@
$(document).on('click', '.orbit-bar-search', function (){
if ($(this).parents('.search').hasClass('visible')){
$(this).parents('.search').stop().animate({
'width':'28px',
},500);
$('.navbar-search').stop().animate({
'left':'30px',
'opacity':'0',
},200);
$(this).parents('.search').css({
'background-color': 'transparent',
});
$(this).parents('.search').removeClass('visible');
}
else{
$(this).parents('.search').stop().animate({
'width':'265px',
},200);
$('.navbar-search').stop().animate({
'left':'7px',
'opacity':'1'
},500);
$(this).parents('.search').css({
'background-color': 'rgba(0, 0, 0, 0.5)',
});
$(this).parents('.search').addClass('visible');
}
});
$(document).ready(function(){
$('.search').tooltip({
placement: "bottom"
});
});
$(document).on('mouseenter', '.orbit-bar-search', function (){
$(this).parents('.search').stop().animate({
'width':'265px',
},200);
$('.navbar-search').stop().animate({
'left':'4px',
'opacity':'1'
},500);
$(this).parents('.search').css({
'background-color': 'rgba(0, 0, 0, 0.5)',
});
$(this).parents('.search').addClass('visible');
});
$(document).on('mouseleave', '.search.visible', function (){
$(this).stop().animate({
'width':'28px',
},500);
$('.navbar-search').stop().animate({
'left':'30px',
'opacity':'0',
},200);
$(this).css({
'background-color': 'transparent',
});
$(this).removeClass('visible');
});
$(document).on("mouseenter",".orbit-bar-language, .language-menu",function(){
$(this).parents('.language').addClass("open")
})
$(document).on("mouseleave",".orbit-bar-language, .language-menu",function(){
$(this).parents('.language').removeClass("open")
})