Compare commits
No commits in common. "de95c5afa0f04569f0cf3c84b6b300ceedf4f78d" and "666b91b3c7583e808d9540b744a017020f2c4788" have entirely different histories.
de95c5afa0
...
666b91b3c7
2 changed files with 36 additions and 102 deletions
|
@ -93,17 +93,14 @@
|
|||
|
||||
}
|
||||
|
||||
.controls button.paused,
|
||||
.controls button.playing {
|
||||
.controls button.paused, .controls button.playing{
|
||||
position: absolute;
|
||||
left: 100%;
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
.controls button.paused::before{
|
||||
content: '⏵';
|
||||
}
|
||||
|
||||
.controls button.playing::before{
|
||||
content: '⏸';
|
||||
}
|
||||
|
@ -138,7 +135,6 @@
|
|||
.tags li{
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tags .subtags{
|
||||
padding:0;
|
||||
font-size: 80%;
|
||||
|
@ -146,7 +142,6 @@
|
|||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.tags .subtags .tag{
|
||||
padding: 2px;
|
||||
}
|
||||
|
@ -187,7 +182,6 @@
|
|||
border: solid 2px #601be0;
|
||||
|
||||
}
|
||||
|
||||
/* .noUi-handle:focus::before, .noUi-handle:focus::after{
|
||||
background: #601be0;
|
||||
} */
|
||||
|
@ -200,7 +194,6 @@
|
|||
vertical-align: middle;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.tags .subtags .tag span{
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
|
@ -254,7 +247,6 @@
|
|||
.noUi-horizontal .noUi-touch-area {
|
||||
cursor: ew-resize;
|
||||
}
|
||||
|
||||
#interface .noUi-horizontal .noUi-tooltip{
|
||||
/* tooltips go below the buttons */
|
||||
bottom:auto;
|
||||
|
@ -266,27 +258,19 @@
|
|||
background:black;
|
||||
color: white;
|
||||
position: relative;
|
||||
width: 100px;
|
||||
/* as wide as audio controls only */
|
||||
width: 100px; /* as wide as audio controls only */
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
left: -50px;
|
||||
}
|
||||
|
||||
.audioconfig:hover{
|
||||
width: auto;
|
||||
left: 0px;
|
||||
}
|
||||
|
||||
.audioconfig select,
|
||||
.audioconfig input {
|
||||
.audioconfig select, .audioconfig input{
|
||||
margin:10px;
|
||||
}
|
||||
|
||||
audio{
|
||||
vertical-align: middle;
|
||||
width: 100px;
|
||||
/* hides seek head */
|
||||
width: 100px; /* hides seek head */
|
||||
}
|
||||
|
||||
.playlist img{
|
||||
|
@ -297,41 +281,6 @@
|
|||
display: block;
|
||||
}
|
||||
|
||||
.help {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 10px;
|
||||
left: 70px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
font-size: 8pt;
|
||||
}
|
||||
|
||||
.help li {
|
||||
display: inline-block;
|
||||
color: gray;
|
||||
margin-right: 10px;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.help .key {
|
||||
padding: 5px;
|
||||
background-color: aliceblue;
|
||||
border: solid 1px black;
|
||||
color: black;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#interface:not(.selected-annotation) .help .esc1 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#interface.selected-annotation .help .esc2 {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="assets/nouislider-15.5.0.css">
|
||||
<link rel="stylesheet" href="core.css">
|
||||
|
@ -339,18 +288,6 @@
|
|||
|
||||
<body>
|
||||
<div id='interface'>
|
||||
<ul class="help">
|
||||
<li><span class='key'>Space</span> play/pause</li>
|
||||
<li><span class='key'>Shift</span> + <span class='key'>→</span> Skip 1s</li>
|
||||
<li><span class='key'>Shift</span> + <span class='key'>Ctrl</span> + <span class='key'>→</span>
|
||||
Skip 10s</li>
|
||||
<li><span class='key'>i / o</span> set in/out-point</li>
|
||||
<li><span class='key'>Shift</span> + <span class='key'>i / o</span> Jump to in/out-point</li>
|
||||
<li><span class='key'>← / →</span> Shift selected point 1s</li>
|
||||
<li><span class='key'>PgUp/Dwn</span> Shift selected point 10s</li>
|
||||
<li class="esc"><span class='key'>Esc</span> <span class='esc1'>Deselect annotation</span><span
|
||||
class="esc2">reset in & out-points</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<script src="assets/nouislider-15.5.0.js"></script>
|
||||
<script src="assets/wNumb-1.2.0.min.js"></script>
|
||||
|
|
|
@ -525,7 +525,6 @@ class Annotator extends EventTarget {
|
|||
'max': sliderMax,
|
||||
},
|
||||
keyboardDefaultStep: (sliderMax - sliderMin) / 1000,
|
||||
keyboardPageMultiplier: 10, // page up/down 10s
|
||||
tooltips: [
|
||||
this.formatter,
|
||||
this.formatter
|
||||
|
@ -665,15 +664,13 @@ class Annotator extends EventTarget {
|
|||
if (ev.key == 'ArrowLeft' && ev.shiftKey) {
|
||||
const p = this._paused;
|
||||
console.log(p);
|
||||
const diff = ev.ctrlKey ? 10000 : 1000;
|
||||
this.scrubTo(this._currentTimeMs - diff);
|
||||
this.scrubTo(this._currentTimeMs - 1000);
|
||||
if (!p) { console.log('play!'); this.play(); } // scrubTo() causes a pause();
|
||||
}
|
||||
if (ev.key == 'ArrowRight' && ev.shiftKey) {
|
||||
const p = this._paused;
|
||||
console.log(p);
|
||||
const diff = ev.ctrlKey ? 10000 : 1000;
|
||||
this.scrubTo(this._currentTimeMs + diff);
|
||||
this.scrubTo(this._currentTimeMs + 1000);
|
||||
if (!p) { console.log('play!'); this.play(); } // scrubTo() causes a pause();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue