Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Set up Froogaloop (Vimeo API)
- if (typeof mod_apicall !== 'undefined' && mod_apicall == 'vimeo' ) { // check to make sure the video exists
- var iframe = document.getElementById('thevideo');
- var player = $f(iframe);
- $('.timecode').on('click', function (e) { // this targets actual .timecode links and grabs the data value
- e.preventDefault();
- var seekVal = $(this).attr('data-seek');
- player.api('seekTo', seekVal);
- });
- $('.jumper').find('select').on('change', function (e) { // this targets the .jumper select box and fires on change
- var seekVal = $(this).attr('value');
- player.api('seekTo', seekVal);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement