Save
This commit is contained in:
@@ -93,7 +93,7 @@ jQuery(function ($) {
|
||||
|
||||
jQuery(function ($) {
|
||||
let currentAudio = null
|
||||
|
||||
|
||||
let fullAlbumPlaying = false
|
||||
let fullAlbumList = []
|
||||
let fullAlbumIndex = 0
|
||||
@@ -124,7 +124,6 @@ jQuery(function ($) {
|
||||
})
|
||||
|
||||
$('.song-handler-anim').on('click', function () {
|
||||
|
||||
if (fullAlbumPlaying) {
|
||||
stopFullAlbum()
|
||||
return
|
||||
@@ -137,9 +136,8 @@ jQuery(function ($) {
|
||||
currentAudio.currentTime = 0
|
||||
currentAudio = null
|
||||
stopPlayer()
|
||||
|
||||
highlightSong(null)
|
||||
|
||||
highlightSong(null)
|
||||
} else {
|
||||
let audio = new Audio(songURI)
|
||||
currentAudio = audio
|
||||
@@ -155,7 +153,7 @@ jQuery(function ($) {
|
||||
}
|
||||
|
||||
let box = $(this).closest('.box')
|
||||
fullAlbumButton = $(this)
|
||||
fullAlbumButton = $(this)
|
||||
|
||||
fullAlbumList = []
|
||||
box.find('.actions .song[song]').each(function () {
|
||||
@@ -172,7 +170,6 @@ jQuery(function ($) {
|
||||
})
|
||||
|
||||
function playFullAlbumSong(box) {
|
||||
|
||||
let src = fullAlbumList[fullAlbumIndex]
|
||||
|
||||
if (currentAudio !== null) {
|
||||
@@ -226,7 +223,6 @@ jQuery(function ($) {
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
jQuery(function ($) {
|
||||
$('#frame-box nav #nav_foto').on('click', function () {
|
||||
$('#frame-box #obrazy').hide()
|
||||
@@ -287,46 +283,50 @@ jQuery(function ($) {
|
||||
// })
|
||||
// })
|
||||
|
||||
jQuery(document).ready(function($) {
|
||||
$('.song.text').on('click', function() {
|
||||
const songId = $(this).attr('data-song-id');
|
||||
|
||||
$.ajax({
|
||||
url: '/wp-admin/admin-ajax.php',
|
||||
type: 'POST',
|
||||
data: {
|
||||
action: 'get_song_text',
|
||||
song_id: songId
|
||||
},
|
||||
beforeSend: function() {
|
||||
$('#song-text-box').html('<p>Ładowanie...</p>');
|
||||
},
|
||||
success: function(response) {
|
||||
$('#song-text-box').addClass('active');
|
||||
$('#song-text-box').html(response);
|
||||
},
|
||||
error: function() {
|
||||
$('#song-text-box').addClass('active');
|
||||
$('#song-text-box').html('<div class="song-text-content"><p>Bład proszę spróbować później.</p></div>');
|
||||
jQuery(document).ready(function ($) {
|
||||
$('li.text').on('click', function () {
|
||||
const songId = $(this).attr('data-song-id')
|
||||
|
||||
$.ajax({
|
||||
url: '/wp-admin/admin-ajax.php',
|
||||
type: 'POST',
|
||||
data: {
|
||||
action: 'get_song_text',
|
||||
song_id: songId,
|
||||
},
|
||||
beforeSend: function () {
|
||||
$('#song-text-box').html('<p>Ładowanie...</p>')
|
||||
},
|
||||
success: function (response) {
|
||||
$('#song-text-box').addClass('active')
|
||||
$('#song-text-box').html(response)
|
||||
},
|
||||
error: function () {
|
||||
$('#song-text-box').addClass('active')
|
||||
$('#song-text-box').html(
|
||||
'<div class="song-text-content"><p>Bład proszę spróbować później.</p></div>'
|
||||
)
|
||||
setTimeout(() => {
|
||||
$('#song-text-box').removeClass('active');
|
||||
}, 2000);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#song-text-box .song-text-close .close-btn', function() {
|
||||
$('#song-text-box').removeClass('active');
|
||||
setTimeout(() => {
|
||||
$('#song-text-box').empty();
|
||||
}, 1000);
|
||||
});
|
||||
});
|
||||
$('#song-text-box').removeClass('active')
|
||||
}, 2000)
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
$(document).on(
|
||||
'click',
|
||||
'#song-text-box .song-text-close .close-btn',
|
||||
function () {
|
||||
$('#song-text-box').removeClass('active')
|
||||
setTimeout(() => {
|
||||
$('#song-text-box').empty()
|
||||
}, 1000)
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
jQuery(function ($) {
|
||||
Fancybox.bind('[data-fancybox]', {
|
||||
})
|
||||
Fancybox.bind('[data-fancybox]', {})
|
||||
})
|
||||
|
||||
jQuery(function ($) {
|
||||
@@ -434,4 +434,4 @@ jQuery(function ($) {
|
||||
}
|
||||
|
||||
updateCustomPagination(0)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -464,8 +464,8 @@ body.page-id-846 #content .page-content {
|
||||
}
|
||||
#frame-box #plyty #frame-box-content .frame-box-content-data .box {
|
||||
position: relative;
|
||||
width: 490px;
|
||||
min-width: 490px;
|
||||
width: 500px;
|
||||
min-width: 500px;
|
||||
}
|
||||
#frame-box #plyty #frame-box-content .frame-box-content-data .box-1 {
|
||||
padding-left: 57px;
|
||||
|
||||
@@ -544,8 +544,8 @@ body {
|
||||
|
||||
.box {
|
||||
position: relative;
|
||||
width: 490px;
|
||||
min-width: 490px;
|
||||
width: 500px;
|
||||
min-width: 500px;
|
||||
|
||||
&-1 {
|
||||
padding-left: 57px;
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if(get_field("albums_arr")[0]['add_text'] == 1): ?>
|
||||
<li class="song text" data-song-id="0">
|
||||
<li class="text" data-song-id="0">
|
||||
Teksty
|
||||
<img src="/wp-content/uploads/2024/04/txt.png" alt="">
|
||||
</li>
|
||||
@@ -85,7 +85,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if(get_field("albums_arr")[1]['add_text'] == 1): ?>
|
||||
<li class="song text" data-song-id="1">
|
||||
<li class="text" data-song-id="1">
|
||||
Teksty
|
||||
<img src="/wp-content/uploads/2024/04/txt.png" alt="">
|
||||
</li>
|
||||
@@ -127,7 +127,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if(get_field("albums_arr")[2]['add_text'] == 1): ?>
|
||||
<li class="song text" data-song-id="2">
|
||||
<li class="text" data-song-id="2">
|
||||
Teksty
|
||||
<img src="/wp-content/uploads/2024/04/txt.png" alt="">
|
||||
</li>
|
||||
@@ -172,7 +172,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if(get_field("albums_arr")[3]['add_text'] == 1): ?>
|
||||
<li class="song text" data-song-id="3">
|
||||
<li class="text" data-song-id="3">
|
||||
Teksty
|
||||
<img src="/wp-content/uploads/2024/04/txt.png" alt="">
|
||||
</li>
|
||||
@@ -216,7 +216,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if(get_field("albums_arr")[4]['add_text'] == 1): ?>
|
||||
<li class="song text" data-song-id="4">
|
||||
<li class="text" data-song-id="4">
|
||||
Teksty
|
||||
<img src="/wp-content/uploads/2024/04/txt.png" alt="">
|
||||
</li>
|
||||
@@ -328,7 +328,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if(get_field("albums_arr")[6]['add_text'] == 1): ?>
|
||||
<li class="song text" data-song-id="6">
|
||||
<li class="text" data-song-id="6">
|
||||
Teksty
|
||||
<img src="/wp-content/uploads/2024/04/txt.png" alt="">
|
||||
</li>
|
||||
@@ -370,7 +370,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if(get_field("albums_arr")[7]['add_text'] == 1): ?>
|
||||
<li class="song text" data-song-id="7">
|
||||
<li class="text" data-song-id="7">
|
||||
Teksty
|
||||
<img src="/wp-content/uploads/2024/04/txt.png" alt="">
|
||||
</li>
|
||||
@@ -412,7 +412,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if(get_field("albums_arr")[8]['add_text'] == 1): ?>
|
||||
<li class="song text" data-song-id="8">
|
||||
<li class="text" data-song-id="8">
|
||||
Teksty
|
||||
<img src="/wp-content/uploads/2024/04/txt.png" alt="">
|
||||
</li>
|
||||
@@ -454,7 +454,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if(get_field("albums_arr")[9]['add_text'] == 1): ?>
|
||||
<li class="song text" data-song-id="9">
|
||||
<li class="text" data-song-id="9">
|
||||
Teksty
|
||||
<img src="/wp-content/uploads/2024/04/txt.png" alt="">
|
||||
</li>
|
||||
@@ -496,7 +496,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if(get_field("albums_arr")[10]['add_text'] == 1): ?>
|
||||
<li class="song text" data-song-id="10">
|
||||
<li class="text" data-song-id="10">
|
||||
Teksty
|
||||
<img src="/wp-content/uploads/2024/04/txt.png" alt="">
|
||||
</li>
|
||||
@@ -538,7 +538,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if(get_field("albums_arr")[11]['add_text'] == 1): ?>
|
||||
<li class="song text" data-song-id="11">
|
||||
<li class="text" data-song-id="11">
|
||||
Teksty
|
||||
<img src="/wp-content/uploads/2024/04/txt.png" alt="">
|
||||
</li>
|
||||
@@ -580,7 +580,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if(get_field("albums_arr")[12]['add_text'] == 1): ?>
|
||||
<li class="song text" data-song-id="12">
|
||||
<li class="text" data-song-id="12">
|
||||
Teksty
|
||||
<img src="/wp-content/uploads/2024/04/txt.png" alt="">
|
||||
</li>
|
||||
@@ -622,7 +622,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if(get_field("albums_arr")[13]['add_text'] == 1): ?>
|
||||
<li class="song text" data-song-id="13">
|
||||
<li class="text" data-song-id="13">
|
||||
Teksty
|
||||
<img src="/wp-content/uploads/2024/04/txt.png" alt="">
|
||||
</li>
|
||||
@@ -664,7 +664,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if(get_field("albums_arr")[14]['add_text'] == 1): ?>
|
||||
<li class="song text" data-song-id="14">
|
||||
<li class="text" data-song-id="14">
|
||||
Teksty
|
||||
<img src="/wp-content/uploads/2024/04/txt.png" alt="">
|
||||
</li>
|
||||
@@ -706,7 +706,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if(get_field("albums_arr")[15]['add_text'] == 1): ?>
|
||||
<li class="song text" data-song-id="15">
|
||||
<li class="text" data-song-id="15">
|
||||
Teksty
|
||||
<img src="/wp-content/uploads/2024/04/txt.png" alt="">
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user