Line 12,747: | Line 12,747: | ||
$back_to_top.on('click', function(event){ | $back_to_top.on('click', function(event){ | ||
event.preventDefault(); | event.preventDefault(); | ||
− | $(' | + | $('codebody,html').animate({ |
scrollTop: 0 , | scrollTop: 0 , | ||
}, scroll_top_duration | }, scroll_top_duration | ||
Line 16,598: | Line 16,598: | ||
<a href="#0" class="cd-top">Top</a> | <a href="#0" class="cd-top">Top</a> | ||
--> | --> | ||
+ | <a href="#0" class="cd-top cd-is-visible cd-fade-out">Top</a> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 18:58, 14 October 2016
Top