{"size": 2353, "ext": "js", "max_stars_repo_path": "node_modules/accessibility-buttons/dist/js/accessibility-buttons.min.js", "max_stars_repo_name": "mirrordesign/mirror", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "node_modules/accessibility-buttons/dist/js/accessibility-buttons.min.js", "max_issues_repo_name": "mirrordesign/mirror", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "node_modules/accessibility-buttons/dist/js/accessibility-buttons.min.js", "max_forks_repo_name": "mirrordesign/mirror", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 336.1428571429, "max_line_length": 2160, "alphanum_fraction": 0.7866553336}
/*!
*   Accessibility Buttons v3.1.2
*   http://tiagoporto.github.io/accessibility-buttons
*   Copyright (c) 2014-2017 Tiago Porto (http://tiagoporto.com)
*   Released under the MIT license
*/
var accessibilityButtons=function(t){"use strict";function e(t,e){return(" "+t.className+" ").indexOf(" "+e+" ")>-1}function a(){return function(){var t=this;e(s,t.getAttribute("id"))?(s.classList.remove(t.getAttribute("id")),"accessibility-font"===t.getAttribute("id")?(t.innerHTML=n.font.nameButtonIncrease,t.setAttribute("aria-label",n.font.ariaLabelButtonIncrease),localStorage.removeItem("accessibility_font")):(t.innerHTML=n.contrast.nameButtonAdd,t.setAttribute("aria-label",n.contrast.ariaLabelButtonAdd),localStorage.removeItem("accessibility_contrast"))):(s.classList.add(t.getAttribute("id")),"accessibility-font"===t.getAttribute("id")?(b||localStorage.setItem("accessibility_font",!0),t.innerHTML=n.font.nameButtonDecrease,t.setAttribute("aria-label",n.font.ariaLabelButtonDecrease)):(d||localStorage.setItem("accessibility_contrast",!0),t.innerHTML=n.contrast.nameButtonRemove,t.setAttribute("aria-label",n.contrast.ariaLabelButtonRemove)))}}var n={font:{nameButtonIncrease:"+A",ariaLabelButtonIncrease:"Increase Font",nameButtonDecrease:"-A",ariaLabelButtonDecrease:"Decrease Font"},contrast:{nameButtonAdd:"Add Contrast",ariaLabelButtonAdd:"Add Contrast",nameButtonRemove:"Remove Contrast",ariaLabelButtonRemove:"Remove Contrast"}};if(t)for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];for(var o in r)r.hasOwnProperty(o)&&(n[i][o]=r[o])}var s=document.body,c=document.getElementById("accessibility-font"),l=document.getElementById("accessibility-contrast"),u=document.getElementsByClassName("js-acessibility"),b=localStorage.accessibility_font,d=localStorage.accessibility_contrast;b&&c?(s.classList.add("accessibility-font"),c.innerHTML=n.font.nameButtonDecrease,c.setAttribute("aria-label",n.font.ariaLabelButtonDecrease)):c&&(c.innerHTML=n.font.nameButtonIncrease,c.setAttribute("aria-label",n.font.ariaLabelButtonIncrease)),d&&l?(s.classList.add("accessibility-contrast"),l.innerHTML=n.contrast.nameButtonRemove,l.setAttribute("aria-label",n.contrast.ariaLabelButtonRemove)):l&&(l.innerHTML=n.contrast.nameButtonAdd,l.setAttribute("aria-label",n.contrast.ariaLabelButtonAdd));for(var m=0;m<u.length;m++)u[m].addEventListener("click",a())};