diff options
| author | Carson Fleming <cflems@cflems.net> | 2017-02-16 23:59:34 -0500 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2017-02-16 23:59:34 -0500 |
| commit | 4f12fecebcd3f2a5bc6a0e7cdf9c420af4ed435a (patch) | |
| tree | edd91e33b95d48022bca9ce8c0626a7a7879af93 /dash/js/profile.js | |
| parent | 5564b3a9cb432f1f7eb76bd325251312904bb893 (diff) | |
| download | bulletin-4f12fecebcd3f2a5bc6a0e7cdf9c420af4ed435a.tar.gz | |
Did the profile
Diffstat (limited to 'dash/js/profile.js')
| -rw-r--r-- | dash/js/profile.js | 14 |
1 files changed, 14 insertions, 0 deletions
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(); + }); +}); |
