2022-01-19 10:55:30 +01:00
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<title>Annotations</title>
|
2022-05-30 15:02:28 +02:00
|
|
|
<link rel="stylesheet" href="svganim.css">
|
2022-01-19 10:55:30 +01:00
|
|
|
<style>
|
|
|
|
body {
|
2022-05-30 15:02:28 +02:00
|
|
|
background: rgb(39, 40, 41);
|
|
|
|
font-family: sans-serif;
|
|
|
|
color: white
|
2022-01-19 10:55:30 +01:00
|
|
|
}
|
|
|
|
|
2022-06-08 13:28:36 +02:00
|
|
|
#tags {
|
|
|
|
font-size: 80%;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#tags li {
|
2022-06-08 17:26:30 +02:00
|
|
|
line-height: 1.5;
|
2022-06-08 13:28:36 +02:00
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#tags .tag-id-root {
|
|
|
|
list-style: none;
|
|
|
|
;
|
|
|
|
}
|
|
|
|
|
|
|
|
#tags .tag-id-root>ul {
|
2022-01-19 10:55:30 +01:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2022-06-08 13:28:36 +02:00
|
|
|
#tags li>div,
|
|
|
|
#tags li.add-tag {
|
2022-06-08 17:26:30 +02:00
|
|
|
cursor: pointer;
|
2022-06-08 13:28:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#tags .tag-id-root>div {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-06-08 17:26:30 +02:00
|
|
|
/* #tags li:hover>ul>li.add-tag {
|
2022-06-08 13:28:36 +02:00
|
|
|
visibility: visible;
|
2022-01-19 10:55:30 +01:00
|
|
|
;
|
2022-06-08 17:26:30 +02:00
|
|
|
} */
|
|
|
|
#tags li.selected > ul>li.add-tag {
|
|
|
|
display: block;
|
2022-01-19 10:55:30 +01:00
|
|
|
}
|
|
|
|
|
2022-06-08 17:26:30 +02:00
|
|
|
#tags > li > ul >li.add-tag {
|
|
|
|
display: block;
|
|
|
|
;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-06-08 13:28:36 +02:00
|
|
|
#tags .add-tag {
|
2022-06-08 17:26:30 +02:00
|
|
|
display: none;
|
2022-06-08 13:28:36 +02:00
|
|
|
;
|
|
|
|
color: lightgray;
|
|
|
|
font-size: 80%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#tags input[type="color"] {
|
|
|
|
cursor: pointer;
|
|
|
|
width: 15px;
|
|
|
|
height: 15px;
|
|
|
|
padding: 0;
|
|
|
|
border: solid 1px black;
|
|
|
|
border-radius: 2px;
|
2022-06-08 17:26:30 +02:00
|
|
|
vertical-align: middle;
|
2022-06-08 13:28:36 +02:00
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2022-06-08 17:26:30 +02:00
|
|
|
#tags li:hover > div > input.rm-tag{
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
#tags li div{
|
|
|
|
position:relative
|
|
|
|
}
|
|
|
|
#tags input.rm-tag:hover{
|
|
|
|
color: red;
|
|
|
|
transform: rotate(20deg);
|
|
|
|
}
|
|
|
|
#tags input.rm-tag{
|
|
|
|
/* display: none; */
|
|
|
|
position:absolute;
|
|
|
|
right:0;
|
|
|
|
top:0;
|
|
|
|
padding:0;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
color: white;
|
|
|
|
cursor:pointer;
|
|
|
|
}
|
2022-06-08 13:28:36 +02:00
|
|
|
|
|
|
|
#tags .selected>div {
|
|
|
|
background: lightblue
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
summary h2 {
|
2022-05-30 15:02:28 +02:00
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2022-06-08 13:28:36 +02:00
|
|
|
details[open] summary {
|
2022-05-30 15:02:28 +02:00
|
|
|
color: rgb(224, 196, 196);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* details ul{
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
details[open] ul{
|
|
|
|
display: block;;
|
|
|
|
} */
|
|
|
|
|
2022-06-08 13:28:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
#annotation_manager {
|
|
|
|
display: grid;
|
|
|
|
gap: 20px;
|
|
|
|
grid-template-columns: 200px auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
#tags {
|
|
|
|
grid-column: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#annotations {
|
|
|
|
grid-column: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
#annotations ul {
|
|
|
|
grid-template-columns: repeat(auto-fill, 320px);
|
|
|
|
grid-gap: 20px;
|
|
|
|
display: grid;
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#annotations li {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#annotations img {
|
2022-01-19 10:55:30 +01:00
|
|
|
/* width: 400px; */
|
|
|
|
background: white;
|
2022-05-30 15:02:28 +02:00
|
|
|
width: 300px;
|
|
|
|
height: 200px;
|
|
|
|
cursor: pointer;
|
2022-06-08 13:28:36 +02:00
|
|
|
padding: 10px;
|
2022-05-30 15:02:28 +02:00
|
|
|
}
|
|
|
|
|
2022-06-08 13:28:36 +02:00
|
|
|
#annotations .svganim_player {
|
2022-05-30 15:02:28 +02:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
width: 300px;
|
|
|
|
height: 200px;
|
|
|
|
overflow: hidden;
|
2022-06-08 13:28:36 +02:00
|
|
|
padding: 10px;
|
2022-05-30 15:02:28 +02:00
|
|
|
|
|
|
|
background: white;
|
|
|
|
}
|
|
|
|
|
2022-06-08 13:28:36 +02:00
|
|
|
#annotations .svganim_player svg {
|
2022-05-30 15:02:28 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2022-06-08 13:28:36 +02:00
|
|
|
#annotations .svganim_player.play:not(.loading) .controls {
|
2022-05-30 15:02:28 +02:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2022-06-08 13:28:36 +02:00
|
|
|
#annotations .svganim_player:hover .controls {
|
2022-05-30 15:02:28 +02:00
|
|
|
visibility: visible !important;
|
2022-01-19 10:55:30 +01:00
|
|
|
}
|
2022-06-08 13:28:36 +02:00
|
|
|
|
2022-01-19 10:55:30 +01:00
|
|
|
</style>
|
2022-05-30 15:02:28 +02:00
|
|
|
<script src="assets/nouislider-15.5.0.js"></script>
|
|
|
|
<script src="assets/wNumb-1.2.0.min.js"></script>
|
|
|
|
<script src="annotate.js"></script>
|
2022-06-08 13:28:36 +02:00
|
|
|
<script src="annotations.js"></script>
|
2022-01-19 10:55:30 +01:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2022-06-08 13:28:36 +02:00
|
|
|
<div id="annotation_manager">
|
|
|
|
<ul id="tags"></ul>
|
|
|
|
<div id="annotations"></div>
|
|
|
|
</div>
|
2022-01-19 11:15:55 +01:00
|
|
|
|
|
|
|
<hr>
|
2022-03-29 15:07:18 +02:00
|
|
|
<a href="?refresh=1">Reload index</a>
|
2022-01-19 10:55:30 +01:00
|
|
|
</body>
|
|
|
|
<script>
|
2022-06-08 13:28:36 +02:00
|
|
|
const am = new AnnotationManager(document.getElementById('annotation_manager'), 'tags.json');
|
2022-01-19 10:55:30 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
</html>
|