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 === '/') {
|
if (window.location.pathname === '/') {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
url: 'https://player.vimeo.com',
|
url: 'https://i.vimeocdn.com/video/',
|
||||||
error: function(e) {
|
error: function(e) {
|
||||||
$('.homeVideo').hide()
|
$('.homeVideo').hide()
|
||||||
$('.homeVideo').replaceWith($('<video/>', {
|
$('.homeVideo').replaceWith($('<video/>', {
|
||||||
poster: '/assets/metamaps-intro-poster.webp',
|
poster: '<%= asset_path('metamaps-intro-poster.webp') %>',
|
||||||
width: '560',
|
width: '560',
|
||||||
height: '315',
|
height: '315',
|
||||||
class: 'homeVideo',
|
class: 'homeVideo',
|
Loading…
Add table
Reference in a new issue