diff --git a/includes/script.js b/includes/script.js index 28dd653..546df47 100644 --- a/includes/script.js +++ b/includes/script.js @@ -284,7 +284,7 @@ $(document).ready(function() { } }); }); - + document.getElementById('room-output').getContext('2d').putImageData(imageData, 0, 0); }); }, 30); @@ -311,7 +311,7 @@ $(document).ready(function() { readFile(this); }); - $('#palette input').on('change', function() { + $(document).on('change', '#palette input', function() { // if this is a colour input, update the palette if ($(this).attr('type') === 'color') { palette[$(this).attr('name')] = hexToColour($(this).val());