From f7547cea5bfb495ac7310b477089329ebc30c1cb Mon Sep 17 00:00:00 2001 From: chenbiao Date: Fri, 21 Sep 2018 16:09:57 +0800 Subject: [PATCH] nav-footer --- contact.html | 2 +- index.html | 2 +- js/nav-footer.js | 10 ++++++---- portfolio.html | 7 ++++--- services.html | 2 +- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/contact.html b/contact.html index ccd0210..e4f1a4e 100644 --- a/contact.html +++ b/contact.html @@ -91,7 +91,7 @@ - + diff --git a/index.html b/index.html index 6bbc975..9a95967 100755 --- a/index.html +++ b/index.html @@ -204,7 +204,7 @@ - + diff --git a/js/nav-footer.js b/js/nav-footer.js index 0a5fd09..4efdbd4 100644 --- a/js/nav-footer.js +++ b/js/nav-footer.js @@ -1,5 +1,4 @@ -$(function(){ //header HTML var headerHtmls='
' + '
' + @@ -94,9 +93,12 @@ $(function(){ /** *弹窗切换 **/ - $('#nav li').on('click', function () { + $(document).delegate('#nav li','click',function () { var _index = $(this).index(); + // debugger + console.log(_index); + console.log( $('#nav>li').eq(_index)) + console.log( $('#nav>li').eq(_index).siblings().html()) $('#nav>li').eq(_index).addClass('current').siblings().removeClass('current'); - }); -}); \ No newline at end of file + diff --git a/portfolio.html b/portfolio.html index 41b0f9d..6dce404 100755 --- a/portfolio.html +++ b/portfolio.html @@ -3,7 +3,7 @@ - Ruby - Responsive Corporate Tempalte + 产品介绍 @@ -129,6 +129,7 @@ + @@ -139,7 +140,7 @@ - - + + diff --git a/services.html b/services.html index e550fca..fc7bbbe 100644 --- a/services.html +++ b/services.html @@ -91,7 +91,7 @@ - + -- libgit2 0.21.4