Revealed: Double Your Audience in 30 Days
クリック
document.addEventListener('DOMContentLoaded', function() { var options = { id: 830022102, width: 640 }; var player = new Vimeo.Player('vimeo-player', options); var button = document.getElementById('test'); var buttonDisplayed = false; player.on('timeupdate', function(data) { if (!buttonDisplayed) { player.getDuration().then(function(duration) { var progress = (data.seconds / duration) * 100; if (progress >= 80) { button.style.display = 'block'; buttonDisplayed = true; } }); } }); });