$(document).ready(function() { startPreview(true); }); function translateBaseHtmlPage() { var annotationsText = $.i18n( "annotationsText" ); $( '.annotationsText' ).text( annotationsText ); } function writeContentAndData(data, fileUrl, file, title, authors) { addStandardPreviewHeader(file,title, authors); var json = JSON.parse(data); $(".preview-note").text( json.total + " annotations, retrieved on " + file.creationDate); $("
").attr('id','incontext').addClass("btn btn-default").append( $("").attr("href", json.rows[0].links.incontext).text( "View Annotations In Context")).insertBefore($('.preview-header>.btn')[0]); // Order by TextPositionSelector.start json.rows.sort(annotationCompare); // Create header block var hypo = $(".hypothesis"); if (json.rows.length > 0) { var converter = new showdown.Converter({ extensions : [ 'xssFilter' ] }); hypo.html(""); //Display annotations var list = $("') .text(quote)) .append( $('') .html( converter .makeHtml(json.rows[row].text)))); var tags = ($('