mirror of
https://github.com/jgthms/bulma
synced 2026-03-20 12:24:28 -07:00
Add intro video
This commit is contained in:
@@ -4,11 +4,13 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
// Intro
|
||||
|
||||
var introVimeo = document.getElementById('introVimeo');
|
||||
var introVideo = document.getElementById('introVideo');
|
||||
var introIframe = document.getElementById('introIframe');
|
||||
var introPlayer = new Vimeo.Player(introIframe);
|
||||
var npmClipboard = new Clipboard('#npmCopy');
|
||||
|
||||
introVimeo.addEventListener('load', function () {
|
||||
introVimeo.parentNode.parentNode.classList.add('has-loaded');
|
||||
introPlayer.ready().then(function () {
|
||||
introVideo.classList.add('has-loaded');
|
||||
});
|
||||
|
||||
npmClipboard.on('success', function (e) {
|
||||
|
||||
Reference in New Issue
Block a user