From bc0c9b6987b72bf2d8f52641d0d442316936f4a1 Mon Sep 17 00:00:00 2001 From: ROMANGOLIENKO Date: Sat, 27 Apr 2024 14:56:24 +0300 Subject: [PATCH] completing visually-impaired mode --- app/Services/DirectonHtmlBuilderForCalculator.php | 4 ++-- resources/views/layouts/new-design-layout.blade.php | 13 ++++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/app/Services/DirectonHtmlBuilderForCalculator.php b/app/Services/DirectonHtmlBuilderForCalculator.php index fa3388d..8eb8786 100644 --- a/app/Services/DirectonHtmlBuilderForCalculator.php +++ b/app/Services/DirectonHtmlBuilderForCalculator.php @@ -196,12 +196,12 @@ class DirectonHtmlBuilderForCalculator
diff --git a/resources/views/layouts/new-design-layout.blade.php b/resources/views/layouts/new-design-layout.blade.php index 46fc744..0a568ca 100644 --- a/resources/views/layouts/new-design-layout.blade.php +++ b/resources/views/layouts/new-design-layout.blade.php @@ -220,7 +220,9 @@ .disabled { display: none; } - + .visually-impaired-text { + font-size: 150%!important; + } @@ -229,6 +231,15 @@ $(document).on("click", ".visually_impaired_mode_button", function () { + if(!$("body").hasClass('visually-impaired-text')){ + $("body").addClass('visually-impaired-text') + + + } + else { + $("body").removeClass('visually-impaired-text') + } + if($('div, a, p').hasClass('visually_impaired_mode_bg')){ $(".visually_impaired_mode").removeClass('visually_impaired_mode_bg'); -- 2.41.0