diff --git a/public/offline.html b/public/offline.html index 2e643a625..4cfafc244 100644 --- a/public/offline.html +++ b/public/offline.html @@ -67,6 +67,11 @@ margin-top: 30px; } + #btn-clear, .paletteSelector select { + height: 30px; + cursor: pointer; + } + .colors { z-index: 2; margin: 0 20px; @@ -176,6 +181,8 @@ + + @@ -334,6 +341,10 @@ render(palettes[activePalette]) } + document.getElementById('btn-clear').addEventListener('click', (e) => { + context.clearRect(0, 0, canvas.width, canvas.height); + }); + // Initialization when page is ready to load, runs once (function() { render(palettes[activePalette])