PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` (function ($) { "use strict"; var $image = $(".image-crop > img") $($image).cropper({ aspectRatio: 1.618, preview: ".img-preview", done: function(data) { // Output the result data for cropping image. } }); var $inputImage = $("#inputImage"); if (window.FileReader) { $inputImage.change(function() { var fileReader = new FileReader(), files = this.files, file; if (!files.length) { return; } file = files[0]; if (/^image\/\w+$/.test(file.type)) { fileReader.readAsDataURL(file); fileReader.onload = function () { $inputImage.val(""); $image.cropper("reset", true).cropper("replace", this.result); }; } else { showMessage("Please choose an image file."); } }); } else { $inputImage.addClass("hide"); } $("#download").on('click', function() { window.open($image.cropper("getDataURL")); }); $("#zoomIn").on('click', function() { $image.cropper("zoom", 0.1); }); $("#zoomOut").on('click', function() { $image.cropper("zoom", -0.1); }); $("#rotateLeft").on('click', function() { $image.cropper("rotate", 45); }); $("#rotateRight").on('click', function() { $image.cropper("rotate", -45); }); $("#setDrag").on('click', function() { $image.cropper("setDragMode", "crop"); }); })(jQuery);