/* global $ */ $(document).ready(function() { if (window.location.pathname === '/') { $.ajax({ type: 'GET', url: 'https://player.vimeo.com', error: function(e) { $('.homeVideo').hide() $('.homeVideo').replaceWith($('', { poster: '/assets/metamaps-intro-poster.webp', width: '560', height: '315', class: 'homeVideo', controls: '' })) $('.homeVideo').append($('', { src: 'https://metamaps.cc/videos/metamaps-intro.mp4', type: 'video/mp4' })) $('.homeVideo').append( '
You can watch our instruction video at ' + '' + 'https://metamaps.cc/videos/metamaps-intro.mp4.' ) } }) }// if })