Line 16: | Line 16: | ||
<a class="list-group-item list-group-item-action" href="#list-item-4">App</a> | <a class="list-group-item list-group-item-action" href="#list-item-4">App</a> | ||
<a class="list-group-item list-group-item-action" href="#list-item-5">Reference</a> | <a class="list-group-item list-group-item-action" href="#list-item-5">Reference</a> | ||
+ | <a class="list-group-item list-group-item-action" href="#"><i class="fa fa-arrow-up fa-1x" aria-hidden="true"></i></a> | ||
</div> | </div> | ||
</div> | </div> | ||
Line 62: | Line 63: | ||
$('#sidelist').removeAttr('style'); | $('#sidelist').removeAttr('style'); | ||
} | } | ||
+ | }); | ||
+ | $(function(){ | ||
+ | $('a.fa-arrow-up').click(function(){ | ||
+ | $('html, body').animate({scrollTop:0},600); | ||
+ | return false; | ||
+ | }); | ||
}); | }); | ||
}); | }); |
Revision as of 08:27, 20 August 2018