open links in new tab

pull/54/head
Kai 4 years ago
parent dbbf852375
commit 62f85777b3

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>neat</title>
<base href="neat.html" target="_blank">
<base href="neat.html" target="_blank" rel="noopener noreferrer">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/simple-keyboard@latest/build/css/index.css">
@ -78,8 +78,8 @@
<div class="col-8">
<div class="row">
<div class="col text-center">
<h3><a href="https://github.com/qurator-spk/neat" target="_blank" tabindex="-1">neat</a>: neat annotation tool</h3>
<a href="https://github.com/qurator-spk/neat/blob/master/README.md#2-user-guide" target="_blank" tabindex="-1">User Guide</a> | <a href="https://github.com/qurator-spk/neat/blob/master/Annotation_Guidelines.pdf" target="_blank" tabindex="-1">Annotation Guidelines</a> | <a href="https://github.com/qurator-spk/neat/issues" target="_blank" tabindex="-1">Issues</a><hr>
<h3><a href="https://github.com/qurator-spk/neat" target="_blank" rel="noopener noreferrer" tabindex="-1">neat</a>: neat annotation tool</h3>
<a href="https://github.com/qurator-spk/neat/blob/master/README.md#2-user-guide" target="_blank" rel="noopener noreferrer" tabindex="-1">User Guide</a> | <a href="https://github.com/qurator-spk/neat/blob/master/Annotation_Guidelines.pdf" target="_blank" tabindex="-1">Annotation Guidelines</a> | <a href="https://github.com/qurator-spk/neat/issues" target="_blank" tabindex="-1">Issues</a><hr>
</div>
</div>
</div>

@ -219,7 +219,7 @@ function setupInterface(data, file, urls) {
enlarge_img_url = enlarge_img_url.replace('height', height.toString());
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);
@ -242,7 +242,7 @@ function setupInterface(data, file, urls) {
full_img_url = full_img_url.replace('height', height.toString());
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);
@ -714,7 +714,8 @@ function setupInterface(data, file, urls) {
if (count > 2) break;
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>")
link.click(
function(event) {

Loading…
Cancel
Save