var password37126374 = "";
var footermsg37126374 = 'Feel free to download any of the documents to your computer.';
$(document).ready(function () {
if (footermsg37126374.length == 0) {
$('body').find('div.ts-panel-footer37126374').addClass("hidden");
}
});
$(document).on('keyup', function (event) {
if (event.Handled) {
return;
}
else {
// the block of codes to be executed on the key press
// should added here.
if (event.target.className.indexOf('weird-text') > 0) {
if (event.keyCode == 13) {
$('.ts-dialog-submit').click();
}
}
}
event.Handled = true;
});
function getDocument37126374() {
setTimeout(function () {
// [1] because bootbox clones
$('#ctl27_ctl06_ctl00_input_password')[1].focus();
}, 600);
bootbox.dialog({
closeButton: false,
message: $('.divEnterPassword37126374').html(),
title: "
Secure Document Access",
buttons: {
Cancel: {
label: "Cancel",
className: "btn-light",
callback: function () {
setTimeout(function () {
$('div.alert-danger').hide();
}, 0);
}
},
main: {
label: "Submit",
className: "ts-dialog-submit btn btn-primary",
callback: function (e) {
e.preventDefault();
// [1] because bootbox clones
password37126374 = $('.input_password37126374')[1].value;
$.ajax({
type: "POST",
url: "/aspx/Blob2/Blobs/BlobWebService.aspx/GetDocumentLink",
data: '{blobid: "' + 37126374 + '", pwd: "' + password37126374 + '" }',
contentType: "application/json; charset=utf-8",
dataType: "json",
async: true,
cache: false,
dataType: "json",
success: OnSuccess37126374,
failure: OnErrorReturn37126374,
error: OnErrorReturn37126374
});
return false;
}
}
}
});
function OnErrorReturn37126374(response) {
// getDocument37126374();
setTimeout(function () {
$('div.alert-danger').slideDown('slow');
}, 400);
setTimeout(function () {
// [1] because bootbox clones
$('.input_password37126374')[1].focus();
}, 500);
return false;
}
function OnSuccess37126374(response) {
var obj = $.parseJSON(response.d)[0];
if (obj.results == 'success') {
$('.doclist37126374').find(".ts-doc-btn").each(function () {
if ($(this).attr("href") == "#") {
$(this).attr("href", $(this).attr("data-tstarget"));
$(this).removeAttr("onclick");
$(this).addClass("btn-success").removeClass("btn-info");
}
});
$('.doclist37126374').find(".ts-doc-link").each(function () {
if ($(this).attr("href") == "#") {
$(this).attr("href", $(this).attr("data-tstarget"));
$(this).removeAttr("onclick");
}
});
$('.doclist37126374').find(".ts-doc-text").each(function () {
$(this).addClass("text-success").removeClass("text-info");
});
bootbox.hideAll();
bootbox.dialog({
closeButton: false,
message: "
Your file(s) are now ready to download.
",
title: "Secure Document Access",
buttons: {
main: {
label: "Submit",
className: "btn btn-primary"
}
}
});
}
}
}
This document is password protected. You must enter a password in order to access.
Thank you. You may now download the documents!
Good guess. But, that isn't the password.