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' );
|
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(){
|
function customJs(){
|
||||||
wp_enqueue_script( 'script',
|
wp_enqueue_script( 'script',
|
||||||
get_template_directory_uri() . '/src/assets/js/scripts.js', array() );
|
get_template_directory_uri() . '/src/assets/js/scripts.js', array() );
|
||||||
|
@ -118,42 +118,14 @@ function scrollto(){
|
|||||||
$(window).scroll(function() {
|
$(window).scroll(function() {
|
||||||
var scroll = $(window).scrollTop();
|
var scroll = $(window).scrollTop();
|
||||||
if (scroll >= 100) {
|
if (scroll >= 100) {
|
||||||
$(".logo a").addClass("reduct");
|
$(".logo a").addClass("reduct");
|
||||||
} else {
|
} else {
|
||||||
$(".logo a").removeClass("reduct");
|
$(".logo a").removeClass("reduct");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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() {
|
$( document ).ready(function() {
|
||||||
// setupPlayers();
|
|
||||||
burger();
|
burger();
|
||||||
click_nav();
|
click_nav();
|
||||||
slides();
|
slides();
|
||||||
|
@ -62,7 +62,6 @@ p{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
main{
|
main{
|
||||||
min-height: 90vh;
|
min-height: 90vh;
|
||||||
}
|
}
|
||||||
|
@ -47,12 +47,7 @@
|
|||||||
<h3>Transition urbaine</h3>
|
<h3>Transition urbaine</h3>
|
||||||
{% if post.video_la_mine %}
|
{% if post.video_la_mine %}
|
||||||
<figure class="row mx-0">
|
<figure class="row mx-0">
|
||||||
{# <div class="cover">
|
<iframe id="playVideo" src="{{post.video_la_mine}}" frameborder="0" allowfullscreen></iframe>
|
||||||
<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> #}
|
|
||||||
</figure>
|
</figure>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user