Skip to content

Commit

Permalink
Merge pull request #18 from SatoSawa/click-search
Browse files Browse the repository at this point in the history
🐛 fixed search link not clickable
  • Loading branch information
rv-vmartins authored Aug 2, 2017
2 parents 9b5db8a + afb2996 commit 0a87dd4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/menu-search.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

<ul>
<li><span class="counter-menu">g</span><svg viewBox="0 0 50 50" class="icon-arrow-menu"><use xlink:href="#icon-right-arrow"></use></svg><a title="Show my projects on GitHub" target="_blank" href="http://github.com/{{site.github_username}}" class="search">github</a></li>
<li><span class="counter-menu">s</span><svg viewBox="0 0 50 50" class="icon-arrow-menu"><use xlink:href="#icon-right-arrow"></use></svg><a title="Search for a post" class="search">search</a></li>
<li><span class="counter-menu">s</span><svg viewBox="0 0 50 50" class="icon-arrow-menu"><use xlink:href="#icon-right-arrow"></use></svg><a id="searching" title="Search for a post" class="search">search</a></li>
<li><span class="counter-menu">t</span><svg viewBox="0 0 50 50" class="icon-arrow-menu"><use xlink:href="#icon-right-arrow"></use></svg><a title="Follow me in Twitter" target="_blank" href="http://twitter.com/{{site.twitter_username}}">twitter</a></li>
</ul>
</nav>
Expand Down
7 changes: 7 additions & 0 deletions src/js/zmain.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
return false;
}
};

// Search panel mouse click event suppport
$('#searching').click(function(){
$('#fade').trigger('click');
$("#search").trigger('click');
})

//Keys
$(document).keydown(function(e){
// console.log(e.key);
Expand Down

0 comments on commit 0a87dd4

Please sign in to comment.