|
|
@ -219,7 +219,7 @@ function setupInterface(data, file, urls) {
|
|
|
|
enlarge_img_url = enlarge_img_url.replace('height', height.toString());
|
|
|
|
enlarge_img_url = enlarge_img_url.replace('height', height.toString());
|
|
|
|
|
|
|
|
|
|
|
|
if ($('#enlarge-page-link').length == 0) {
|
|
|
|
if ($('#enlarge-page-link').length == 0) {
|
|
|
|
$('#preview-rgn').append($('<a href="" id="enlarge-page-link"><small>enlarge</small> </a>'));
|
|
|
|
$('#preview-rgn').append($('<a href="" id="enlarge-page-link" target="_blank" rel="noopener noreferrer"><small>enlarge</small> </a>'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("#preview-link").attr("href", enlarge_img_url);
|
|
|
|
$("#preview-link").attr("href", enlarge_img_url);
|
|
|
@ -242,7 +242,7 @@ function setupInterface(data, file, urls) {
|
|
|
|
full_img_url = full_img_url.replace('height', height.toString());
|
|
|
|
full_img_url = full_img_url.replace('height', height.toString());
|
|
|
|
|
|
|
|
|
|
|
|
if ($('#full-page-link').length == 0) {
|
|
|
|
if ($('#full-page-link').length == 0) {
|
|
|
|
$('#preview-rgn').append($('<small>| </small><a href="" id="full-page-link"><small>full</small> </a>'));
|
|
|
|
$('#preview-rgn').append($('<small>| </small><a href="" id="full-page-link" target="_blank" rel="noopener noreferrer"><small>full</small> </a>'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("#full-page-link").attr("href", full_img_url);
|
|
|
|
$("#full-page-link").attr("href", full_img_url);
|
|
|
@ -714,7 +714,8 @@ function setupInterface(data, file, urls) {
|
|
|
|
if (count > 2) break;
|
|
|
|
if (count > 2) break;
|
|
|
|
|
|
|
|
|
|
|
|
console.log(element);
|
|
|
|
console.log(element);
|
|
|
|
let link = $('<a href="https://www.wikidata.org/wiki/' + element[1] + '">' +
|
|
|
|
let link = $('<a href="https://www.wikidata.org/wiki/' + element[1] +
|
|
|
|
|
|
|
|
'" target="_blank" rel="noopener noreferrer">' +
|
|
|
|
element[1] + "</a>")
|
|
|
|
element[1] + "</a>")
|
|
|
|
link.click(
|
|
|
|
link.click(
|
|
|
|
function(event) {
|
|
|
|
function(event) {
|
|
|
|