Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Latest commit

 

History

History
executable file
·
23 lines (14 loc) · 678 Bytes

README.md

File metadata and controls

executable file
·
23 lines (14 loc) · 678 Bytes

jQuery WebVTT plugin v0.0.1

Caution: This plugin is currently in early development. Some things may change, so take care with updates!

jQuery WebVTT is made for parsing subtitles for usage in html context. It supports the WebVTT and SRT markup. The text can be parsed from text in a variable or from a document tag.

Usage

Html:

<script id="source" type="text/vtt">
    WEBVTT

    00:11.000 --> 00:13.000
    <v Roger Bingham>We are in New York City

    00:13.000 --> 00:16.000
    <v Roger Bingham>We're actually at the Lucern Hotel, just down the street
</script>

Javascript:

$('#source').webVtt('00:12.000').appendTo('#target');