From 8534eb9b6945efd3a1ba349361b43794bdded2f7 Mon Sep 17 00:00:00 2001 From: rlx Date: Thu, 24 Jan 2019 10:08:01 +0530 Subject: [PATCH] remove sample annotation --- txt.js/txt.js | 5 ----- 1 file changed, 5 deletions(-) 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) {