Lint website (#1519)

* Lint website

* Add comment to empty_thead.js
This commit is contained in:
ylemkimon
2018-07-28 23:49:36 +09:00
committed by Erik Demaine
parent 4114288403
commit db2aecce24
10 changed files with 248 additions and 199 deletions

View File

@@ -1,3 +1,5 @@
/* eslint-disable no-var */
/* global katex: false */
window.startup = function() {
var tex = document.getElementsByClassName("tex");
Array.prototype.forEach.call(tex, function(el) {
@@ -10,10 +12,10 @@ window.startup = function() {
function doDemo() {
try {
katex.render(demoInput.value, demoOutput, {
displayMode: true
displayMode: true,
});
} catch(err) {
while(demoOutput.lastChild) {
} catch (err) {
while (demoOutput.lastChild) {
demoOutput.removeChild(demoOutput.lastChild);
}
var msg = document.createTextNode(err.message);