You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
575 B
JavaScript

$(document).ready(function() {
startPreview(false);
});
function translateBaseHtmlPage() {
var imagePreviewText = $.i18n( "imagePreviewText" );
$( '.imagePreviewText' ).text( imagePreviewText );
}
function writeContent(fileUrl, file, title, authors) {
addStandardPreviewHeader(file, title, authors);
$('.preview').append($('<img/>').attr('style','max-width:100%').attr('src',fileUrl).attr('id','previewImage'));
$("#previewImage")
.wrap('<span style="display:inline-block"></span>')
.css('display', 'block')
.parent()
.zoom({on:'grab'});
}