update vimeo url, use asset path + erb for poster path (#1106)

This commit is contained in:
Devin Howard 2017-03-26 13:53:59 -07:00 committed by GitHub
parent 90f77cd4f7
commit 8c7a657499

View file

@ -4,11 +4,11 @@ $(document).ready(function() {
if (window.location.pathname === '/') {
$.ajax({
type: 'GET',
url: 'https://player.vimeo.com',
url: 'https://i.vimeocdn.com/video/',
error: function(e) {
$('.homeVideo').hide()
$('.homeVideo').replaceWith($('<video/>', {
poster: '/assets/metamaps-intro-poster.webp',
poster: '<%= asset_path('metamaps-intro-poster.webp') %>',
width: '560',
height: '315',
class: 'homeVideo',