From e6e1492230d8534cdb80b50b1cc6fd849e0e0120 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 25 Dec 2015 20:41:45 +0000 Subject: [PATCH] Change size on image upload --- src/js/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/app.js b/src/js/app.js index 0b811d1..f9233de 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -26,7 +26,11 @@ $('footer .btn').click(function(e) { $('footer input').on('change', function () { const file = $(this)[0].files[0]; let reader = new FileReader(); - reader.onload = function(e) { $('#compass').attr('src', e.target.result); }; + reader.onload = function(e) { + $('#compass').attr('src', e.target.result); + $('#compass').css('width', '78vw'); + $('.header').hide(); + }; reader.readAsDataURL(file); });