当小于 650 时,导航的显示通过按钮点击控制

This commit is contained in:
Vanessa
2013-06-07 16:15:23 +08:00
parent c8c2d0df4e
commit e705c23e7f
6 changed files with 60 additions and 16 deletions

View File

@@ -165,6 +165,19 @@ var timeline = {
timeline._initIndexList();
timeline._initArticleList();
timeline._setNavCurrent();
// init header list
$(".ico-list").click(function() {
if ($(".header > .container > form").css("height") === "0px") {
$(".header > .container > ul, .header > .container > form").css({
"height": "auto"
});
} else {
$(".header > .container > ul, .header > .container > form").animate({
"height": "0px"
});
}
});
},
translate: function() {
window.open("http://translate.google.com/translate?sl=auto&tl=auto&u=" + location.href);

File diff suppressed because one or more lines are too long