0.0.3 • Published 3 years ago
@internetarchive/transcript-view v0.0.3
\
A transcript view that handles closed captioning and search results.
Installation
yarn add @internetarchive/transcript-view
Usage
// transcript-view.js
import TranscriptView from '@internetarchive/transcript-view';
export default TranscriptView;
<!-- index.html -->
<script type="module">
import './transcript-view.js';
</script>
<style>
transcript-view {
display: block;
--timeColor: white;
--timeColumnWidth: 5rem;
--transcriptHeight: 200px;
--autoScrollButtonFontColor: black;
--autoScrollButtonBackgroundColor: white;
--normalTextColor: gray;
--activeTextColor: white;
--searchResultInactiveBorderColor: gray;
--searchResultActiveBorderColor: green;
}
</style>
<transcript-view
currentTime=10
showContextZones=true
topContextHeight=50
bottomContextHeight=50
selectedSearchResultIndex=1
.entries=${transcript}>
</transcript-view>
<script>
const transcriptView = document.querySelector('transcript-view');
// change the current time and the transcript view
// will scroll to the proper entry
transcriptView.currentTime = 50;
</script>
Development
Prerequisite
yarn install
Start Development Server
yarn start // start development server and typescript compiler
Testing
yarn test
Testing via browserstack
yarn test:bs
Demoing using storybook
yarn storybook
Linting
yarn lint
0.0.3-a1
3 years ago
0.0.3
3 years ago
0.0.2
4 years ago
0.0.2-alpha.2
4 years ago
0.0.2-alpha.1
4 years ago
0.0.1
5 years ago
0.0.1-alpha.504
5 years ago
0.0.1-alpha.530
5 years ago
0.0.1-alpha.533
5 years ago
0.0.1-alpha.527
5 years ago
0.0.1-alpha.506
5 years ago
0.0.1-alpha.497
5 years ago
0.0.1-alpha.387
6 years ago
0.0.1-alpha.444
6 years ago
0.0.1-alpha.434
6 years ago
0.0.1-alpha.430
6 years ago
0.0.1-alpha.427
6 years ago
0.0.1-alpha.426
6 years ago
0.0.1-alpha.422
6 years ago
0.0.1-alpha.420
6 years ago
0.0.1-alpha.415
6 years ago
0.0.1-alpha.399
6 years ago
0.0.1-alpha.398
6 years ago
0.0.1-alpha.382
6 years ago
0.0.1-alpha.379
6 years ago
0.0.1-alpha.378
6 years ago