From 4772431916d08f2eb9d10ea9a1fb638957ef4a03 Mon Sep 17 00:00:00 2001 From: Roman Pyrih Date: Tue, 25 Nov 2025 15:58:34 +0100 Subject: [PATCH] Save --- .../hello-elementor/assets/js/custom.js | 88 +++++++++---------- .../hello-elementor/assets/styles/custom.css | 4 +- .../hello-elementor/assets/styles/custom.scss | 4 +- .../template-parts/frame-album-sections.php | 30 +++---- 4 files changed, 63 insertions(+), 63 deletions(-) diff --git a/wp-content/themes/hello-elementor/assets/js/custom.js b/wp-content/themes/hello-elementor/assets/js/custom.js index e948172..65ed3dc 100644 --- a/wp-content/themes/hello-elementor/assets/js/custom.js +++ b/wp-content/themes/hello-elementor/assets/js/custom.js @@ -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('

Ładowanie...

'); - }, - success: function(response) { - $('#song-text-box').addClass('active'); - $('#song-text-box').html(response); - }, - error: function() { - $('#song-text-box').addClass('active'); - $('#song-text-box').html('

Bład proszę spróbować później.

'); +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('

Ładowanie...

') + }, + success: function (response) { + $('#song-text-box').addClass('active') + $('#song-text-box').html(response) + }, + error: function () { + $('#song-text-box').addClass('active') + $('#song-text-box').html( + '

Bład proszę spróbować później.

' + ) 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) -}) \ No newline at end of file +}) diff --git a/wp-content/themes/hello-elementor/assets/styles/custom.css b/wp-content/themes/hello-elementor/assets/styles/custom.css index f07fb00..4e5bdbd 100644 --- a/wp-content/themes/hello-elementor/assets/styles/custom.css +++ b/wp-content/themes/hello-elementor/assets/styles/custom.css @@ -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; diff --git a/wp-content/themes/hello-elementor/assets/styles/custom.scss b/wp-content/themes/hello-elementor/assets/styles/custom.scss index f0854e1..44ffc82 100644 --- a/wp-content/themes/hello-elementor/assets/styles/custom.scss +++ b/wp-content/themes/hello-elementor/assets/styles/custom.scss @@ -544,8 +544,8 @@ body { .box { position: relative; - width: 490px; - min-width: 490px; + width: 500px; + min-width: 500px; &-1 { padding-left: 57px; diff --git a/wp-content/themes/hello-elementor/template-parts/frame-album-sections.php b/wp-content/themes/hello-elementor/template-parts/frame-album-sections.php index 9bb8248..87b4068 100644 --- a/wp-content/themes/hello-elementor/template-parts/frame-album-sections.php +++ b/wp-content/themes/hello-elementor/template-parts/frame-album-sections.php @@ -30,7 +30,7 @@ -
  • +
  • Teksty
  • @@ -85,7 +85,7 @@ -
  • +
  • Teksty
  • @@ -127,7 +127,7 @@ -
  • +
  • Teksty
  • @@ -172,7 +172,7 @@ -
  • +
  • Teksty
  • @@ -216,7 +216,7 @@ -
  • +
  • Teksty
  • @@ -328,7 +328,7 @@ -
  • +
  • Teksty
  • @@ -370,7 +370,7 @@ -
  • +
  • Teksty
  • @@ -412,7 +412,7 @@ -
  • +
  • Teksty
  • @@ -454,7 +454,7 @@ -
  • +
  • Teksty
  • @@ -496,7 +496,7 @@ -
  • +
  • Teksty
  • @@ -538,7 +538,7 @@ -
  • +
  • Teksty
  • @@ -580,7 +580,7 @@ -
  • +
  • Teksty
  • @@ -622,7 +622,7 @@ -
  • +
  • Teksty
  • @@ -664,7 +664,7 @@ -
  • +
  • Teksty
  • @@ -706,7 +706,7 @@ -
  • +
  • Teksty