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