Skip to content

Commit b2c0886

Browse files
committed
hide older changelog entries
1 parent 481f617 commit b2c0886

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

site/index.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ For a more detailed guide consult <a href="$root/docs/">http://leafo.net/scssphp
101101

102102
Find any issues? I'd love to fix them for you, post about them on [the issues tracker][3].
103103

104-
<a name="changelog"></a>
104+
<div id="changelog"></div>
105105
## Changelog
106106

107107
* **0.0.7** -- May 24, 2013
@@ -146,6 +146,21 @@ Find any issues? I'd love to fix them for you, post about them on [the issues tr
146146
* wrote <a href="http://leafo.net/scssphp/docs/">documentation</a>
147147
* Initial Release v0.0.1 -- July 29th, 2012
148148

149+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
150+
<script type="text/javascript">
151+
(function() {
152+
var changelog = jQuery("#changelog").nextAll("ul:first");
153+
var hidden = changelog.children("li").slice(1).hide();
154+
if (hidden.length) {
155+
var show_all = jQuery("<a href=''>Show All</a>").insertAfter(changelog).on("click", function() {
156+
hidden.show();
157+
show_all.remove();
158+
return false;
159+
});
160+
}
161+
})();
162+
</script>
163+
149164
<a name="comments"></a>
150165
## Comments
151166

0 commit comments

Comments
 (0)