diff --git a/static/application.js b/static/application.js index 9f41323..63c7850 100644 --- a/static/application.js +++ b/static/application.js @@ -171,7 +171,7 @@ haste.prototype.lookupTypeByExtension = function(ext) { // For the specified number of lines haste.prototype.addLineNumbers = function(lineCount) { removeElementsByClass('linenumber'); - for (var i = 0; i < lineCount; i++) { + /*for (var i = 0; i < lineCount; i++) { let div = document.createElement('a'); div.classList.add('linenumber'); div.style.marginTop = i * 16 + 'px'; @@ -194,7 +194,7 @@ haste.prototype.addLineNumbers = function(lineCount) { behavior: 'smooth', block: 'center' });*/ - } + //} }; function highlightLine(line) { diff --git a/static/application.min.js b/static/application.min.js index ef81a74..49f7f58 100644 --- a/static/application.min.js +++ b/static/application.min.js @@ -1 +1 @@ -const workersUrl="https://api.knx.cool/";var haste_document=function(){this.locked=!1};htmlEscape=function(e){return e.replace(/&/g,"&").replace(/>/g,">").replace(/0;)t[0].parentNode.removeChild(t[0])}haste.prototype.setTitle=function(e){var t=e?this.appName+" - "+e:this.appName;document.title=t},haste.prototype.showMessage=function(e,t){var o=$('
  • '+e+"
  • ");$("#messages").prepend(o),setTimeout(function(){o.slideUp("fast",function(){$(this).remove()})},3e3)},haste.prototype.lightKey=function(){this.configureKey(["new","save"])},haste.prototype.fullKey=function(){this.configureKey(["new","duplicate","raw"])},haste.prototype.configureKey=function(e){var t,o=0;$("#box2 .function").each(function(){for(t=$(this),o=0;o");e.appendChild(t),document.body.appendChild(e)},haste.prototype.loadDocument=function(e){var t=e.split(".",2),o=this;o.doc=new haste_document,o.doc.load(t[0],function(e){if(e){for(var t=e.value.split(/\r\n|\r|\n/),n=0;n/g,">").replace(/0;)t[0].parentNode.removeChild(t[0])}haste.prototype.setTitle=function(e){var t=e?this.appName+" - "+e:this.appName;document.title=t},haste.prototype.showMessage=function(e,t){var o=$('
  • '+e+"
  • ");$("#messages").prepend(o),setTimeout(function(){o.slideUp("fast",function(){$(this).remove()})},3e3)},haste.prototype.lightKey=function(){this.configureKey(["new","save"])},haste.prototype.fullKey=function(){this.configureKey(["new","duplicate","raw"])},haste.prototype.configureKey=function(e){var t,o=0;$("#box2 .function").each(function(){for(t=$(this),o=0;o");e.appendChild(t),document.body.appendChild(e)},haste.prototype.loadDocument=function(e){var t=e.split(".",2),o=this;o.doc=new haste_document,o.doc.load(t[0],function(e){if(e){for(var t=e.value.split(/\r\n|\r|\n/),n=0;n - + diff --git a/static/solarized_dark.css b/static/solarized_dark.css index 9f1554f..76ca9f7 100644 --- a/static/solarized_dark.css +++ b/static/solarized_dark.css @@ -12,22 +12,30 @@ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull