Skip to content

Commit 44aa9bf

Browse files
committed
warning if no 0 chapter is added
1 parent e93cb8e commit 44aa9bf

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<script>
5252
$(window).load(function() {
5353
$('#vzvd-918833').vzChapterizer({
54-
chapters : [0, 28, 79],
54+
chapters : [0, 10, 23],
5555
titles : ["Intro", "A very long chapter name indeed, oh yes it is", "The end!"]
5656
});
5757
});

js/vzaar.jQuery-0.1.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,11 @@
184184
chapterTitles = settings.titles,
185185
items = [];
186186

187+
188+
if (chapterTiming[0] !== 0) {
189+
chapterTiming.unshift(0);
190+
chapterTitles.unshift("Please add a bookmark at 0 seconds");
191+
}
187192
$that.wrap('<div class="vzContainer" />');
188193
if (settings.position === "top" || settings.position === "left") {
189194
$that.before('<ul id="vzChapters"></ul>');
@@ -293,7 +298,7 @@
293298
return this;
294299
};
295300

296-
}( jQuery );
301+
})( jQuery );
297302

298303
function vzInit(id) {
299304
return new vzPlayer(id);
@@ -397,3 +402,4 @@ function timeConvert(curTime) {
397402
};
398403

399404
})(jQuery, document);
405+

js/vzaar.jQuery-0.1.min.js

Lines changed: 1 addition & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)