remove sample annotation

This commit is contained in:
rlx 2019-01-24 10:08:01 +05:30
parent 2103bce93b
commit 8534eb9b69

View file

@ -337,7 +337,6 @@ txtjs.renderText = function(text) {
html = html.replace().replace(/\r\n/g, '\n').replace(/[\r\n]/g, '<br>') html = html.replace().replace(/\r\n/g, '\n').replace(/[\r\n]/g, '<br>')
txtjs.html = Ox.encodeHTMLEntities(text).replace(/\r\n/g, '\n').replace(/[\r\n]/g, '<br>') txtjs.html = Ox.encodeHTMLEntities(text).replace(/\r\n/g, '\n').replace(/[\r\n]/g, '<br>')
window.addEventListener('resize', onResize) window.addEventListener('resize', onResize)
window.addEventListener('resizeend', onResizeend)
window.addEventListener('scroll', onScroll) window.addEventListener('scroll', onScroll)
document.addEventListener('keydown', function(e) { document.addEventListener('keydown', function(e) {
console.log(e.keyCode) console.log(e.keyCode)
@ -420,14 +419,10 @@ txtjs.renderText = function(text) {
txtjs.renderSVGs() txtjs.renderSVGs()
txtjs.mark(txtjs.notes) txtjs.mark(txtjs.notes)
}) })
}
function onResizeend() {
} }
function onScroll() { function onScroll() {
scrollElement.scrollTop = (window.pageYOffset - margin + 16) * factor scrollElement.scrollTop = (window.pageYOffset - margin + 16) * factor
} }
txtjs.mark([{id: 'A', position: '417:468', editable: false}])
} }
txtjs.selectNextNote = function(direction) { txtjs.selectNextNote = function(direction) {