HTTP/1.1 200 Connection established HTTP/1.1 200 OK Date: Tue, 16 Apr 2024 20:37:51 GMT Server: Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 OpenSSL/1.0.2k-fips PHP/7.4.33 X-Powered-By: PHP/7.4.33 Etag: "fb107d0f73ef2c2de2e87fdf3df8765a" Cache-Control: public, max-age=2592000 Content-Length: 7998 Connection: close Content-Type: application/javascript; charset= 'use strict';var _createClass=function(){function defineProperties(target,props){for(var i=0;iA\n\n \n\n \n\n \n \n ';var tmp=document.createElement('div');tmp.innerHTML=html;var panel=tmp.children[0];return panel;}},{key:'toggle',value:function toggle(){if(this._status==='enabled')this.disable();else this.enable();}},{key:'enable',value:function enable(){var panel=this._panel;var body=document.body;var key=this._statusKey;panel.classList.remove('disabled');body.classList.remove('accessibility-disabled');panel.classList.add('enabled');body.classList.add('accessibility-enabled');this._status='enabled';sessionStorage.setItem(key,'enabled');this._loadTheme();this._loadFont();this._loadSpace();this._loadSpace();}},{key:'disable',value:function disable(){var panel=this._panel;var body=document.body;var key=this._statusKey;panel.classList.remove('enabled');body.classList.remove('accessibility-enabled');panel.classList.add('disabled');body.classList.add('accessibility-disabled');this._status='disabled';sessionStorage.setItem(key,'disabled');this.resetTheme();this.resetFontSize();this.resetLetterSpace();}},{key:'setTheme',value:function setTheme(){var theme=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'';var key=this._themeKey;var body=document.body;var current=this._currentTheme;this._currentTheme='';if(current)body.classList.remove(current);this._currentTheme=theme;if(theme)body.classList.add(theme);sessionStorage.setItem(key,theme);}},{key:'resetTheme',value:function resetTheme(){this.setTheme();}},{key:'_incFontSizeOn',value:function _incFontSizeOn(){var offset=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;offset=parseInt(offset);var key=this._fontKey;var nodes=document.querySelectorAll('body *');nodes=[].slice.call(nodes);nodes.forEach(function(node){var original=parseInt(node.dataset['original_font_size'],10);var current=original;current+=offset;node.style.fontSize=current+'px';});sessionStorage.setItem(key,offset);}},{key:'incFontSize',value:function incFontSize(){var key=this._fontKey;var offset=sessionStorage.getItem(key);offset=offset!==null?offset:0;offset++;if(offset<=5)this._incFontSizeOn(offset);}},{key:'decFontSize',value:function decFontSize(){var key=this._fontKey;var offset=sessionStorage.getItem(key);offset=offset!==null?offset:0;offset--;if(offset>=-5)this._incFontSizeOn(offset);}},{key:'resetFontSize',value:function resetFontSize(){this._incFontSizeOn(0);}},{key:'resetLetterSpace',value:function resetLetterSpace(){this._incLetterSpaceOn(0);}},{key:'_incLetterSpaceOn',value:function _incLetterSpaceOn(){var offset=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;offset=parseInt(offset);var key=this._spaceKey;var nodes=document.querySelectorAll('body *');nodes=[].slice.call(nodes);nodes.forEach(function(node){var original=parseInt(node.dataset['original_letter_spacing'],10);var current=original;current+=offset;node.style.letterSpacing=current+'px';});sessionStorage.setItem(key,offset);}},{key:'incLetSpace',value:function incLetSpace(){var key=this._spaceKey;var offset=sessionStorage.getItem(key);offset=offset!==null?offset:0;offset++;if(offset<=5)this._incLetterSpaceOn(offset);}},{key:'decLetSpace',value:function decLetSpace(){var key=this._spaceKey;var offset=sessionStorage.getItem(key);offset=offset!==null?offset:0;offset--;if(offset>=0)this._incLetterSpaceOn(offset);}}]);return Accessibility;}();var panel=new Accessibility();