From 05bcf8ef12ef48f5ebde92468b554390d747b750 Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Sat, 21 Nov 2009 20:48:02 +0530 Subject: [PATCH] editted example in index.html to reflect changes --- index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 624bdf3..d67e1d0 100644 --- a/index.html +++ b/index.html @@ -63,14 +63,17 @@ code {

 <script type="text/javascript" src="jquery.js"></script>
 <script type="text/javascript" src="jquery.srt.js"></script>
-
+<script type="text/javascript">
+  $(document).ready(function() {
+    $('.srt').srt();
+    });
+</script>
 <video src="http://example.com/video.ogv" id="video" controls>
 </video>
 <div class="srt"
      data-video="video"
      data-srt="http://example.com/video.srt" />
 
-jquery.srt.js will try to load subtitles in all elements with 'srt' class.
'data-video' atribute is used to link to the related video,
if no data-srt is provided, the contents of the div is parsed as srt.