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