mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Fixed for code consistency
This commit is contained in:
parent
376a759df7
commit
44cd5d4b56
1 changed files with 2 additions and 2 deletions
|
@ -226,7 +226,7 @@ function generateToc(id) {
|
||||||
'class': 'toc',
|
'class': 'toc',
|
||||||
'targetId': id
|
'targetId': id
|
||||||
});
|
});
|
||||||
if(target.text() == 'undefined')
|
if (target.text() == 'undefined')
|
||||||
target.html('');
|
target.html('');
|
||||||
var backtotop = $('<a class="back-to-top" href="#">Back to top</a>');
|
var backtotop = $('<a class="back-to-top" href="#">Back to top</a>');
|
||||||
var gotobottom = $('<a class="go-to-bottom" href="#">Go to bottom</a>');
|
var gotobottom = $('<a class="go-to-bottom" href="#">Go to bottom</a>');
|
||||||
|
@ -262,7 +262,7 @@ function smoothHashScroll() {
|
||||||
// prevent default anchor click behavior
|
// prevent default anchor click behavior
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
// animate
|
// animate
|
||||||
$('html, body').animate({
|
$('body, html').stop(true, true).animate({
|
||||||
scrollTop: $(hash).offset().top
|
scrollTop: $(hash).offset().top
|
||||||
}, 100, "linear", function () {
|
}, 100, "linear", function () {
|
||||||
// when done, add hash to url
|
// when done, add hash to url
|
||||||
|
|
Loading…
Reference in a new issue