update vimeo url, use asset path + erb for poster path (#1106)
This commit is contained in:
parent
90f77cd4f7
commit
8c7a657499
1 changed files with 2 additions and 2 deletions
|
@ -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',
|
Loading…
Reference in a new issue