From 6ff67d2082f49022ddb1f0762387df6bf3df0e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DraugSk=C3=B6ll?= Date: Tue, 24 Sep 2024 21:47:37 +0200 Subject: [PATCH 01/10] Update script.js --- public_html/js/script.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/public_html/js/script.js b/public_html/js/script.js index e75fd825c..a00198d96 100644 --- a/public_html/js/script.js +++ b/public_html/js/script.js @@ -1,23 +1,3 @@ -/**+ - * This function initializes the website's functionality, including://+ - * - AOS (Animate On Scroll) initialization//+ - * - Menu toggle functionality//+ - * - Close menu when clicked outside//+ - * - Adjust menu icons on window resize//+ - * - Add 'active' class to the current menu item//+ - * - Smooth scroll functionality for navigation links//+ - * - Sticky header and menu functionality//+ - * - Logo scaling and header padding adjustment on scroll//+ - * - Update page title with a site-specific suffix//+ - * - Scroll to top button functionality//+ - * - Scroll animations with Intersection Observer//+ - * - Service worker registration for offline support//+ - * - Function to check if an element is in view//+ - * - Tawk.to chat script initialization//+ - * - Google Analytics tracking code initialization//+ - - * @returns {void}//+ - *///+ $(document).ready(function () { // Inicjalizacja AOS AOS.init({ From 5974a48319df619da194afa6e9207ab751f0de0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DraugSk=C3=B6ll?= Date: Tue, 24 Sep 2024 22:30:34 +0200 Subject: [PATCH 02/10] Update script.js --- public_html/js/script.js | 295 +++++++++++++++++++-------------------- 1 file changed, 145 insertions(+), 150 deletions(-) diff --git a/public_html/js/script.js b/public_html/js/script.js index a00198d96..65da6b0f8 100644 --- a/public_html/js/script.js +++ b/public_html/js/script.js @@ -1,192 +1,187 @@ +/** + * Initializes various functionalities on the webpage. + * + * @returns {void} + */ $(document).ready(function () { - // Inicjalizacja AOS + // Initialize AOS AOS.init({ - duration: 1200, + duration: 1200, }); - + + // Menu toggle functionality const menu = $('nav.menu ul'); const menuToggle = $('.menu-toggle'); const menuIcon = $('.menu-icon'); const closeIcon = $('.close-icon'); - - // Przełączanie menu + menuToggle.click(function () { - if (!menu.hasClass('active')) { - menu.addClass('active').css('animation', 'menu-opacityup 0.2s ease-in-out forwards'); - } else { - menu.css('animation', 'menu-opacitydown 0.2s ease-in-out forwards'); - setTimeout(function () { - menu.removeClass('active'); - }, 200); // Dopasuj do czasu trwania animacji - } - menuIcon.toggle(); - closeIcon.toggle(); + if (!menu.hasClass('active')) { + menu.addClass('active').css('animation', 'menu-opacityup 0.2s ease-in-out forwards'); + } else { + menu.css('animation', 'menu-opacitydown 0.2s ease-in-out forwards'); + setTimeout(function () { + menu.removeClass('active'); + }, 200); // Adjust to animation duration + } + menuIcon.toggle(); + closeIcon.toggle(); }); - - // Zamknięcie menu po kliknięciu poza nim + + // Close menu when clicked outside $(document).click(function (event) { - if (!menu.is(event.target) && menu.has(event.target).length === 0 && - !menuToggle.is(event.target) && menuToggle.has(event.target).length === 0 && menu.hasClass('active')) { - menu.css('animation', 'menu-opacitydown 0.2s ease-in-out forwards'); - setTimeout(function () { - menu.removeClass('active'); - closeIcon.hide(); - if ($(window).width() <= 768) { - menuIcon.show(); - } - }, 200); // Dopasuj do czasu trwania animacji - } + if (!menu.is(event.target) && menu.has(event.target).length === 0 && + !menuToggle.is(event.target) && menuToggle.has(event.target).length === 0 && menu.hasClass('active')) { + menu.css('animation', 'menu-opacitydown 0.2s ease-in-out forwards'); + setTimeout(function () { + menu.removeClass('active'); + closeIcon.hide(); + if ($(window).width() <= 768) { + menuIcon.show(); + } + }, 200); // Adjust to animation duration + } }); - - // Dostosowanie ikon menu przy zmianie rozmiaru okna + + // Adjust menu icons based on window size $(window).resize(function () { - if ($(window).width() > 768) { - menuIcon.hide(); - closeIcon.hide(); - } else if (!menu.hasClass('active')) { - menuIcon.show(); - } + if ($(window).width() > 768) { + menuIcon.hide(); + closeIcon.hide(); + } else if (!menu.hasClass('active')) { + menuIcon.show(); + } }); - + // Add 'active' class to the current menu item - var currentUrl = window.location.href; - var baseUrl = window.location.origin; // Get the base URL, e.g., "http://127.0.0.1:5500" or "http://moja-domena.pl" - + const currentUrl = window.location.href; + const baseUrl = window.location.origin; // Get the base URL + $('nav.menu ul li a').each(function () { - var linkUrl = this.href; - - // Check if the link is to the homepage - if (linkUrl === currentUrl || - (linkUrl === baseUrl + '/' && currentUrl === baseUrl + '/') || - (linkUrl === baseUrl + '/index.html' && (currentUrl === baseUrl + '/' || currentUrl === baseUrl + '/index.html'))) { - $(this).parent().addClass('active'); - } + const linkUrl = this.href; + + // Check if the link is to the homepage + if (linkUrl === currentUrl || + (linkUrl === baseUrl + '/' && currentUrl === baseUrl + '/') || + (linkUrl === baseUrl + '/index.html' && (currentUrl === baseUrl + '/' || currentUrl === baseUrl + '/index.html'))) { + $(this).parent().addClass('active'); + } }); - + // Smooth scroll functionality for navigation links $('.smooth-scroll').click(function (e) { - e.preventDefault(); - var target = $(this).attr('href'); - $('html, body').animate({ - scrollTop: $(target).offset().top - }, 800); + e.preventDefault(); + const target = $(this).attr('href'); + $('html, body').animate({ + scrollTop: $(target).offset().top + }, 800); }); - - // Dodajemy obsługę sticky headera i menu + + // Sticky header and menu const stickyHeader = $('header'); const stickyMenu = $('nav.menu'); const sticky = stickyHeader.offset().top; const logo = $('.header-left img'); // Select your logo image - + function makeSticky() { - const scrollTop = $(window).scrollTop(); - - // Sticky header and menu - if (scrollTop > sticky) { - stickyHeader.addClass('sticky'); - stickyMenu.addClass('sticky'); - } else { - stickyHeader.removeClass('sticky'); - stickyMenu.removeClass('sticky'); - } - - // Logo and header scaling - const maxLogoScale = 150; // Original width - const minLogoScale = 100; // Reduced width in sticky state - const maxScroll = 300; // Adjust this value to set when the scaling stops - - let logoWidth = maxLogoScale - (scrollTop / maxScroll) * (maxLogoScale - minLogoScale); - if (logoWidth < minLogoScale) logoWidth = minLogoScale; - logo.css('width', logoWidth + 'px'); - - const maxPadding = 10; // Original padding top/bottom - const minPadding = 5; // Reduced padding in sticky state - - let headerPadding = maxPadding - (scrollTop / maxScroll) * (maxPadding - minPadding); - if (headerPadding < minPadding) headerPadding = minPadding; - stickyHeader.css('padding', headerPadding + 'px 20px'); - } - + const scrollTop = $(window).scrollTop(); + const stickyClass = scrollTop > sticky ? 'sticky' : ''; + stickyHeader.addClass(stickyClass); + stickyMenu.addClass(stickyClass); + + // Logo and header scaling + const maxLogoScale = 150; // Original width + const minLogoScale = 100; // Reduced width in sticky state + const maxScroll = 300; // Adjust this value to set when the scaling stops + + let logoWidth = maxLogoScale - (scrollTop / maxScroll) * (maxLogoScale - minLogoScale); + if (logoWidth < minLogoScale) logo Width = minLogoScale; + logo.css('width', logoWidth + 'px'); + + const maxPadding = 10; // Original padding top/bottom + const minPadding = 5; // Reduced padding in sticky state + + let headerPadding = maxPadding - (scrollTop / maxScroll) * (maxPadding - minPadding); + if (headerPadding < minPadding) headerPadding = minPadding; + stickyHeader.css('padding', headerPadding + 'px 20px'); + } + $(window).scroll(makeSticky); - - // Pobrano tytuł strony z elementu title - var originalTitle = document.title; - - // Dodano część tytułu, która pojawia się na każdej stronie - var siteName = " - HulajDusza serwis hulajnóg elektrycznych"; - - // Aktualizacja tytułu strony + + // Page title modification + const originalTitle = document.title; + const siteName = " - HulajDusza serwis hulajnóg elektrycznych"; document.title = originalTitle + siteName; - + // Scroll to top button functionality - const mybutton = $("#scrollToTopBtn"); - + const scrollToTopBtn = $("#scrollToTopBtn"); + $(window).scroll(function () { - if ($(this).scrollTop() > 20) { - mybutton.addClass("show"); - } else { - mybutton.removeClass("show"); - } + if ($(this).scrollTop() > 20) { + scrollToTopBtn.addClass("show"); + } else { + scrollToTopBtn.removeClass("show"); + } }); - - mybutton.click(function () { - $('html, body').animate({ - scrollTop: 0 - }, 'smooth'); + + scrollToTopBtn.click(function () { + $('html, body').animate({ + scrollTop: 0 + }, 'smooth'); }); - + // Scroll animations with Intersection Observer const scrollElements = $('.fade-in'); - + const observerOptions = { - threshold: 0.25 + threshold: 0.25 }; - + const observer = new IntersectionObserver((entries, observer) => { - entries.forEach(entry => { - if (entry.isIntersecting) { - $(entry.target).addClass('visible'); - observer.unobserve(entry.target); - } - }); + entries.forEach(entry => { + if (entry.isIntersecting) { + $(entry.target).addClass('visible'); + observer.unobserve(entry.target); + } + }); }, observerOptions); - + scrollElements.each(function () { - observer.observe(this); + observer.observe(this); }); -}); - -if ('serviceWorker' in navigator) { - window.addEventListener('load', registerServiceWorker); - } - - function registerServiceWorker() { - const swUrl = '/js/service-worker.js'; - navigator.serviceWorker - .register(swUrl) - .then(({ scope }) => console.log(`ServiceWorker registration successful with scope: ${scope}`)) - .catch((error) => console.error(`ServiceWorker registration failed: ${error}`)); - } - -function isElementInView(element) { - const rect = element.getBoundingClientRect(); - return ( + + // Service worker registration + if ('serviceWorker' in navigator) { + window.addEventListener('load', registerServiceWorker); + } + + function registerServiceWorker() { + const swUrl = '/js/service-worker.js'; + navigator.serviceWorker + .register(swUrl) + .then(({ scope }) => console.log(`ServiceWorker registration successful with scope: ${scope}`)) + .catch((error) => console.error(`ServiceWorker registration failed: ${error}`)); + } + + // Element visibility check + function isElementInView(element) { + const rect = element.getBoundingClientRect(); + return ( rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth) - ); -} - -// Tawk.to Script -var Tawk_API = Tawk_API || {}, Tawk_LoadStart = new Date(); -(function(){ - var s1 = document.createElement("script"), s0 = document.getElementsByTagName("script")[0]; - s1.async = true; - s1.src = 'https://embed.tawk.to/66ae13d81601a2195ba058ee/1i4bvr1p7'; - s1.charset = 'UTF-8'; //charset depreciated, only for compatibility - s1.setAttribute('crossorigin', '*'); - s0.parentNode.insertBefore(s1, s0); -})(); - -myUndefinedFunction(); \ No newline at end of file + ); + } + + // Tawk.to Script + var Tawk_API = Tawk_API || {}, Tawk_LoadStart = new Date(); + (function(){ + var s1 = document.createElement("script"), s0 = document.getElementsByTagName("script")[0]; + s1.async = true; + s1.src = 'https://embed.tawk.to/66ae13d81601a2195ba058ee/1i4bvr1p7'; + s1.charset = 'UTF-8'; //charset depreciated, only for compatibility + s1.setAttribute('crossorigin', '*'); + s0.parentNode.insertBefore(s1, s0); + })(); + }); \ No newline at end of file From 4ad079aa7ec51e81261c3e32e4edddc6b6541839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DraugSk=C3=B6ll?= Date: Tue, 24 Sep 2024 23:15:39 +0200 Subject: [PATCH 03/10] Update phone_format.js --- public_html/js/phone_format.js | 66 ++++++++++++++++++++++++---------- 1 file changed, 48 insertions(+), 18 deletions(-) diff --git a/public_html/js/phone_format.js b/public_html/js/phone_format.js index 8aae7e9f8..04678cd52 100644 --- a/public_html/js/phone_format.js +++ b/public_html/js/phone_format.js @@ -1,20 +1,50 @@ -document.addEventListener("DOMContentLoaded", function() { - // Executes when HTML document has finished loading and parsing. - var phoneInput = document.getElementById("phone"); - - phoneInput.addEventListener("input", function(event) { - // Formats phone numbers. - var value = phoneInput.value.replace(/\D/g, ''); // Remove all non-digit characters - var formattedValue = ''; - - for (var i = 0; i < value.length; i++) { - if (i > 0 && i % 3 === 0) { - formattedValue += ' '; - } - formattedValue += value[i]; +$(document).ready(function() { + // Formats phone numbers. + $('#phone').on('input', function() { + var value = $(this).val().replace(/\D/g, ''); // Remove all non-digit characters + var formattedValue = ''; + + for (var i = 0; i < value.length; i++) { + if (i > 0 && i % 3 === 0) { + formattedValue += ' '; } - - phoneInput.value = formattedValue; - phoneInput.setSelectionRange(formattedValue.length, formattedValue.length); // Maintain cursor position + formattedValue += value[i]; + } + + var cursorPosition = $(this).caretPosition(); + $(this).val(formattedValue); + $(this).caretPosition(cursorPosition); }); -}); + }); + + // Helper function to get the current cursor position + $.fn.caretPosition = function() { + if (this[0].selectionStart) { + return this[0].selectionStart; + } else if (document.selection) { + this[0].focus(); + var r = document.selection.createRange(); + if (r != null) { + var re = this[0].createTextRange(); + var rc = re.duplicate(); + re.moveToBookmark(r.getBookmark()); + rc.moveToBookmark(r.getBookmark()); + return rc.moveStart('character', -this[0].value.length); + } + } + return 0; + }; + + // Helper function to set the cursor position + $.fn.caretPosition = function(position) { + if (this[0].selectionStart) { + this[0].focus(); + this[0].setSelectionRange(position, position); + } else if (document.selection) { + this[0].focus(); + var range = this[0].createTextRange(); + range.moveStart('character', position); + range.collapse(); + range.select(); + } + }; \ No newline at end of file From 3ccc9088f3c4a7fcf64ca5c2588beef14fc039a7 Mon Sep 17 00:00:00 2001 From: "komment-ai[bot]" <122626893+komment-ai[bot]@users.noreply.github.com> Date: Tue, 24 Sep 2024 23:37:02 +0200 Subject: [PATCH 04/10] Added comments to 2 items across 1 file (#48) Co-authored-by: komment-ai[bot] <122626893+komment-ai[bot]@users.noreply.github.com> --- public_html/js/phone_format.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public_html/js/phone_format.js b/public_html/js/phone_format.js index 04678cd52..eb5425c62 100644 --- a/public_html/js/phone_format.js +++ b/public_html/js/phone_format.js @@ -1,6 +1,7 @@ $(document).ready(function() { // Formats phone numbers. $('#phone').on('input', function() { + // Formats phone numbers. var value = $(this).val().replace(/\D/g, ''); // Remove all non-digit characters var formattedValue = ''; From a05e0c30e56e80d925a398fd1a288bb46a5e1224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DraugSk=C3=B6ll?= Date: Wed, 25 Sep 2024 00:03:11 +0200 Subject: [PATCH 05/10] Update public_html/js/script.js Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --- public_html/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/js/script.js b/public_html/js/script.js index 65da6b0f8..a8ec2f76a 100644 --- a/public_html/js/script.js +++ b/public_html/js/script.js @@ -102,7 +102,7 @@ $(document).ready(function () { const minPadding = 5; // Reduced padding in sticky state let headerPadding = maxPadding - (scrollTop / maxScroll) * (maxPadding - minPadding); - if (headerPadding < minPadding) headerPadding = minPadding; + if (headerPadding < minPadding) { stickyHeader.css('padding', headerPadding + 'px 20px'); } From b33c6f2b925dabbcd31492486195d3f7dab04d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DraugSk=C3=B6ll?= Date: Wed, 25 Sep 2024 00:03:41 +0200 Subject: [PATCH 06/10] Update public_html/js/phone_format.js Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --- public_html/js/phone_format.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public_html/js/phone_format.js b/public_html/js/phone_format.js index eb5425c62..3f35ab39c 100644 --- a/public_html/js/phone_format.js +++ b/public_html/js/phone_format.js @@ -1,7 +1,6 @@ $(document).ready(function() { +$('#phone').on('input', function() { // Formats phone numbers. - $('#phone').on('input', function() { - // Formats phone numbers. var value = $(this).val().replace(/\D/g, ''); // Remove all non-digit characters var formattedValue = ''; From 64fcd98e70376f3b44e9ff8c9408b5b58f6daa95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DraugSk=C3=B6ll?= Date: Wed, 25 Sep 2024 00:37:49 +0200 Subject: [PATCH 07/10] Update script.js --- public_html/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/js/script.js b/public_html/js/script.js index f29ad8dc4..3afe2e20a 100644 --- a/public_html/js/script.js +++ b/public_html/js/script.js @@ -95,7 +95,7 @@ $(document).ready(function () { const maxScroll = 300; // Adjust this value to set when the scaling stops let logoWidth = maxLogoScale - (scrollTop / maxScroll) * (maxLogoScale - minLogoScale); - if (logoWidth < minLogoScale) {logo Width = minLogoScale}; + if (logoWidth < minLogoScale) {logoWidth = minLogoScale}; logo.css('width', logoWidth + 'px'); const maxPadding = 10; // Original padding top/bottom From ccedf0d6a87d6d7367b0cdbfc5b42189df0f5a2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DraugSk=C3=B6ll?= Date: Wed, 25 Sep 2024 00:45:25 +0200 Subject: [PATCH 08/10] "Removed 'fade-in' class from various HTML elements across multiple files." --- src/about.html | 8 ++++---- src/contact.html | 4 ++-- src/index.html | 12 ++++++------ src/services.html | 6 +++--- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/about.html b/src/about.html index 37f9ea254..14df766ee 100644 --- a/src/about.html +++ b/src/about.html @@ -33,17 +33,17 @@

O nas

-
+

Poznaj nasz zespół

-
+
Katarzyna Pawłowska-Malesa

Katarzyna

Założycielka, Dyrektorka operacyjna i główna mechanik. Pasjonatka hulajnóg elektrycznych. Codziennie daje z siebie wszystko, aby hulajnogi klientów były sprawne.

-
+
Maciej Bujoczek

Maciej

@@ -56,7 +56,7 @@

Maciej

-
+
diff --git a/src/contact.html b/src/contact.html index 9958abb2b..c2acaf082 100644 --- a/src/contact.html +++ b/src/contact.html @@ -29,13 +29,13 @@
-
+

Nasza lokalizacja

-
+

Skontaktuj się z nami

diff --git a/src/index.html b/src/index.html index 604eb0bf7..7e8b43f22 100644 --- a/src/index.html +++ b/src/index.html @@ -22,7 +22,7 @@
-
+

Najlepszy serwis hulajnóg elektrycznych w mieście

Zapewniamy szybkie i profesjonalne usługi naprawy oraz konserwacji.

@@ -32,11 +32,11 @@

Najlepszy serwis hulajnóg elektrycznych w mieście

Nasze Usługi

-
+

Naprawa Hulajnóg

Oferujemy kompleksowe usługi naprawcze dla wszystkich marek hulajnóg elektrycznych. Niezależnie od problemu, naprawimy Twoją hulajnogę szybko i sprawnie.

-
+

Konserwacja i Przeglądy

Regularna konserwacja jest kluczem do długowieczności Twojej hulajnogi. Oferujemy przeglądy okresowe, wymianę części i pełną diagnostykę.

@@ -46,7 +46,7 @@

Konserwacja i Przeglądy

Dlaczego My?

-
+

Doświadczenie

@@ -57,7 +57,7 @@

Doświadczenie

-
+
Jakość @@ -68,7 +68,7 @@

Jakość

-
+

Zadowoleni Klienci

diff --git a/src/services.html b/src/services.html index 1f3fbfc8f..b4e3af156 100644 --- a/src/services.html +++ b/src/services.html @@ -30,7 +30,7 @@

Profesjonalne usługi serwisowe dla Twojej hulajnogi elektrycznej

-
+

Naprawa hulajnóg elektrycznych

@@ -51,7 +51,7 @@

Diagnostyka komputerowa

-
+

Naprawa hamulców

@@ -72,7 +72,7 @@

Inspekcja stanu technicznego

-
+

Chcesz poznać nasze ceny?

From a557a758c754254830775489de08e60679d51f62 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 24 Sep 2024 22:45:56 +0000 Subject: [PATCH 09/10] Automated Gulp build changes --- public_html/about.html | 8 ++++---- public_html/contact.html | 4 ++-- public_html/index.html | 12 ++++++------ public_html/services.html | 6 +++--- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/public_html/about.html b/public_html/about.html index 28389a6d9..3857a8a6a 100644 --- a/public_html/about.html +++ b/public_html/about.html @@ -243,17 +243,17 @@

O nas

-
+

Poznaj nasz zespół

-
+
Katarzyna Pawłowska-Malesa

Katarzyna

Założycielka, Dyrektorka operacyjna i główna mechanik. Pasjonatka hulajnóg elektrycznych. Codziennie daje z siebie wszystko, aby hulajnogi klientów były sprawne.

-
+
Maciej Bujoczek

Maciej

@@ -266,7 +266,7 @@

Maciej

-
+
diff --git a/public_html/contact.html b/public_html/contact.html index c7d5ada7b..d03494f21 100644 --- a/public_html/contact.html +++ b/public_html/contact.html @@ -239,13 +239,13 @@

HulajDusza

-
+

Nasza lokalizacja

-
+

Skontaktuj się z nami

diff --git a/public_html/index.html b/public_html/index.html index f90869b46..4b573ef5a 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -232,7 +232,7 @@

HulajDusza

-
+

Najlepszy serwis hulajnóg elektrycznych w mieście

Zapewniamy szybkie i profesjonalne usługi naprawy oraz konserwacji.

@@ -242,11 +242,11 @@

Najlepszy serwis hulajnóg elektrycznych w mieście

Nasze Usługi

-
+

Naprawa Hulajnóg

Oferujemy kompleksowe usługi naprawcze dla wszystkich marek hulajnóg elektrycznych. Niezależnie od problemu, naprawimy Twoją hulajnogę szybko i sprawnie.

-
+

Konserwacja i Przeglądy

Regularna konserwacja jest kluczem do długowieczności Twojej hulajnogi. Oferujemy przeglądy okresowe, wymianę części i pełną diagnostykę.

@@ -256,7 +256,7 @@

Konserwacja i Przeglądy

Dlaczego My?

-
+

Doświadczenie

@@ -267,7 +267,7 @@

Doświadczenie

-
+
Jakość @@ -278,7 +278,7 @@

Jakość

-
+

Zadowoleni Klienci

diff --git a/public_html/services.html b/public_html/services.html index ede80d728..446f2d2b1 100644 --- a/public_html/services.html +++ b/public_html/services.html @@ -240,7 +240,7 @@

Profesjonalne usługi serwisowe dla Twojej hulajnogi elektrycznej

-
+

Naprawa hulajnóg elektrycznych

@@ -261,7 +261,7 @@

Diagnostyka komputerowa

-
+

Naprawa hamulców

@@ -282,7 +282,7 @@

Inspekcja stanu technicznego

-
+

Chcesz poznać nasze ceny?

From 33b9e9aba6bd8f5ac7540fd98cbdd28f4fc778be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DraugSk=C3=B6ll?= Date: Wed, 25 Sep 2024 00:46:53 +0200 Subject: [PATCH 10/10] Update public_html/js/script.js Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --- public_html/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/js/script.js b/public_html/js/script.js index 3afe2e20a..3d868f3bc 100644 --- a/public_html/js/script.js +++ b/public_html/js/script.js @@ -95,7 +95,7 @@ $(document).ready(function () { const maxScroll = 300; // Adjust this value to set when the scaling stops let logoWidth = maxLogoScale - (scrollTop / maxScroll) * (maxLogoScale - minLogoScale); - if (logoWidth < minLogoScale) {logoWidth = minLogoScale}; + logoWidth = Math.max(logoWidth, minLogoScale); logo.css('width', logoWidth + 'px'); const maxPadding = 10; // Original padding top/bottom