mirror of
https://github.com/exane/not-gwent-online
synced 2024-10-31 10:36:53 +00:00
fix music player
This commit is contained in:
parent
8b0e33e46f
commit
d095678478
@ -4,13 +4,10 @@ $(".video-self").tubeplayer({
|
|||||||
height: 0.001,
|
height: 0.001,
|
||||||
initialVideo: "UE9fPWy1_o4",
|
initialVideo: "UE9fPWy1_o4",
|
||||||
autoPlay: true,
|
autoPlay: true,
|
||||||
onPlayerEnded: function(){
|
onPlayerPlaying: function(id){
|
||||||
$(".video-self").tubeplayer('play');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if(localStorage.getItem('volume') == 'off') {
|
if(localStorage.getItem('volume') == 'off') {
|
||||||
$('.music-icon').removeClass('active');
|
$('.music-icon').removeClass('active');
|
||||||
|
$(".video-self").tubeplayer('mute');
|
||||||
}
|
}
|
||||||
|
|
||||||
if(localStorage.getItem('volumeValue') != null) {
|
if(localStorage.getItem('volumeValue') != null) {
|
||||||
@ -20,6 +17,11 @@ if(localStorage.getItem('volumeValue') != null) {
|
|||||||
$('.volume').val('75');
|
$('.volume').val('75');
|
||||||
$('.video-self').tubeplayer('volume', 75);
|
$('.video-self').tubeplayer('volume', 75);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
onPlayerEnded: function(){
|
||||||
|
$(".video-self").tubeplayer('play');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Set volume.
|
// Set volume.
|
||||||
$('.volume').on('blur', function() {
|
$('.volume').on('blur', function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user