[fix] index

This commit is contained in:
Alban 2019-11-22 23:12:53 +01:00
parent 46ba08519b
commit b95d02c411

View File

@ -237,6 +237,7 @@ document.getElementById("background-image").addEventListener("change", function(
updateCanvas(this.value); updateCanvas(this.value);
}, false); }, false);
/*
// When the user clicks on upload a custom picture // When the user clicks on upload a custom picture
document.getElementById('custompicture').addEventListener("change", function(e){ document.getElementById('custompicture').addEventListener("change", function(e){
var reader = new FileReader(); var reader = new FileReader();
@ -262,7 +263,7 @@ document.getElementById("background-image").addEventListener("change", function(
reader.readAsDataURL(e.target.files[0]); reader.readAsDataURL(e.target.files[0]);
} }
}, false); }, false);
*/
// When the user selects a picture that has been added and press the DEL key // When the user selects a picture that has been added and press the DEL key
// The object will be removed ! // The object will be removed !
document.addEventListener("keydown", function(e) { document.addEventListener("keydown", function(e) {
@ -274,6 +275,7 @@ document.getElementById("background-image").addEventListener("change", function(
} }
}, false); }, false);
/*
// Export the image // Export the image
function saveImage(e) { function saveImage(e) {
this.href = canvas.toDataURL({ this.href = canvas.toDataURL({
@ -284,7 +286,7 @@ function saveImage(e) {
} }
var imageSaver = document.getElementById('lnkDownload'); var imageSaver = document.getElementById('lnkDownload');
imageSaver.addEventListener('click', saveImage, false); imageSaver.addEventListener('click', saveImage, false);
*/
$( "#montage" ).on("submit",function(e){ $( "#montage" ).on("submit",function(e){
var dataURL = canvas.toDataURL(); var dataURL = canvas.toDataURL();
var div = $("<div class=progress>Upload: <span id=counter></span>%</div>") var div = $("<div class=progress>Upload: <span id=counter></span>%</div>")