Merge pull request 'completing visually-impaired mode' (#52) from RomanGolienko/Roman_applicant-site:feature/visually-impaired-mode into main
Tests & Lint & Deploy to Railway / build (2.6.6, 20.x, 8.3) (push) Successful in 4m0s Details
Tests & Lint & Deploy to Railway / deploy (push) Successful in 35s Details

Reviewed-on: http://gitea.mkgtu.ru/aslan/applicant-site/pulls/52
This commit is contained in:
aslan 2024-05-01 09:34:17 +03:00
commit 845da4727e
2 changed files with 14 additions and 3 deletions

View File

@ -196,12 +196,12 @@ class DirectonHtmlBuilderForCalculator
<div class=\"fs-5 mb-3 d-flex \" style=\"font-family: Geologica-Light\">
<button type='button' class='calc_green_circle_button hover2 btn btn-outline-success' data-institut='mgtu' data-id='{$direction['id']}calc'>
<img style='width: 8px; height: auto;' id = 'id_mgtu_{$direction['id']}calc' src='img/front-page/green-circle.png'>
<img style='width: 12px; height: auto;' id = 'id_mgtu_{$direction['id']}calc' src='img/front-page/green-circle.png'>
МГТУ
</button>
<button type='button' class='ms-2 calc_green_circle_button hover2 btn btn-outline-success' data-institut='filial' data-id='{$direction['id']}calc'>
<img style='display: none; width: 8px; height: auto;' id = 'id_filial_{$direction['id']}calc' src='img/front-page/green-circle.png'> Филиал МГТУ (пос. Яблоновский)
<img style='display: none; width: 12px; height: auto;' id = 'id_filial_{$direction['id']}calc' src='img/front-page/green-circle.png'> Филиал МГТУ (пос. Яблоновский)
</button>
</div>
</div>

View File

@ -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');