eslint
This commit is contained in:
parent
879400b3f2
commit
4c6f2cfe31
2 changed files with 15 additions and 12 deletions
|
@ -1,3 +1,4 @@
|
|||
// eslint-disable spaced-comment
|
||||
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
||||
// listed below.
|
||||
//
|
||||
|
|
|
@ -1,27 +1,29 @@
|
|||
/* global $ */
|
||||
|
||||
$(document).ready(function () {
|
||||
if (window.location.pathname == "/") {
|
||||
if (window.location.pathname === '/') {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: '//player.vimeo.com',
|
||||
error: function(e) {
|
||||
$('.homeVideo').hide();
|
||||
type: 'GET',
|
||||
url: 'https://player.vimeo.com',
|
||||
error: function (e) {
|
||||
$('.homeVideo').hide()
|
||||
$('.homeVideo').replaceWith($('<video/>', {
|
||||
poster: '/assets/metamaps-intro-poster.webp',
|
||||
width: '560',
|
||||
height: '315',
|
||||
class: 'homeVideo',
|
||||
controls: ''
|
||||
}));
|
||||
}))
|
||||
$('.homeVideo').append($('<source/>', {
|
||||
src: '//metamaps.cc/videos/metamaps-intro.mp4',
|
||||
src: 'https://metamaps.cc/videos/metamaps-intro.mp4',
|
||||
type: 'video/mp4'
|
||||
}));
|
||||
}))
|
||||
$('.homeVideo').append(
|
||||
'<p>You can watch our instruction video at ' +
|
||||
'<a href="https://metamaps.cc/videos/metamaps-intro.mp4">' +
|
||||
'https://metamaps.cc/videos/metamaps-intro.mp4</a>.'
|
||||
);
|
||||
)
|
||||
}
|
||||
});
|
||||
}//if
|
||||
});
|
||||
})
|
||||
}// if
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue