From 4f12fecebcd3f2a5bc6a0e7cdf9c420af4ed435a Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Thu, 16 Feb 2017 23:59:34 -0500 Subject: Did the profile --- dash/js/profile.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 dash/js/profile.js (limited to 'dash/js') diff --git a/dash/js/profile.js b/dash/js/profile.js new file mode 100644 index 0000000..9c83aa5 --- /dev/null +++ b/dash/js/profile.js @@ -0,0 +1,14 @@ +$(function () { + $('#chpic').change(function() { + if (this.files && this.files[0]) { + var reader = new FileReader(); + reader.onload = function (e) { + $('#propic img').attr('src', e.target.result); + } + reader.readAsDataURL(this.files[0]); + } + }); + $('.private #propic').click(function () { + $('#chpic').click(); + }); +}); -- cgit v1.2.3