D:\host\scoreman.in\assisiinterschool2025closed\jcrop.js
$(document).on("pagecreate", function () {
$(".cropit-image-zoom-input").on('slidestop', function (event) {
// console.log("slidestop event fired");
// console.log("zoomable"+$('.image-editor').cropit('isZoomable')+$(".cropit-image-zoom-input").val());
$('.image-editor').cropit('zoom', $(".cropit-image-zoom-input").val());
});
$(".cropit-image-zoom-input1").on('slidestop', function (event) {
// console.log("slidestop event fired");
// console.log("zoomable"+$('.image-editor').cropit('isZoomable')+$(".cropit-image-zoom-input").val());
$('#image-editor2').cropit('zoom', $(".cropit-image-zoom-input1").val());
});
});
$(function() {
// $('.image-editor').cropit();
$('.image-editor').cropit({
maxZoom: 2,
smallImage: 'stretch',
});
$('.image-editor').cropit('initialZoom', 'fit');
$('#image-editor2').cropit({
maxZoom: 2,
smallImage: 'stretch',
});
$('#image-editor2').cropit('initialZoom', 'fit');
$('#image-editor2').cropit('previewSize', { width:248, height: 350.75});
$("#slider-step").on('slidestop', function (event) {
console.log("slidestop event fired");
});
//$zoomSlider= $('.image-editor').find('input.cropit-image-zoom-input');
$('.rotate-cw').click(function() {
$('.image-editor').cropit('rotateCW');
});
$('.rotate-ccw').click(function() {
$('.image-editor').cropit('rotateCCW');
});
$('#dobrotcw').click(function() {
$('#image-editor2').cropit('rotateCW');
});
$('#dobrotccw').click(function() {
$('#image-editor2').cropit('rotateCCW');
});
/* $('#register-form').submit(function() {
// Move cropped image data to hidden input
// var w = window.open();
var imageData = $('.image-editor').cropit('export');
$('.hidden-image-data').val(imageData);
if(checkform()==false)
{
return false;
}
// Print HTTP request params
// var formValue = $(this).serialize();
// $('#result-data').text(formValue);
$.mobile.loading( "show", {
text: "Submitting...",
textVisible: true,
theme: "z",
html: ""
});
$.ajax({
url: 'register.php',
type: 'post',
dataType: 'text',
data: $('#entryform').serialize(),
success: function(data) {
alert(data);
// $(w.document.body).html(data);
clearform();
location.reload();
}
});
// Prevent the form from actually submitting
return false;
}); */
});