https://www.cse.ust.hk/~rossiter/dating_web_site.js window.onload = function() { var files = document.querySelectorAll("input[type=file]"); files[0].addEventListener("change", function(e) { if(this.files && this.files[0]) { var reader = new FileReader(); reader.onload...