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