fix video home
This commit is contained in:
parent
27dbfb92e0
commit
4776d553d2
File diff suppressed because one or more lines are too long
@ -40,12 +40,6 @@
|
||||
}
|
||||
add_action( 'wp_footer', 'rellax' );
|
||||
|
||||
function simplePlayer(){
|
||||
wp_enqueue_script( 'script',
|
||||
get_template_directory_uri() . '/src/assets/js/simplePlayer.js', array() );
|
||||
}
|
||||
add_action( 'wp_footer', 'simplePlayer' );
|
||||
|
||||
function customJs(){
|
||||
wp_enqueue_script( 'script',
|
||||
get_template_directory_uri() . '/src/assets/js/scripts.js', array() );
|
||||
|
@ -125,35 +125,7 @@ function scrollto(){
|
||||
});
|
||||
}
|
||||
|
||||
// function setupPlayers() {
|
||||
// // $('#section_MineVideo .cover').click(function(){
|
||||
// // $(this).fadeOut();
|
||||
// // var id = $(this).parent().find('iframe').attr('id');
|
||||
// // callPlayer(id, function() {
|
||||
// // callPlayer(id, "playVideo");
|
||||
// // });
|
||||
// // });
|
||||
// // Load the IFrame Player API code asynchronously.
|
||||
// var tag = document.createElement('script');
|
||||
// tag.src = "https://www.youtube.com/player_api";
|
||||
// var firstScriptTag = document.getElementsByTagName('script')[0];
|
||||
// firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
|
||||
//
|
||||
// // Replace the 'ytplayer' element with an <iframe> and
|
||||
// // YouTube player after the API code downloads.
|
||||
// var player;
|
||||
// function onYouTubePlayerAPIReady() {
|
||||
// console.log('cc');
|
||||
// player = new YT.Player('ytplayer', {
|
||||
// height: '360',
|
||||
// width: '640',
|
||||
// videoId: 'XUsBV5mXJGs'
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
$( document ).ready(function() {
|
||||
// setupPlayers();
|
||||
burger();
|
||||
click_nav();
|
||||
slides();
|
||||
|
@ -62,7 +62,6 @@ p{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
main{
|
||||
min-height: 90vh;
|
||||
}
|
||||
|
@ -47,12 +47,7 @@
|
||||
<h3>Transition urbaine</h3>
|
||||
{% if post.video_la_mine %}
|
||||
<figure class="row mx-0">
|
||||
{# <div class="cover">
|
||||
<img id="thumbnails" src="http://img.youtube.com/vi/XUsBV5mXJGs/maxresdefault.jpg" alt="thumbnail">
|
||||
<img id="player" src="{{theme.link}}/dist/assets/images/player.svg" alt="player">
|
||||
</div> #}
|
||||
<div id="ytplayer"></div>
|
||||
{# <iframe id="playVideo" src="https://www.youtube.com/embed/XUsBV5mXJGs?enablejsapi=1" frameborder="0" allowfullscreen></iframe> #}
|
||||
<iframe id="playVideo" src="{{post.video_la_mine}}" frameborder="0" allowfullscreen></iframe>
|
||||
</figure>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user