119 lines
1.9 KiB
HTML
119 lines
1.9 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en" dir="ltr">
|
||
|
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>Annotate a line animation</title>
|
||
|
<style media="screen">
|
||
|
#sample,
|
||
|
svg {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
bottom: 0;
|
||
|
right: 0;
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
font-family: sans-serif;
|
||
|
z-index: 2;
|
||
|
}
|
||
|
|
||
|
img {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
bottom: 0;
|
||
|
right: 0;
|
||
|
left: 0;
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
z-index: 1;
|
||
|
}
|
||
|
|
||
|
path {
|
||
|
fill: none;
|
||
|
stroke: gray;
|
||
|
stroke-width: 1mm;
|
||
|
stroke-linecap: round;
|
||
|
}
|
||
|
|
||
|
g.before path{
|
||
|
opacity: 0.5;
|
||
|
stroke: gray !important;
|
||
|
}
|
||
|
g.after path, path.before_in {
|
||
|
opacity: .1;
|
||
|
stroke: gray !important;
|
||
|
}
|
||
|
|
||
|
#wrapper {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
right: 0;
|
||
|
bottom: 0;
|
||
|
left: 0;
|
||
|
background: none;
|
||
|
}
|
||
|
|
||
|
.gray {
|
||
|
position: absolute;
|
||
|
background: rgba(255, 255, 255, 0.7);
|
||
|
}
|
||
|
|
||
|
html,
|
||
|
body {
|
||
|
height: 100%;
|
||
|
width: 100%;
|
||
|
margin: 0;
|
||
|
font-family: sans-serif;
|
||
|
}
|
||
|
|
||
|
.playlist {
|
||
|
position: absolute;
|
||
|
left: 0;
|
||
|
top: 0;
|
||
|
z-index: 50;
|
||
|
}
|
||
|
|
||
|
.playlist li{
|
||
|
cursor: pointer;
|
||
|
line-height: 1.5;
|
||
|
}
|
||
|
.playlist li:hover{
|
||
|
color: blue;
|
||
|
}
|
||
|
|
||
|
input[type='range']{
|
||
|
position: absolute;
|
||
|
z-index: 100;
|
||
|
bottom: 0;
|
||
|
left:0;
|
||
|
right: 0;width: 90%;
|
||
|
}
|
||
|
.scrubber{
|
||
|
position: absolute !important;
|
||
|
z-index: 100;
|
||
|
bottom: 30px;
|
||
|
left:0;
|
||
|
right: 0;width: 90%;
|
||
|
}
|
||
|
|
||
|
.noUi-horizontal .noUi-touch-area{
|
||
|
cursor:ew-resize;
|
||
|
}
|
||
|
</style>
|
||
|
<link rel="stylesheet" href="assets/nouislider-15.5.0.css">
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<div id='interface'>
|
||
|
</div>
|
||
|
<script src="assets/nouislider-15.5.0.js"></script>
|
||
|
<script src="assets/wNumb-1.2.0.min.js"></script>
|
||
|
<script src="annotate.js"></script>
|
||
|
<script type='text/javascript'>
|
||
|
const player = new Player(document.getElementById("interface"));
|
||
|
player.playlist('/files/');
|
||
|
</script>
|
||
|
</body>
|
||
|
|
||
|
</html>
|