{"size": 754, "ext": "js", "max_stars_repo_path": "js/main.js", "max_stars_repo_name": "SotGE/Web-Run-Python", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/main.js", "max_issues_repo_name": "SotGE/Web-Run-Python", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/main.js", "max_forks_repo_name": "SotGE/Web-Run-Python", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.3902439024, "max_line_length": 64, "alphanum_fraction": 0.7082228117}
"use strict";


/*
	Создано SotGE Ltd.
	Автор: Сорокин Максим Евгеньевич
*/


Dropzone.autoDiscover = false;


let myDropzone = new Dropzone("#upload-main__dropzone", {
	paramName: "file",
	acceptedFiles: ".jpg, .jpeg, .png",
	dictDefaultMessage: "Перетащите изображения сюда для загрузки",
	maxFiles: 10,
	maxFilesize: 5,
	addRemoveLinks: true,
	dictRemoveFile: "Удалить",
	autoProcessQueue: false,
	parallelUploads: 1
});


myDropzone.on("success", function (file) {
	console.log(file.xhr.response);
	$('#upload-main__result').empty();
	$('#upload-main__result').append(file.xhr.response);
});


myDropzone.on("complete", function (file) {
	myDropzone.removeFile(file);
});


$('#upload-main__send').click(function () {
	myDropzone.processQueue();
});
