Skip to content

Commit

Permalink
Merge pull request #4 from RoelHengeveld/patch-1
Browse files Browse the repository at this point in the history
Change transcript lines to buttons for accessibility
  • Loading branch information
tomkle authored Aug 30, 2023
2 parents ea880a7 + 0da255d commit 8c288af
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions accessibility/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,22 @@
.sub-line.active {
font-weight: 500;
color: white;
background-color: blue;
background-color: rgb(53, 120, 187);
}
@media (max-width: 968px) {
.col-wrapper {
grid-template-columns: 1fr;
}
}
button {
text-align: left;
background: none;
color: inherit;
border: none;
padding: 0;
font: inherit;
cursor: pointer;
}
</style>

<script type="text/javascript">
Expand Down Expand Up @@ -114,7 +123,7 @@
td.innerHTML = '';
this.subtitleLines = subtitle.parsedData;
this.subtitleLines.forEach((sub) => {
let subLineDiv = document.createElement('div');
let subLineDiv = document.createElement('button');
subLineDiv.title = this.formatTime(sub.inPoint) + ' - ' + this.formatTime(sub.outPoint);
subLineDiv.classList.add('sub-line');
subLineDiv.innerHTML = sub.subtitleLine;
Expand Down

0 comments on commit 8c288af

Please sign in to comment.