Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a button to hide labels in archives page. 在文章索引界面增加一个按钮用于隐藏标记标签。 Closes #9
- Loading branch information
Showing
2 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
<%- partial('_partial/archive', {pagination: config.archive, index: true}) %> | ||
<%- partial('_partial/archive', {pagination: config.archive, index: true}) %> | ||
<button class="hide-labels">TAG 开关</button> | ||
<script src="http://7.url.cn/edu/jslib/comb/require-2.1.6,jquery-1.9.1.min.js"> | ||
</script> | ||
<script> | ||
$(document).ready(function(){ | ||
$("button").click(function(){ | ||
$(".article-info").toggle(200); | ||
}); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters