This item is only available to the members of institutions that have purchased access. If you belong to such an institution please Log In
Use your personal account to save 'favourite' articles, chapters and books. Sign In now
Don't have a personal account yet? Sign Up now
Copy to clipboard is not supported by your browser. Please update your browser version or manually copy the content.
$articlemlacitations
Copy to clipboard is not supported by your browser. Please update your browser version or manually copy the content.
Copy to clipboard is not supported by your browser. Please update your browser version or manually copy the content.
Getting your document ready for printing...
'
);
$('#share_success_modal').fadeIn(300, function() {
$('html, body').animate({ scrollTop: 5 }, 500);
});
},
error: function (error) {
hideProgress();
},
});
}, 300);
}
});
$(document).on('click', ".share-clear-btn", function () {
$("#share-via-form-clone").find("input[type=text],input[type=email], textarea").val("");
$("#share-via-form-clone").find("#share-char-count-clone").text("500 characters remaining");
$("#share-via-form-clone").find(".err-msg").addClass("hide");
$("#share-via-form-clone").find("input").css("border", "solid #ccc 1px");
$("#share-btn-clone").removeClass("share-success").addClass("disabled-btn").attr("aria-disabled", "true");
$("#to-name-clone").focus();
if ($("#noCaptcha").length == 0) {
grecaptcha.reset();
}
});
function shareCaptchaSuccess() {
var $shareMandatory = $("#to-name-clone, #to-email-clone, #your-name-clone, #your-email-clone, #subject-clone");
shareValidate($shareMandatory);
}
function shareCaptchaExpire() {
var $shareMandatory = $("#to-name-clone, #to-email-clone, #your-name-clone, #your-email-clone, #subject-clone");
shareValidate($shareMandatory);
}
var hostName = window.location.hostname;
var publishUrl = $("#publishUrl").val();
var hostVariable = $("#hostVariable").val();
if (publishUrl) {
if (!~hostName.indexOf(hostVariable)) {
$('body').append('
');
$(".capcha").remove();
}
}
$(document).on('keyup change', '#share-text-area-clone', function(e) {
var maxchars = 500;
var textLength = $(this).val().length;
$(this).val($(this).val().substring(0, maxchars));
var textLength = $(this).val().length;
remain = maxchars - parseInt(textLength);
if ($('#share-char-count-clone').length >= 0) {
$('#share-char-count-clone').text(remain+ " characters remaining");
}
var maxlength = 500;
$("#messageBoxFull").empty();
if ($(this).val().length >= maxlength) {
$("#messageBoxFull").append("
You have exceeded the character limit of " + maxlength + " characters");
}
});
$(document).on('keydown', '#share-text-area-clone', function(e) {
if($(this).val().length >= 500) {
var key = e.keyCode;
var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
if (!isSafari) {
if ( ((key >= 65 && key <= 90) || (key >= 48 && key <= 57) || (key >= 96 && key <= 111) || (key >= 186 && key <= 191)) && (!e.ctrlKey) ) {
//if (e.which != 0 && e.which != 8 && e.which != 46) {
e.preventDefault();
}
} else {
if (((key >= 65 && key <= 90) || (key >= 48 && key <= 57) || (key >= 96 && key <= 111) || (key >= 186 && key <= 191)) && (!e.metaKey) ) {
//if (e.which != 0 && e.which != 8 && e.which != 46) {
e.preventDefault();
}
}
}
});