From 1e6642059cd748e04e50ea343a755bcbcdd69233 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Sun, 4 Aug 2024 15:56:57 -0500 Subject: [PATCH] Remove console log --- src/js/a11y.js | 1 - src/js/a11y.min.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/js/a11y.js b/src/js/a11y.js index 388f4d3..9025d23 100644 --- a/src/js/a11y.js +++ b/src/js/a11y.js @@ -110,7 +110,6 @@ function eraseCookie(name) { el.addEventListener( 'focus', function() { var bounds = el.getBoundingClientRect(); var toolbar = document.querySelector( '.a11y-toolbar' ).getBoundingClientRect(); - console.log( { bounds, toolbar } ); var overlap = !( bounds.top > toolbar.bottom || diff --git a/src/js/a11y.min.js b/src/js/a11y.min.js index ec0951d..287fe72 100644 --- a/src/js/a11y.min.js +++ b/src/js/a11y.min.js @@ -1 +1 @@ -(()=>{function i(t,r,a){if(a){var s=new Date;s.setTime(s.getTime()+a*24*60*60*1e3);var e="; expires="+s.toGMTString()}else var e="";document.cookie=t+"="+r+e+"; path=/; SameSite=Strict;"}function o(t){for(var r=t+"=",a=document.cookie.split(";"),s=0;s")),t("#is_normal_contrast").attr("id","is_high_contrast").attr("aria-pressed",!0).addClass("active"),t(".a11y-toolbar ul li a i").addClass("icon-white")),o("a11y-larger-fontsize")&&(t("html").addClass("fontsize"),t("#is_normal_fontsize").attr("id","is_large_fontsize").attr("aria-pressed",!0).addClass("active")),t(".toggle-grayscale").on("click",function(a){return t(this).attr("id")=="is_normal_color"?(t("body").addClass("desaturated"),t(this).attr("id","is_grayscale").attr("aria-pressed",!0).addClass("active"),i("a11y-desaturated","1")):(t("body").removeClass("desaturated"),t(this).attr("id","is_normal_color").attr("aria-pressed",!1).removeClass("active"),l("a11y-desaturated")),!1}),t(".toggle-contrast").on("click",function(a){return t(this).attr("id")=="is_normal_contrast"?(t("head").append(t("")),t("body").addClass("contrast"),t(this).attr("id","is_high_contrast").attr("aria-pressed",!0).addClass("active"),i("a11y-high-contrast","1")):(t("#highContrastStylesheet").remove(),t("body").removeClass("contrast"),t(this).attr("id","is_normal_contrast").attr("aria-pressed",!1).removeClass("active"),l("a11y-high-contrast")),!1}),t(".toggle-fontsize").on("click",function(a){return t(this).attr("id")=="is_normal_fontsize"?(t("html").addClass("fontsize"),t(this).attr("id","is_large_fontsize").attr("aria-pressed",!0).addClass("active"),i("a11y-larger-fontsize","1")):(t("html").removeClass("fontsize"),t(this).attr("id","is_normal_fontsize").attr("aria-pressed",!1).removeClass("active"),l("a11y-larger-fontsize")),!1});var r=document.querySelectorAll("input,a,select,textarea,button");r.forEach(a=>{a.addEventListener("focus",function(){var s=a.getBoundingClientRect(),e=document.querySelector(".a11y-toolbar").getBoundingClientRect();console.log({bounds:s,toolbar:e});var n=!(s.top>e.bottom||s.righte.right);if(n){var d=s.bottom-e.top;window.scrollBy(0,d)}})})})(jQuery);})(); +(()=>{function i(t,r,a){if(a){var s=new Date;s.setTime(s.getTime()+a*24*60*60*1e3);var e="; expires="+s.toGMTString()}else var e="";document.cookie=t+"="+r+e+"; path=/; SameSite=Strict;"}function o(t){for(var r=t+"=",a=document.cookie.split(";"),s=0;s")),t("#is_normal_contrast").attr("id","is_high_contrast").attr("aria-pressed",!0).addClass("active"),t(".a11y-toolbar ul li a i").addClass("icon-white")),o("a11y-larger-fontsize")&&(t("html").addClass("fontsize"),t("#is_normal_fontsize").attr("id","is_large_fontsize").attr("aria-pressed",!0).addClass("active")),t(".toggle-grayscale").on("click",function(a){return t(this).attr("id")=="is_normal_color"?(t("body").addClass("desaturated"),t(this).attr("id","is_grayscale").attr("aria-pressed",!0).addClass("active"),i("a11y-desaturated","1")):(t("body").removeClass("desaturated"),t(this).attr("id","is_normal_color").attr("aria-pressed",!1).removeClass("active"),l("a11y-desaturated")),!1}),t(".toggle-contrast").on("click",function(a){return t(this).attr("id")=="is_normal_contrast"?(t("head").append(t("")),t("body").addClass("contrast"),t(this).attr("id","is_high_contrast").attr("aria-pressed",!0).addClass("active"),i("a11y-high-contrast","1")):(t("#highContrastStylesheet").remove(),t("body").removeClass("contrast"),t(this).attr("id","is_normal_contrast").attr("aria-pressed",!1).removeClass("active"),l("a11y-high-contrast")),!1}),t(".toggle-fontsize").on("click",function(a){return t(this).attr("id")=="is_normal_fontsize"?(t("html").addClass("fontsize"),t(this).attr("id","is_large_fontsize").attr("aria-pressed",!0).addClass("active"),i("a11y-larger-fontsize","1")):(t("html").removeClass("fontsize"),t(this).attr("id","is_normal_fontsize").attr("aria-pressed",!1).removeClass("active"),l("a11y-larger-fontsize")),!1});var r=document.querySelectorAll("input,a,select,textarea,button");r.forEach(a=>{a.addEventListener("focus",function(){var s=a.getBoundingClientRect(),e=document.querySelector(".a11y-toolbar").getBoundingClientRect(),n=!(s.top>e.bottom||s.righte.right);if(n){var d=s.bottom-e.top;window.scrollBy(0,d)}})})})(jQuery);})();