1
0
mirror of https://github.com/exane/not-gwent-online synced 2025-07-27 20:33:28 +00:00

change music hover

This commit is contained in:
devfake
2015-07-05 21:06:32 +02:00
parent 868d930d01
commit 91f8d3ba4e
3 changed files with 15 additions and 10 deletions
assets/js
client

@@ -1,5 +1,5 @@
// Start music.
$(".video-self").tubeplayer({
$(".video-self2").tubeplayer({
width: 0.001,
height: 0.001,
initialVideo: "UE9fPWy1_o4",
@@ -33,6 +33,17 @@ $('.volume').on('blur', function() {
localStorage.setItem('volumeValue', val);
});
// Show music options.
var musicHover;
$('.music-icon, .music-options').hover(function() {
clearTimeout(musicHover);
$('.music-options').fadeIn();
}, function() {
musicHover = setTimeout(function() {
$('.music-options').fadeOut();
}, 500);
});
// Music options.
$('.music-icon').on('click', function() {
if($(this).hasClass('active')) {