mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-21 04:23:09 -07:00
Scroll into line element
This commit is contained in:
parent
ed62ee6110
commit
f5211d6ffe
2 changed files with 3 additions and 3 deletions
|
@ -180,10 +180,10 @@ haste.prototype.addLineNumbers = function(lineCount) {
|
||||||
const hash = window.location.hash.substring(1);
|
const hash = window.location.hash.substring(1);
|
||||||
highlightNew(getLineElement(hash));
|
highlightNew(getLineElement(hash));
|
||||||
|
|
||||||
/*document.getElementById('line' + hash).scrollIntoView({
|
getLineElement(hash).scrollIntoView({
|
||||||
behavior: 'smooth',
|
behavior: 'smooth',
|
||||||
block: 'center'
|
block: 'center'
|
||||||
});*/
|
});
|
||||||
}
|
}
|
||||||
/*for (var i = 0; i < lineCount; i++) {
|
/*for (var i = 0; i < lineCount; i++) {
|
||||||
let div = document.createElement('a');
|
let div = document.createElement('a');
|
||||||
|
|
2
static/application.min.js
vendored
2
static/application.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue