remove debug

This commit is contained in:
Walter Hupfeld 2024-03-12 20:47:54 +01:00
parent ce1eddd4bb
commit 691aaa0bdd

View File

@ -4,7 +4,7 @@
* Autor: Walter Hupfeld, Hamm
* E-Mail: info@hupfeld-software.de
* Version: 3.0
* Datum: 11.03.2024
* Datum: 12.03.2024
******************************** */
// Starte die Session
@ -451,7 +451,6 @@
var _URL = window.URL || window.webkitURL;
if ((file = this.files[0])) {
var file = this.files[0];
console.log(file["size"]);
var fileType = file["type"];
var validImageTypes = ["image/gif", "image/jpeg", "image/png"];
if ($.inArray(fileType, validImageTypes) < 0) {
@ -466,11 +465,10 @@
img.onload = function () {
image_ok = (this.width<4000 && this.height<4000 && this.width>100 && this.height>100);
//console.log("Breite:" + this.width + " Höhe: " + this.height);
/*
if (!image_ok) {
alert("Bilder dürfen maximal 2000 x 2000 Pixel groß sein.\n"
alert("Bilder sollten maximal 4000 x 4000 Pixel groß sein.\n"
+"Breite:" + this.width + " Höhe: " + this.height)
}*/
}
};
img.src = objectUrl;
}