diff --git a/static/src/js/lot_hero.js b/static/src/js/lot_hero.js index adafda01..03512e33 100644 --- a/static/src/js/lot_hero.js +++ b/static/src/js/lot_hero.js @@ -79,7 +79,7 @@ function hero() { } } - let drawLine = (ind, context, startX, startY, endX, endY, color) => { + function drawLine(ind, context, startX, startY, endX, endY, color) { let dx = startX - endX; let dy = startY - endY; @@ -95,7 +95,7 @@ function hero() { let yAdjust = (endY - startY) / increments; let counter = 1; - let line = () => { + function line() { context.beginPath(); context.lineWidth = 1.9; context.moveTo(x, y); @@ -112,7 +112,7 @@ function hero() { timeouts[ind] = window.setTimeout(line, delay); } - let drawCircle = (context, x, y, radius, color) => { + function drawCircle(context, x, y, radius, color) { context.beginPath(); context.fillStyle = color; context.arc(x, y, radius, 0, 2 * Math.PI);