chronodiagram/app/www/play.html

106 lines
1.6 KiB
HTML
Raw Permalink Normal View History

2021-11-22 20:54:04 +01:00
<!DOCTYPE html>
<html lang="en" dir="ltr">
2021-11-23 12:17:48 +01:00
<head>
<meta charset="utf-8">
<title>Play 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;
}
path.before_in {
opacity: .2;
}
2021-11-23 12:17:48 +01:00
#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;
}
2021-12-21 14:31:02 +01:00
input[type='range'] {
position: absolute;
z-index: 100;
bottom: 0;
2021-12-21 14:31:02 +01:00
left: 0;
right: 0;
width: 90%;
}
2021-12-21 14:31:02 +01:00
.scrubber {
position: absolute;
z-index: 100;
bottom: 0;
2021-12-21 14:31:02 +01:00
left: 0;
right: 0;
width: 90%;
}
2021-11-23 12:17:48 +01:00
</style>
<link rel="stylesheet" href="assets/nouislider-15.5.0.css">
2021-12-21 14:31:02 +01:00
<link rel="stylesheet" href="core.css">
2021-11-23 12:17:48 +01:00
</head>
<body>
<div id='interface'>
</div>
<script src="assets/nouislider-15.5.0.js"></script>
2021-11-23 12:17:48 +01:00
<script src="play.js"></script>
2021-12-21 14:31:02 +01:00
<script src="playlist.js"></script>
2021-11-23 12:17:48 +01:00
<script type='text/javascript'>
2021-12-21 14:31:02 +01:00
if (location.search) {
const player = new Player(
document.getElementById("interface"),
location.search.substring(1)
);
} else {
const playlist = new Playlist(document.getElementById("interface"), '/files/');
}
2021-11-23 12:17:48 +01:00
</script>
</body>
</html>