mirror of
https://github.com/qurator-spk/neat.git
synced 2025-07-11 11:29:52 +02:00
open links in new tab
This commit is contained in:
parent
dbbf852375
commit
62f85777b3
2 changed files with 7 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>neat</title>
|
<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"
|
<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">
|
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">
|
<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="col-8">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col text-center">
|
<div class="col text-center">
|
||||||
<h3><a href="https://github.com/qurator-spk/neat" target="_blank" tabindex="-1">neat</a>: neat annotation tool</h3>
|
<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" 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>
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
7
neat.js
7
neat.js
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue