Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <video width="320" height="240">
- <source src="***" type="video/mp4">
- </video>
- var btns = document.getElementsByClassName('input-video'); // наши кнопки
- var currentIndex = 0; // текущий индекс из массива кнопок
- $(document).ready(function(){
- $('video').on('ended',function(){
- if(currentIndex < btns.length){
- btns[currentIndex].click();
- currentIndex = currentIndex + 1; // currentIndex++
- }
- });
- });
Add Comment
Please, Sign In to add comment