PageSourceSearch

https://webportal.nrada.gov.ua/wp-content/plugins/cool-accessibility/js/accessibility_menu.min.js?ver=7.0.6

js nrada.gov.ua collected 2026-10-02 04:38:32 UTC 94,320 bytes, 340 lines download raw bytes

1var coolaxs_ready=(callback)=>{if(document.readyState!="loading")callback();else document.addEventListener("DOMContentLoaded",callback);}
2coolaxs_ready(()=>{htmlElement=document.documentElement;function coolaxs_resize(){var coolaxs_isMobile=false;if(/(android|bb\d+|meego).+coolaxs_mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.
2substr(0,4)))coolaxs_isMobile=true;document.querySelector("#coolaxs_button_group_font_size").style.zIndex=1;document.querySelector("#coolaxs_font_size_group").style.zIndex=2;document.querySelector("#coolaxs_button_group_line_height").style.zIndex=3;document.querySelector("#coolaxs_line_height_group").style.zIndex=4;document.querySelector("#coolaxs_button_group_letter_spacing").style.zIndex=5;document.querySelector("#coolaxs_letter_spacing_group").style.zIndex=6;document.querySelector("#coolaxs_button_group_word_spacing").style.zIndex=7;document.querySelector("#coolaxs_word_spacing_group").style.zIndex=8;document.querySelector("#coolaxs_readable_font").style.zIndex=10;document.querySelector("#coolaxs_text_zoom").style.zIndex=12;document.querySelector("#coolaxs_accessibility_settings_group").style.zIndex=13;document.querySelector("#coolaxs_button_group_accessibility_settings").style.zIndex=1;if((coolaxs_isMobile)||((!coolaxs_isMobile)&&((window.innerWidth!=0)&&(window.innerWidth<1024)))){document.querySelector('.coolaxs_mobile_accessibility_panel').style.display='flex';htmlElement.classList.add("coolaxs_mobile");if(window.innerHeight>window.innerWidth){htmlElement.classList.remove("coolaxs_mobile_landscape");var mbp=document.querySelector('.coolaxs_top_or_bottom_mobile_pannel');mbp.appendChild(document.querySelector("#coolaxs_highlight_titles"));mbp.appendChild(document.querySelector("#coolaxs_highlight_links"));let div0=document.createElement('div');div0.classList.add('coolaxs_buttons_group');div0.appendChild(document.querySelector("#coolaxs_accessibility_settings_group"));div0.appendChild(document.querySelector("#coolaxs_button_group_accessibility_settings"));mbp.appendChild(div0);mbp.appendChild(document.querySelector("#coolaxs_reset_all_accessibility"));mbp=document.querySelector('.coolaxs_right_mobile_pannel');if(document.body.classList.contains("COOL_ACCESSIBILITY_top_accessibility_panel")){mbp.appendChild(document.querySelector("#coolaxs_text_zoom"));mbp.appendChild(document.querySelector("#coolaxs_readable_font"));coolaxs_append_4_text_flyouts(mbp);document.querySelector("#coolaxs_button_group_font_size").style.zIndex=7;document.querySelector("#coolaxs_font_size_group").style.zIndex=8;document.querySelector("#coolaxs_button_group_line_height").style.zIndex=5;document.querySelector("#coolaxs_line_height_group").style.zIndex=6;document.querySelector("#coolaxs_button_group_letter_spacing").style.zIndex=3;document.querySelector("#coolaxs_letter_spacing_group").style.zIndex=4
3document.querySelector("#coolaxs_button_group_word_spacing").style.zIndex=1;document.querySelector("#coolaxs_word_spacing_group").style.zIndex=2;}else{coolaxs_append_4_text_flyouts(mbp);mbp.appendChild(document.querySelector("#coolaxs_text_zoom"));mbp.appendChild(document.querySelector("#coolaxs_readable_font"));}
4var key_nav=document.querySelector("#coolaxs_keyboard_navigation");mbp=document.querySelector('.coolaxs_left_mobile_pannel');mbp.appendChild(document.querySelector("#coolaxs_invert_colors"));mbp.appendChild(document.querySelector("#coolaxs_bright_contrast"));mbp.appendChild(document.querySelector("#coolaxs_dark_contrast"));mbp.appendChild(key_nav);mbp.appendChild(document.querySelector("#coolaxs_big_white_cursor"));mbp.appendChild(document.querySelector("#coolaxs_big_black_cursor"));mbp.appendChild(document.querySelector("#coolaxs_stop_animations"));}else{htmlElement.classList.add("coolaxs_mobile_landscape");var mbp=document.querySelector(".coolaxs_top_or_bottom_mobile_pannel");let div0=document.createElement('div');div0.classList.add('coolaxs_buttons_group');div0.appendChild(document.querySelector("#coolaxs_accessibility_settings_group"));div0.appendChild(document.querySelector("#coolaxs_button_group_accessibility_settings"));mbp.appendChild(div0);mbp.appendChild(document.querySelector("#coolaxs_reset_all_accessibility"));coolaxs_append_4_text_flyouts(mbp);mbp.appendChild(document.querySelector("#coolaxs_readable_font"));mbp.appendChild(document.querySelector("#coolaxs_text_zoom"));mbp=document.querySelector(".coolaxs_right_mobile_pannel");mbp.appendChild(document.querySelector("#coolaxs_highlight_titles"));mbp.appendChild(document.querySelector("#coolaxs_highlight_links"));mbp.appendChild(document.querySelector("#coolaxs_big_white_cursor"));mbp.appendChild(document.querySelector("#coolaxs_big_black_cursor"));var key_nav=document.querySelector("#coolaxs_keyboard_navigation");mbp=document.querySelector('.coolaxs_left_mobile_pannel');mbp.appendChild(document.querySelector("#coolaxs_invert_colors"));mbp.appendChild(document.querySelector("#coolaxs_bright_contrast"));mbp.appendChild(document.querySelector("#coolaxs_dark_contrast"));mbp.appendChild(key_nav);mbp.appendChild(document.querySelector("#coolaxs_stop_animations"));}
5key_nav.style.display="none";document.querySelector("#coolaxs_right_accessibility_panel").style.display="none";document.querySelector("#coolaxs_left_accessibility_panel").style.display="none";document.querySelector("#coolaxs_show_keyboard_shortcuts_accessibility_panel").style.display="none";document.querySelector("#coolaxs_toggle_keyboard_shortcuts_accessibility_panel").style.display="none";return;}else{document.querySelector(".coolaxs_desktop_accessibility_panel").style.display="flex";}
6htmlElement.classList.remove("coolaxs_mobile");}
7coolaxs_resize();window.addEventListener('orientationchange',function(event){coolaxs_resize();});document.querySelector(".coolaxs_skip").addEventListener("click",(event)=>{var skipTo=document.querySelector('#coolaxs_skip_menu_to_this_id');if(skipTo==null){skipTo=document.querySelector('h1,h2,h3,h4,h5,h6');
7if(skipTo==null){skipTo=document.querySelector('body p');if(skipTo==null){skipTo=document.querySelector('body :a');}}}
8skipTo.setAttribute('tabindex',0).addEventListener("blur",coolaxs_blur_focusout_handler,false).addEventListener("focusout",coolaxs_blur_focusout_handler,false).focus();return false;});function coolaxs_blur_focusout_handler(event){event.currentTarget.removeAttribute('tabindex');}
9function coolaxs_display_floating_div(event,str){var debug=false;if(debug)console.log("|"+str+"|");if(str=="")return;var coolaxs_tail=document.querySelector('#coolaxs_tail');coolaxs_tail.style.display='block';var opacity=window.getComputedStyle(coolaxs_tail).getPropertyValue("opacity");var previous_str=coolaxs_tail.textContent;if((opacity==1)&&(str!=previous_str)){coolaxs_tail.classList.add("fastfade");setTimeout(()=>{coolaxs_tail.textContent=str;coolaxs_tail.classList.remove("fastfade");},660);}else
10coolaxs_tail.textContent=str;var viewport_width=window.innerWidth;var viewport_height=window.innerHeight;if(debug)console.log("|viewport_width,viewport_height|"+viewport_width+" "+viewport_height);var half_box_width=coolaxs_tail.offsetWidth / 2;var half_box_height=coolaxs_tail.offsetHeight / 2;if(debug)console.log("|half_box_width,half_box_height|"+half_box_width+" "+half_box_height);var x=event.clientX;var y=event.clientY;if(debug)console.log("mouse cursor: (x,y) :"+x+" "+y);var extra_margin=30;var extra_y_margin=50;var x_diff=x-half_box_width;var y_diff=y-half_box_height;var x_offset=0;var y_offset=extra_y_margin;if(x_diff<0)x_offset=-x_diff+extra_margin;else if((x+half_box_width)>viewport_width)x_offset-=((x+half_box_width)-viewport_width)+extra_margin;if(y_diff<0)y_offset=-y_diff+extra_margin;else if((y+half_box_height+extra_y_margin)>viewport_height)y_offset-=((y+half_box_height)-viewport_height)+extra_margin+2*extra_y_margin;if(debug)console.log("x_offset: "+x_offset+" , y_offset: "+y_offset);var positionLeft=x_diff+x_offset;var positionTop=y_diff+y_offset;if(debug)console.log("|"+str+"|"+" positionLeft: "+positionLeft+" positionTop: "+positionTop);coolaxs_tail.style.cssText=`display:block;position:fixed;left:${positionLeft}px;top:${positionTop}px;`;coolaxs_tail.classList.remove("fade");}
11function coolaxs_tail_fadeout(){var coolaxs_tail=document.querySelector('#coolaxs_tail');coolaxs_tail.classList.add("fade");}
12var coolaxs_all_divs=document.getElementsByTagName("div");for(let i=0;i<coolaxs_all_divs.length;i++){var one_div=coolaxs_all_divs[i];one_div.addEventListener("mouseover",coolaxs_divMouseOver,false);one_div.addEventListener("mouseout",coolaxs_divMouseOut,false);}
13function coolaxs_divMouseOver(event){if(localStorage.getItem('coolaxs_textZoomWindow')!='true')
14return;if(event.currentTarget.getAttribute('title')==null)
15return;try{var title=event.currentTarget.getAttribute('title').trim();}
16catch(err){return;}
17if(typeof title!==typeof undefined&&title!==false){coolaxs_display_floating_div(event,title.trim());}}
18function coolaxs_divMouseOut(){coolaxs_tail_fadeout();}
19for(let i=0;i<coolaxs_all_divs.length;i++){var one_div=coolaxs_all_divs[i];one_div.addEventListener("click",coolaxs_divClickedOrFocused,false);one_div.addEventListener("focus",coolaxs_divClickedOrFocused,false);}
20function coolaxs_divClickedOrFocused(event){if(localStorage.getItem('coolaxs_textZoomWindow')!='true')
21return;if(!(event.which===13)||(event.type==='click')){return;}
22try{var title=event.currentTarget.getAttribute('title').trim();}
23catch(err){return;}
24if(typeof title!==typeof undefined&&title!==false){coolaxs_display_floating_div(event,title.trim());}}
25function coolaxs_removeEnterAndTabs(str){var new_str="";var i,k;for(i=0;i<str.length;i++){k=str.charCodeAt(i);if((k!=9)&&(k!=10)){new_str+=str.charAt(i);break;}}
26var new_str2="";for(i=new_str.length-1;i>=0;i--){k=new_str.charCodeAt(i);if((k!=9)&&(k!=10)){new_str2+=new_str.charAt(i);break;}}
27return new_str2;}
28var coolaxs_css_selector_strings='h1,h2,h3,h4,h5,h6,span,p,label,a:not(img,noscript),div:not( div h1,div h2,div h3,div h4,div h5,div h6,div p,div label,div a,div div,div span,div img,div noscript)';var coolaxs_selectors_collection=document.querySelectorAll(coolaxs_css_selector_strings);for(let i=0;i<coolaxs_selectors_collection.length;i++){var one_item=coolaxs_selectors_collection[i];one_item.addEventListener("mouseover",coolaxs_MouseOverText,false);one_item.addEventListener("mouseout",coolaxs_divMouseOut,false);}
29function coolaxs_MouseOverText(event){var debug=false;var current_val=event.currentTarget;if(localStorage.getItem('coolaxs_textZoomWindow')!='true')
30return;var tag_name=current_val.tagName;if(debug)console.log("|"+tag_name+"|");var str="",str_total="";if(current_val.childNodes.length>0){if(debug)console.log("current_val.childNodes: "+current_val.childNodes.length);const nodeList=current_val.childNodes;tags_array=["MARK","A","SPAN","STRONG","EM","SUP","SUB","SMALL","I","B","U","CODE","BLOCKQUOTE"];for(let i=0;i<nodeList.length;i++){str="";if(nodeList[i].nodeName=="#text")
31str=nodeList[i].nodeValue;else{for(let j=0;j<tags_array.length;j++)
32if(nodeList[i].nodeName==tags_array[j])str=nodeList[i].innerHTML;}
33str_total=str_total.trim(coolaxs_removeEnterAndTabs(str_total));var last_character=str.slice(-1);if(last_character!=" ")str_total+=" ";str_total+=str;if(debug)console.log(str_total);}}
34if(debug)console.log(str);if((str!=null)&&(typeof str!=='undefined')){str=str.trim(coolaxs_removeEnterAndTabs(str));if(str.length>0){coolaxs_display_floating_div(event,str_total);}}}
35var coolaxs_all_images=document.getElementsByTagName("img");for(let i=0;i<coolaxs_all_images.length;i++){var one_img=coolaxs_all_images[i];one_img.addEventListener("mouseover",coolaxs_img_and_area_MouseOver,false);one_img.addEventListener("mouseout",coolaxs_divMouseOut,false);}
36var coolaxs_all_areas=document.getElementsByTagName("area");for(let i=0;i<coolaxs_all_areas.length;i++){var one_area=coolaxs_all_areas[i];one_area.addEventListener("mouseover",coolaxs_img_and_area_MouseOver,false);one_area.addEventListener("mouseout",coolaxs_divMouseOut,false);}
37function coolaxs_img_and_area_MouseOver(event){if(localStorage.getItem('coolaxs_textZoomWindow')!='true')
38return;var attr=event.currentTarget.getAttribute('alt');if(typeof attr!==typeof undefined&&attr!==false){var str=event.currentTarget.getAttribute('alt');if(typeof str!=='undefined'){str=str.trim(coolaxs_removeEnterAndTabs(str));if(str.length>0){coolaxs_display_floating_div(event,str);}}}}
39function coolaxs_resetAllaccessibility(){localStorage.clear();location.reload();}
40var coolaxs_reset_all_accessibility_item=document.querySelector('#coolaxs_reset_all_accessibility');coolaxs_reset_all_accessibility_item.addEventListener("click",coolaxs_resetClickedOrKeyPressed,false);coolaxs_reset_all_accessibility_item.addEventListener("keypress",coolaxs_resetClickedOrKeyPressed,false);function coolaxs_resetClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
41coolaxs_resetAllaccessibility();event.preventDefault();}
42window.coolaxs_slide_accessibility_menu_direction="down";var coolaxs_text_tags_LetterSpacing='h1,h2,h3,h4,h5,h6,span,p,label,div:not( div h1,div h2,div h3,div h4,div h5,div h6,div p,div label,div a),:not(a.li)';function coolaxs_updateLetterSpacingButtonBackground(){if(localStorage.getItem('COOL_ACCESSIBILITY_LetterSpacingMemOffset')){if(localStorage.getItem('COOL_ACCESSIBILITY_LetterSpacingMemOffset')!=0)
43document.querySelector('#coolaxs_letter_spacing_group').classList.add('coolaxs_acivated_button');else
44document.querySelector('#coolaxs_letter_spacing_group').classList.remove('coolaxs_acivated_button');}}
45function coolaxs_resizeLetterSpacing(offset){var debug=false;var elements=document.querySelectorAll(coolaxs_text_tags_LetterSpacing);var elArray=Array.prototype.slice.call(elements);elArray.forEach(function(value,index){if(debug)console.log(index,value);var currentSize=value.style.letterSpacing;if(currentSize.indexOf("px")==-1)
46currentSize=0;if(debug)console.log("=== currentSize:"+currentSize);currentSize=(parseFloat(currentSize)+offset)+"px";value.style.letterSpacing=currentSize;if(debug)console.log("resized Size:"+currentSize);});}
47function coolaxs_reCreatePageLetterSpacing(){if(localStorage.getItem('COOL_ACCESSIBILITY_LetterSpacingMemOffset')){coolaxs_resizeLetterSpacing(0);var totalMemOffset=localStorage.getItem('COOL_ACCESSIBILITY_LetterSpacingMemOffset');coolaxs_resizeLetterSpacing(totalMemOffset);coolaxs_updateLetterSpacingButtonBackground();}}
48function coolaxs_increasePageLetterSpacing(){if(!localStorage.getItem('COOL_ACCESSIBILITY_LetterSpacingMemOffset'))
49localStorage.setItem('COOL_ACCESSIBILITY_LetterSpacingMemOffset',0);var totalMemOffset=parseFloat(localStorage.getItem('COOL_ACCESSIBILITY_LetterSpacingMemOffset'));totalMemOffset+=1;localStorage.setItem('COOL_ACCESSIBILITY_LetterSpacingMemOffset',totalMemOffset);coolaxs_resizeLetterSpacing(1);coolaxs_updateLetterSpacingButtonBackground();}
50var coolaxs_increase_letter_spacing_item=document.querySelector('#coolaxs_increase_letter_spacing');coolaxs_increase_letter_spacing_item.addEventListener("click",coolaxs_increase_letter_spacingClickedOrKeyPressed,false);coolaxs_increase_letter_spacing_item.addEventListener("keypress",coolaxs_increase_letter_spacingClickedOrKeyPressed,false);function coolaxs_increase_letter_spacingClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
51coolaxs_increasePageLetterSpacing();event.preventDefault();}
52function coolaxs_decreasePageLetterSpacing(){if(!localStorage.getItem('COOL_ACCESSIBILITY_LetterSpacingMemOffset'))localStorage.setItem('COOL_ACCESSIBILITY_LetterSpacingMemOff
52set',0);var totalMemOffset=parseFloat(localStorage.getItem('COOL_ACCESSIBILITY_LetterSpacingMemOffset'));totalMemOffset-=1;localStorage.setItem('COOL_ACCESSIBILITY_LetterSpacingMemOffset',totalMemOffset);coolaxs_resizeLetterSpacing(-1);coolaxs_updateLetterSpacingButtonBackground();}
53var coolaxs_decrease_letter_spacing_item=document.querySelector('#coolaxs_decrease_letter_spacing');coolaxs_decrease_letter_spacing_item.addEventListener("click",coolaxs_decrease_letter_spacingClickedOrKeyPressed,false);coolaxs_decrease_letter_spacing_item.addEventListener("keypress",coolaxs_decrease_letter_spacingClickedOrKeyPressed,false);function coolaxs_decrease_letter_spacingClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
54coolaxs_decreasePageLetterSpacing();event.preventDefault();}
55function coolaxs_resetPageLetterSpacing(){if(localStorage.getItem('COOL_ACCESSIBILITY_LetterSpacingMemOffset')){var totalMemOffset=localStorage.getItem('COOL_ACCESSIBILITY_LetterSpacingMemOffset');coolaxs_resizeLetterSpacing(-totalMemOffset);localStorage.setItem('COOL_ACCESSIBILITY_LetterSpacingMemOffset',0);coolaxs_updateLetterSpacingButtonBackground();}}
56var coolaxs_reset_letter_spacing_item=document.querySelector('#coolaxs_reset_letter_spacing');coolaxs_reset_letter_spacing_item.addEventListener("click",coolaxs_reset_letter_spacingClickedOrKeyPressed,false);coolaxs_reset_letter_spacing_item.addEventListener("keypress",coolaxs_reset_letter_spacingClickedOrKeyPressed,false);function coolaxs_reset_letter_spacingClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
57coolaxs_resetPageLetterSpacing();event.preventDefault();}
58var coolaxs_text_tags_WordSpacing='h1,h2,h3,h4,h5,h6, li, a,div:not( div div, div h1,div h2,div h3,div h4,div h5,div h6,div p,div label,div a)';function coolaxs_updateWordSpacingButtonBackground(){if(localStorage.getItem('COOL_ACCESSIBILITY_WordSpacingMemOffset')){if(localStorage.getItem('COOL_ACCESSIBILITY_WordSpacingMemOffset')!=0)
59document.querySelector('#coolaxs_word_spacing_group').classList.add('coolaxs_acivated_button');else
60document.querySelector('#coolaxs_word_spacing_group').classList.remove('coolaxs_acivated_button');}}
61function coolaxs_resizeWordSpacing(offset){var debug=false;var elements=document.querySelectorAll(coolaxs_text_tags_WordSpacing);var elArray=Array.prototype.slice.call(elements);elArray.forEach(function(value,index){if(debug)console.log(index,value);var cssObj=window.getComputedStyle(value,null);var currentSize=cssObj.getPropertyValue("word-spacing");if(debug)console.log("=== currentSize:"+currentSize);currentSize=(parseFloat(currentSize)+offset)+"px";value.style.wordSpacing=currentSize;if(debug)console.log("resized Size:"+currentSize);});}
62function coolaxs_reCreatePageWordSpacing(){if(localStorage.getItem('COOL_ACCESSIBILITY_WordSpacingMemOffset')){coolaxs_resizeWordSpacing(0);var totalMemOffset=localStorage.getItem('COOL_ACCESSIBILITY_WordSpacingMemOffset');coolaxs_resizeWordSpacing(totalMemOffset);coolaxs_updateWordSpacingButtonBackground();}}
63function coolaxs_increasePageWordSpacing(){if(!localStorage.getItem('COOL_ACCESSIBILITY_WordSpacingMemOffset'))localStorage.setItem('COOL_ACCESSIBILITY_WordSpacingMemOffset',0);var totalMemOffset=parseFloat(localStorage.getItem('COOL_ACCESSIBILITY_WordSpacingMemOffset'));totalMemOffset+=1;localStorage.setItem('COOL_ACCESSIBILITY_WordSpacingMemOffset',totalMemOffset);coolaxs_resizeWordSpacing(1);coolaxs_updateWordSpacingButtonBackground();}
64var coolaxs_increase_word_spacing_item=document.querySelector('#coolaxs_increase_word_spacing');coolaxs_increase_word_spacing_item.addEventListener("click",coolaxs_increase_word_spacing_ClickedOrKeyPressed,false);coolaxs_increase_word_spacing_item.addEventListener("keypress",coolaxs_increase_word_spacing_ClickedOrKeyPressed,false);function coolaxs_increase_word_spacing_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
65coolaxs_increasePageWordSpacing();event.preventDefault();}
66function coolaxs_decreasePageWordSpacing(){if(!localStorage.getItem('COOL_ACCESSIBILITY_WordSpacingMemOff
66set'))localStorage.setItem('COOL_ACCESSIBILITY_WordSpacingMemOffset',0);var totalMemOffset=parseFloat(localStorage.getItem('COOL_ACCESSIBILITY_WordSpacingMemOffset'));if(totalMemOffset>=1){totalMemOffset-=1;localStorage.setItem('COOL_ACCESSIBILITY_WordSpacingMemOffset',totalMemOffset);coolaxs_resizeWordSpacing(-1);coolaxs_updateWordSpacingButtonBackground();}}
67var coolaxs_decrease_word_spacing_item=document.querySelector('#coolaxs_decrease_word_spacing');coolaxs_decrease_word_spacing_item.addEventListener("click",coolaxs_decrease_word_spacing_ClickedOrKeyPressed,false);coolaxs_decrease_word_spacing_item.addEventListener("keypress",coolaxs_decrease_word_spacing_ClickedOrKeyPressed,false);function coolaxs_decrease_word_spacing_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
68coolaxs_decreasePageWordSpacing();event.preventDefault();}
69function coolaxs_resetPageWordSpacing(){if(localStorage.getItem('COOL_ACCESSIBILITY_WordSpacingMemOffset')){var totalMemOffset=localStorage.getItem('COOL_ACCESSIBILITY_WordSpacingMemOffset');coolaxs_resizeWordSpacing(-totalMemOffset);localStorage.setItem('COOL_ACCESSIBILITY_WordSpacingMemOffset',0);coolaxs_updateWordSpacingButtonBackground();}}
70var coolaxs_reset_word_spacing_item=document.querySelector('#coolaxs_reset_word_spacing');coolaxs_reset_word_spacing_item.addEventListener("click",coolaxs_reset_word_spacing_ClickedOrKeyPressed,false);coolaxs_reset_word_spacing_item.addEventListener("keypress",coolaxs_reset_word_spacing_ClickedOrKeyPressed,false);function coolaxs_reset_word_spacing_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
71coolaxs_resetPageWordSpacing();event.preventDefault();}
72var coolaxs_text_tags_LineHeight='p,div:not( div h1,div h2,div h3,div h4,div h5,div h6,div p,div label,div a),:not(a.li)';function coolaxs_resizeLineHeight(){var multiplier=localStorage.getItem('COOL_ACCESSIBILITY_lineHeightMultiplier');if(multiplier){if(multiplier!=0)
73document.querySelector('#coolaxs_line_height_group').classList.add('coolaxs_acivated_button');else
74document.querySelector('#coolaxs_line_height_group').classList.remove('coolaxs_acivated_button');}
75var debug=false;var elements=document.querySelectorAll(coolaxs_text_tags_LineHeight);var elArray=Array.prototype.slice.call(elements);elArray.forEach(function(value,index){var cssObj=window.getComputedStyle(value,null);var currentSize=cssObj.getPropertyValue("line-height");if(debug)console.log(" Before: "+value+" currentLineHeight: "+currentSize);var currentSize=parseFloat(currentSize);var initLineHeight=parseFloat(value.getAttribute('data-coolaxs-initLineHeight'));if(debug)console.log("initLineHeight "+initLineHeight+", currentSize :"+currentSize);if(isNaN(initLineHeight)){initLineHeight=parseFloat(currentSize);value.setAttribute('data-coolaxs-initLineHeight',String(initLineHeight));}
76currentSize=(parseFloat(initLineHeight)+parseFloat(multiplier))+"px";if(debug)console.log(initLineHeight+" + "+multiplier+" => currentLineHeight: "+currentSize);value.style.lineHeight=currentSize;});}
77function coolaxs_LineHeightAddDataAttrOnLoad(){var debug=false;var elements=document.querySelectorAll(coolaxs_text_tags_LineHeight);var elArray=Array.prototype.slice.call(elements);elArray.forEach(function(value,index){var cssObj=window.getComputedStyle(value,null);var currentSize=cssObj.getPropertyValue("line-height");if(debug)console.log(" Before: "+value+" currentLineHeight: "+currentSize);value.setAttribute('data-coolaxs-initLineHeight',String(currentSize));});}
78function coolaxs_reCreatePageLineHeight(){if(localStorage.getItem('COOL_ACCESSIBILITY_lineHeightMultiplier')){coolaxs_LineHeightAddDataAttrOnLoad();coolaxs_resizeLineHeight();}}
79function coolaxs_increasePageLineHeight(){if(!localStorage.getItem('COOL_ACCESSIBILITY_lineHeightMultiplier'))localStorage.setItem('COOL_ACCESSIBILITY_lineHeightMultiplier',0);var lineHeightMultiplier=parseFloat(localStorage.getItem('COOL_ACCESSIBILITY_lineHeightMultiplier'));lineHeightMultiplier+=1;if(lineHeightMultiplier>40)
80localStorage.setItem('COOL_ACCESSIBILITY_lineHeightMultiplier',0);else
81localStorage.setItem('COOL_ACCESSIBILITY_lineHeightMultiplier',lineHeightMultiplier);coolaxs_resizeLineHeight();}
82var coolaxs_increase_line_height_item=document.querySelector('#coolaxs_increase_line_height');coolaxs_increase_line_height_item.addEventListener("click",coolaxs_increase_line_height_ClickedOrKeyPressed,false);coolaxs_increase_line_height_item.addEventListener("keypress",coolaxs_increase_line_height_ClickedOrKeyPressed,false);function coolaxs_increase_line_height_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
83coolaxs_increasePageLineHeight();event.preventDefault();}
84function coolaxs_decreasePageLineHeight(){if(!localStorage.getItem('COOL_ACCESSIBILITY_lineHeightMultiplier'))localStorage.setItem('COOL_ACCESSIBILITY_lineHeightMultiplier',0);var lineHeightMultiplier=parseFloat(localStorage.getItem('COOL_ACCESSIBILITY_lineHeightMultiplier'));lineHeightMultiplier-=1;if(lineHeightMultiplier<0)
85localStorage.setItem('COOL_ACCESSIBILITY_lineHeightMultiplier',0);else
86localStorage.setItem('COOL_ACCESSIBILITY_lineHeightMultiplier',lineHeightMultiplier);coolaxs_resizeLineHeight();}
87var coolaxs_decrease_line_height_item=document.querySelector('#coolaxs_decrease_line_height');coolaxs_decrease_line_height_item.addEventListener("click",coolaxs_decrease_line_height_ClickedOrKeyPressed,false);coolaxs_decrease_line_height_item.addEventListener("keypress",coolaxs_decrease_line_height_ClickedOrKeyPressed,false);function coolaxs_decrease_line_height_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
88coolaxs_decreasePageLineHeight();event.preventDefault();}
89function coolaxs_resetPageLineHeight(){localStorage.setItem('COOL_ACCESSIBILITY_lineHeightMultiplier',0);coolaxs_resizeLineHeight();}
90var coolaxs_reset_line_height_item=document.querySelector('#coolaxs_reset_line_height');coolaxs_reset_line_height_item.addEventListener("click",coolaxs_reset_line_heightt_ClickedOrKeyPressed,false);coolaxs_reset_line_height_item.addEventListener("keypress",coolaxs_reset_line_heightt_ClickedOrKeyPressed,false);function coolaxs_reset_line_heightt_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
91coolaxs_resetPageLineHeight();event.preventDefault();}
92var coolaxs_text_tags_FontSize='div:not( div div,div h1,div h2,div h3,div h4,div h5,div h6,div p,div label,div a),p,h1,h2,h3,h4,h5,h6, li, a';
92function coolaxs_updateFontSizeButtonBackground(){var multiplier=localStorage.getItem('fontSizeMultiplier');if(multiplier){if(multiplier!=1)
93document.querySelector('#coolaxs_font_size_group').classList.add('coolaxs_acivated_button');else
94document.querySelector('#coolaxs_font_size_group').classList.remove('coolaxs_acivated_button');}}
95function coolaxs_resizeText(){var multiplier=localStorage.getItem('fontSizeMultiplier');var update_times=0;var debug=false;var elements=document.querySelectorAll(coolaxs_text_tags_FontSize);var elArray=Array.prototype.slice.call(elements);elArray.forEach(function(value,index){var cssObj=window.getComputedStyle(value,null);var currentSize=cssObj.getPropertyValue("font-size");if(debug)console.log(" Before: "+value+" currentFontSize: "+currentSize);if(currentSize){var currentSize=parseFloat(currentSize);if(currentSize>0){var currentSize=parseFloat(currentSize);var initFontSize=parseFloat(value.getAttribute('data-coolaxs-initFontSize'));if(debug)console.log("initFontSize "+initFontSize+", currentSize :"+currentSize);if(isNaN(initFontSize)){initFontSize=currentSize;value.setAttribute('data-coolaxs-initFontSize',String(initFontSize));if(debug)console.log("'data-coolaxs-initFontSize' was 'NaN' and was just set to : "+initFontSize);}
96if(multiplier>0){currentSize=initFontSize*multiplier;if(debug)console.log(initFontSize+" * "+multiplier+" => currentFontSize: "+currentSize);value.style.fontSize=currentSize+"px";}}}});}
97function coolaxs_FontSizesAddDataAttrOnLoad(){var debug=false;var elements=document.querySelectorAll(coolaxs_text_tags_FontSize);var elArray=Array.prototype.slice.call(elements);elArray.forEach(function(value,index){var cssObj=window.getComputedStyle(value,null);var currentSize=cssObj.getPropertyValue("font-size");if(debug)console.log(" Before: "+value+" current font-size: "+currentSize);if(currentSize>0)
98value.setAttribute('data-coolaxs-initFontSize',String(currentSize));});}
99function coolaxs_reCreatePageFontSizes(){if(localStorage.getItem('fontSizeMultiplier')){coolaxs_FontSizesAddDataAttrOnLoad();coolaxs_resizeText();coolaxs_updateFontSizeButtonBackground();}}
100function coolaxs_increasePageFontSizes(){if(!localStorage.getItem('fontSizeMultiplier'))localStorage.setItem('fontSizeMultiplier',1);var fontSizeMultiplier=localStorage.getItem('fontSizeMultiplier')*1.25;if(fontSizeMultiplier>3)
101localStorage.setItem('fontSizeMultiplier',1);else
102localStorage.setItem('fontSizeMultiplier',fontSizeMultiplier);coolaxs_resizeText();coolaxs_updateFontSizeButtonBackground();}
103var coolaxs_increase_font_size_item=document.querySelector('#coolaxs_increase_font_size');coolaxs_increase_font_size_item.addEventListener("click",coolaxs_increase_font_size_ClickedOrKeyPressed,false);coolaxs_increase_font_size_item.addEventListener("keypress",coolaxs_increase_font_size_ClickedOrKeyPressed,false);function coolaxs_increase_font_size_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
104coolaxs_increasePageFontSizes();event.preventDefault();}
105function coolaxs_decreasePageFontSizes(){if(!localStorage.getItem('fontSizeMultiplier'))localStorage.setItem('fontSizeMultiplier',1);localStorage.setItem('fontSizeMultiplier',localStorage.getItem('fontSizeMultiplier')*0.8);coolaxs_resizeText();coolaxs_updateFontSizeButtonBackground();}
106var coolaxs_decrease_font_size_item=document.querySelector('#coolaxs_decrease_font_size');coolaxs_decrease_font_size_item.addEventListener("click",coolaxs_decrease_font_size_ClickedOrKeyPressed,false);coolaxs_decrease_font_size_item.addEventListener("keypress",coolaxs_decrease_font_size_ClickedOrKeyPressed,false);function coolaxs_decrease_font_size_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
107coolaxs_decreasePageFontSizes();event.preventDefault();}
108function coolaxs_resetPageFontSizes(){localStorage.setItem('fontSizeMultiplier',1);coolaxs_resizeText();coolaxs_updateFontSizeButtonBackground();}
109var coolaxs_reset_font_size_item=document.querySelector('#coolaxs_reset_font_size');coolaxs_reset_font_size_item.addEventListener("click",coolaxs_reset_font_size_ClickedOrKeyPressed,false);coolaxs_reset_font_size_item.addEventListener("keypress",coolaxs_reset_font_size_ClickedOrKeyPressed,false);function coolaxs_reset_font_size_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
110coolaxs_resetPageFontSizes();event.preventDefault();}
111function coolaxs_resetaccessibilityContrasts(){if(localStorage.getItem('COOL_ACCESSIBILITY_BrightContrast')=="true")coolaxs_resetBrightContrast();if(localStorage.getItem('COOL_ACCESSIBILITY_DarkContrast')=="true")coolaxs_resetDarkContrast();if(localStorage.getItem('COOL_ACCESSIBILITY_invertPageColors')=="true")coolaxs_resetInvertColors();}
112function coolaxs_invertPageColors(){htmlElement.classList.toggle("coolaxs_inversed");var invertPageColorsValue=localStorage.getItem('COOL_ACCESSIBILITY_invertPageColors');if(invertPageColorsValue=="true"){document.querySelector('#coolaxs_invert_colors').classList.add('coolaxs_acivated_button');}else{document.querySelector('#coolaxs_invert_colors').classList.remove('coolaxs_acivated_button');}}
113function coolaxs_reCreateInvertColors(){var invertPageColorsValue=localStorage.getItem('COOL_ACCESSIBILITY_invertPageColors');if(invertPageColorsValue=="true")
114coolaxs_invertPageColors();}
115function coolaxs_resetInvertColors(){document.querySelector('#coolaxs_invert_colors').classList.remove("coolaxs_acivated_button");localStorage.setItem('COOL_ACCESSIBILITY_invertPageColors',"false");htmlElement.classList.remove("coolaxs_inversed");}
116function coolaxs_toggleInvertColors(){if(!localStorage.getItem('COOL_ACCESSIBILITY_invertPageColors')){localStorage.setItem('COOL_ACCESSIBILITY_invertPageColors','false');}
117var invertPageColorsValue=localStorage.getItem('COOL_ACCESSIBILITY_invertPageColors');if(invertPageColorsValue=="false"){coolaxs_resetaccessibilityContrasts();invertPageColorsValue="true";}else{invertPageColorsValue="false";}
118localStorage.setItem('COOL_ACCESSIBILITY_invertPageColors',invertPageColorsValue);coolaxs_invertPageColors();}
119var coolaxs_invert_colors_item=document.querySelector('#coolaxs_invert_colors');coolaxs_invert_colors_item.addEventListener("click",coolaxs_invert_colors_ClickedOrKeyPressed,false);coolaxs_invert_colors_item.addEventListener("keypress",coolaxs_invert_colors_ClickedOrKeyPressed,false);function coolaxs_invert_colors_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
120coolaxs_toggleInvertColors();event.preventDefault();}
121var chosen_accessibilty_highlight_links_color=coolaxs_accessibilty_highlight_links_color;var chosen_accessibilty_highlight_links_influence_button_mode=coolaxs_accessibilty_highlight_links_influence_button_mode;var chosen_override_coolaxs_highlight_links_class_border_bottom_color=coolaxs_override_coolaxs_highlight_links_class_border_bottom_color;var debug_chosen_accessibilty_highlight_links_color=false;
121if(debug_chosen_accessibilty_highlight_links_color)console.log("getting variable from PHP : chosen_accessibilty_highlight_links_color "+chosen_accessibilty_highlight_links_color);function coolaxs_highlightPageLinks(value){var debug=false;var coolaxs_highlight_tags;if(chosen_accessibilty_highlight_links_influence_button_mode=="links_and_focusable"){coolaxs_highlight_tags='a[href], button, [href], input, select, textarea, details, [tabindex]:not([tabindex="-1"])';}else{coolaxs_highlight_tags="a";}
122if(value===null)
123return;if(value=="true"){document.querySelectorAll(coolaxs_highlight_tags).forEach(val=>{val.classList.add('coolaxs_highlight_links');});if(chosen_override_coolaxs_highlight_links_class_border_bottom_color){document.querySelectorAll(coolaxs_highlight_tags).forEach(val=>{var cssObj=window.getComputedStyle(val,null);var currentBorderBottomColor=cssObj.getPropertyValue("border-bottom-color");if(debug)console.log(" Before: "+val+" currentBorderBottomColor: "+currentBorderBottomColor);if(currentBorderBottomColor){var initBorderBottomColor=val.getAttribute('data-coolaxs-initBorderBottomColor');if(!initBorderBottomColor){initBorderBottomColor=currentBorderBottomColor;val.setAttribute('data-coolaxs-initBorderBottomColor',initBorderBottomColor);}
124currentBorderBottomColor=chosen_accessibilty_highlight_links_color;if(debug)console.log("initBorderBottomColor => currentBorderBottomColor: "+currentBorderBottomColor);val.style.borderBottomColor=currentBorderBottomColor;}});}}else{document.querySelectorAll(coolaxs_highlight_tags).forEach(val=>{val.classList.remove('coolaxs_highlight_links');});if(chosen_override_coolaxs_highlight_links_class_border_bottom_color){document.querySelectorAll(coolaxs_highlight_tags).forEach(val=>{var cssObj=window.getComputedStyle(val,null);var currentBorderBottomColor=cssObj.getPropertyValue("border-bottom-color");if(currentBorderBottomColor){var initBorderBottomColor=val.getAttribute('data-coolaxs-initBorderBottomColor');val.style.borderBottomColor=initBorderBottomColor;}});}}
125var coolaxs_highlightPageLinks=localStorage.getItem('coolaxs_highlightPageLinks');if(coolaxs_highlightPageLinks=="true"){document.querySelector('#coolaxs_highlight_links').classList.add('coolaxs_acivated_button');}else{document.querySelector('#coolaxs_highlight_links').classList.remove('coolaxs_acivated_button');}}
126function coolaxs_reCreateHighlightLinks(){var highlightPageLinksValue=localStorage.getItem('coolaxs_highlightPageLinks');if(highlightPageLinksValue!=null)
127coolaxs_highlightPageLinks(highlightPageLinksValue);}
128function coolaxs_toggleHighlightLinks(){var highlightPageLinksValue=localStorage.getItem('coolaxs_highlightPageLinks');if(highlightPageLinksValue===null)
129highlightPageLinksValue="false";if(highlightPageLinksValue=="false"){highlightPageLinksValue="true";}else{highlightPageLinksValue="false";}
130localStorage.setItem('coolaxs_highlightPageLinks',highlightPageLinksValue);coolaxs_highlightPageLinks(highlightPageLinksValue);}
131var coolaxs_highlight_links_item=document.querySelector('#coolaxs_highlight_links');coolaxs_highlight_links_item.addEventListener("click",coolaxs_highlight_links_ClickedOrKeyPressed,false);coolaxs_highlight_links_item.addEventListener("keypress",coolaxs_highlight_links_ClickedOrKeyPressed,false);function coolaxs_highlight_links_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
132coolaxs_toggleHighlightLinks();event.preventDefault();}
133var chosen_accessibilty_titles_background_color=coolaxs_accessibilty_titles_background_color;var chosen_override_coolaxs_highlight_titles_colors_class_background_color=coolaxs_override_coolaxs_highlight_titles_colors_class_background_color;function coolaxs_highlightPageTitles(highlightPageTitlesValue){if(highlightPageTitlesValue===null)
134return;if(highlightPageTitlesValue=="false"){document.querySelectorAll("h1, h2, h3, h4, h5, h6, h1 > a, h2 > a, h3 > a, h4 > a, h5 > a, h6 > a").forEach(val=>{val.classList.remove('coolaxs_highlight_titles_colors');if(chosen_override_coolaxs_highlight_titles_colors_class_background_color){var initBackgroun
134dColor=val.getAttribute('data-coolaxs-initBackgroundColor');if(initBackgroundColor){if(initBackgroundColor=='transparent')
135val.style.backgroundColor='';else
136val.style.backgroundColor=initBackgroundColor;}}});}
137else{document.querySelectorAll("h1, h2, h3, h4, h5, h6, h1 > a, h2 > a, h3 > a, h4 > a, h5 > a, h6 > a").forEach(val=>{if(chosen_override_coolaxs_highlight_titles_colors_class_background_color){var cssObj=window.getComputedStyle(val,null);var currentBackgroundColor=cssObj.getPropertyValue("background-color");if(!currentBackgroundColor)currentBackgroundColor='transparent';var initBackgroundColor=val.getAttribute('data-coolaxs-initBackgroundColor');if(!initBackgroundColor){initBackgroundColor=currentBackgroundColor;val.setAttribute("data-coolaxs-initBackgroundColor",initBackgroundColor);}
138currentBackgroundColor=chosen_accessibilty_titles_background_color;val.style.backgroundColor=currentBackgroundColor;}
139val.classList.add('coolaxs_highlight_titles_colors');});}
140var coolaxs_highlight_titles=localStorage.getItem('coolaxs_highlightPageTitles');if(coolaxs_highlight_titles=="true"){document.querySelector('#coolaxs_highlight_titles').classList.add('coolaxs_acivated_button');}else{document.querySelector('#coolaxs_highlight_titles').classList.remove('coolaxs_acivated_button');}}
141function coolaxs_reCreateHighlightTitles(){var highlightPageTitlesValue=localStorage.getItem('coolaxs_highlightPageTitles');if(highlightPageTitlesValue!=null)
142coolaxs_highlightPageTitles(highlightPageTitlesValue);}
143function coolaxs_toggleHighlightTitles(){var highlightPageTitlesValue=localStorage.getItem('coolaxs_highlightPageTitles');if(highlightPageTitlesValue===null)
144highlightPageTitlesValue="false";if(highlightPageTitlesValue=="false"){highlightPageTitlesValue="true";}else{highlightPageTitlesValue="false";}
145localStorage.setItem('coolaxs_highlightPageTitles',highlightPageTitlesValue);coolaxs_highlightPageTitles(highlightPageTitlesValue);}
146var coolaxs_highlight_titles_item=document.querySelector('#coolaxs_highlight_titles');coolaxs_highlight_titles_item.addEventListener("click",coolaxs_highlight_titles_ClickedOrKeyPressed,false);coolaxs_highlight_titles_item.addEventListener("keypress",coolaxs_highlight_titles_ClickedOrKeyPressed,false);function coolaxs_highlight_titles_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
147coolaxs_toggleHighlightTitles();}
148function coolaxs_bright_contrast_colors(brightContrastValue){var coolaxs_str_normal_image="_normal_contrast";var str_bright_image="_bright_contrast";var str_dark_image="_dark_contrast";if(brightContrastValue===null)
149return;
149if(brightContrastValue=="false"){coolaxs_toggleImageOrBackgroundImageBrightOrDark(str_bright_image,coolaxs_str_normal_image);document.querySelectorAll("body *").forEach(val=>{val.classList.remove('coolaxs_bright_contrast');if(coolaxs_hasBkgcolor(val))val.classList.remove('coolaxs_bright_contrast_bkg_color');});document.querySelectorAll("li a").forEach(val=>{val.classList.remove('coolaxs_bright_contrast');if(coolaxs_hasBkgcolor(val))val.classList.remove('coolaxs_bright_contrast_bkg_color');});document.querySelectorAll("body,html").forEach(val=>{val.classList.remove('coolaxs_bright_contrast');if(coolaxs_hasBkgcolor(val))val.classList.remove('coolaxs_bright_contrast_bkg_color');});}
150else{coolaxs_toggleImageOrBackgroundImageBrightOrDark(coolaxs_str_normal_image,str_bright_image);document.querySelectorAll("body *").forEach(val=>{val.classList.remove('coolaxs_bright_contrast');if(coolaxs_hasBkgcolor(val))val.classList.add('coolaxs_bright_contrast_bkg_color');});document.querySelectorAll("li a").forEach(val=>{val.classList.remove('coolaxs_bright_contrast');if(coolaxs_hasBkgcolor(val))val.classList.add('coolaxs_bright_contrast_bkg_color');});document.querySelectorAll("body,html").forEach(val=>{val.classList.remove('coolaxs_bright_contrast');if(coolaxs_hasBkgcolor(val))val.classList.add('coolaxs_bright_contrast_bkg_color');});}
151var coolaxs_bright_contrast=localStorage.getItem('COOL_ACCESSIBILITY_BrightContrast');if(coolaxs_bright_contrast=="true"){document.querySelector('#coolaxs_bright_contrast').classList.add('coolaxs_acivated_button');}else{document.querySelector('#coolaxs_bright_contrast').classList.remove('coolaxs_acivated_button');}}
152function coolaxs_reCreateBrightContrast(){var brightContrastValue=localStorage.getItem('COOL_ACCESSIBILITY_BrightContrast');if(brightContrastValue!=null)
153coolaxs_bright_contrast_colors(brightContrastValue);}
154function coolaxs_resetBrightContrast(){document.querySelector('#coolaxs_bright_contrast').classList.remove('coolaxs_acivated_button');localStorage.setItem('COOL_ACCESSIBILITY_BrightContrast',"false");coolaxs_dark_contrast_colors("false");}
155function coolaxs_toggleBrightContrast(){var brightContrastValue=localStorage.getItem('COOL_ACCESSIBILITY_BrightContrast');if(brightContrastValue===null)
156brightContrastValue="false";if(brightContrastValue=="false"){coolaxs_resetaccessibilityContrasts();brightContrastValue="true";}else{brightContrastValue="false";}
157localStorage.setItem('COOL_ACCESSIBILITY_BrightContrast',brightContrastValue);coolaxs_bright_contrast_colors(brightContrastValue);}
158var coolaxs_bright_contrast_item=document.querySelector('#coolaxs_bright_contrast');coolaxs_bright_contrast_item.addEventListener("click",coolaxs_bright_contrast_ClickedOrKeyPressed,false);coolaxs_bright_contrast_item.addEventListener("keypress",coolaxs_bright_contrast_ClickedOrKeyPressed,false);function coolaxs_bright_contrast_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
159coolaxs_toggleBrightContrast();event.preventDefault();}
160function coolaxs_dark_contrast_colors(darkContrastValue){var coolaxs_str_normal_image="_normal_contrast";var str_bright_image="_bright_contrast";var str_dark_image="_dark_contrast";if(darkContrastValue===null)
161return;if(darkContrastValue=="false"){coolaxs_toggleImageOrBackgroundImageBrightOrDark(str_dark_image,coolaxs_str_normal_image);document.querySelectorAll("body *").forEach(val=>{val.classList.remove('coolaxs_dark_contrast');val.classList.remove('coolaxs_dark_contrast_bkg_color');});document.querySelectorAll("li a").forEach(val=>{val.classList.remove('coolaxs_dark_contrast');if(coolaxs_hasBkgcolor(val))val.classList.remove('coolaxs_dark_contrast_bkg_color');});document.querySelectorAll("body,html").forEach(val=>{val.classList.remove('coolaxs_dark_contrast');val.classList.remove('coolaxs_dark_contrast_bkg_color');});document.querySelectorAll("img").forEach(val=>{val.classList.remove('coolaxs_dark_contrast');val.classList.remove('coolaxs_dark_contrast_bkg_color');});document.querySelectorAll("img").forEach(val=>{val.classList.remove('coolaxs_dark_contrast_img');});document.querySelectorAll('.coolaxs_buttons').forEach(val=>{val.classList.remove('coolaxs_dark_contrast2');});}
162else{coolaxs_toggleImageOrBackgroundImageBrightOrDark(coolaxs_str_normal_image,str_dark_image);document.querySelectorAll("body *").forEach(val=>{val.classList.add('coolaxs_dark_contrast');if((coolaxs_hasBkgcolor(val))&&(!val.classList.contains("coolaxs_highlight_titles_colors")))
163val.classList.add('coolaxs_dark_contrast_bkg_color');});document.querySelectorAll("li a").forEach(val=>{val.classList.add('coolaxs_dark_contrast');if((coolaxs_hasBkgcolor(val))&&(!val.classList.contains("coolaxs_highlight_titles_colors")))
164val.classList.add('coolaxs_dark_contrast_bkg_color');});document.querySelectorAll("body,html").forEach(val=>{val.classList.add('coolaxs_dark_contrast');val.classList.add('coolaxs_dark_contrast_bkg_color');});document.querySelectorAll("img").forEach(val=>{val.classList.add('coolaxs_dark_contrast_img');});document.querySelectorAll('.coolaxs_buttons').forEach(val=>{val.classList.add('coolaxs_dark_contrast2');});}
165var coolaxs_dark_contrast=localStorage.getItem('COOL_ACCESSIBILITY_DarkContrast');if(coolaxs_dark_contrast=="true"){document.querySelector('#coolaxs_dark_contrast').classList.add('coolaxs_acivated_button');}else{document.querySelector('#coolaxs_dark_contrast').classList.remove('coolaxs_acivated_button');}}
166function coolaxs_reCreateDarkContrast(){var darkContrastValue=localStorage.getItem('COOL_ACCESSIBILITY_DarkContrast');if(darkContrastValue!=null)
167coolaxs_dark_contrast_colors(darkContrastValue);}
168function coolaxs_resetDarkContrast(){document.querySelector('#coolaxs_dark_contrast').classList.remove('coolaxs_acivated_button');localStorage.setItem('COOL_ACCESSIBILITY_DarkContrast',"false");coolaxs_dark_contrast_colors("false");}
169function coolaxs_toggleDarkContrast(){var darkContrastValue=localStorage.getItem('COOL_ACCESSIBILITY_DarkContrast');if(darkContrastValue===null)
170darkContrastValue="false";if(darkContrastValue=="false"){coolaxs_resetaccessibilityContrasts();darkContrastValue="true";}else{darkContrastValue="false";}
171localStorage.setItem('COOL_ACCESSIBILITY_DarkContrast',darkContrastValue);coolaxs_dark_contrast_colors(darkContrastValue);}
172var coolaxs_dark_contrast_item=document.querySelector('#coolaxs_dark_contrast');coolaxs_dark_contrast_item.addEventListener("click",coolaxs_dark_contrast_ClickedOrKeyPressed,false);coolaxs_dark_contrast_item.addEventListener("keypress",coolaxs_dark_contrast_ClickedOrKeyPressed,false);function coolaxs_dark_contrast_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
173coolaxs_toggleDarkContrast();event.preventDefault();}
174var coolaxs_str_normal_image="_static.gif";var coolaxs_str_animated_gif_image="_animated.gif";function coolaxs_stopAnimation(value){if(value===null)
175return;if(value=="true"){coolaxs_toggleImageSource(coolaxs_str_animated_gif_image,coolaxs_str_normal_image);document.querySelectorAll(".flexslider").forEach(val=>{if(val.length>0)val.flexslider("pause");});document.querySelectorAll('.flexslider2').forEach(val=>{if(val.length>0)val.flexslider("pause");});htmlElement.classList.add('coolaxs_prevent_animations');var elements=document.getElementsByTagName('iframe');var elArray=Array.prototype.slice.call(elements);elArray.forEach(function(val,index){var currentURL=val.getAttribute('src');if(currentURL.indexOf("autoplay=")!=-1)
176{if(currentURL.indexOf("autoplay=1")>-1){var updatedURL=currentURL.replace('autoplay=1','autoplay=0');val.setAttribute('src',updatedURL);val.setAttribute('data-coolaxs-autoplayoriginal',"1");}}});var all_videos=document.getElementsByTagName('video');var all_videos_array=Array.prototype.slice.call(all_videos);console.log("all_videos_array"+all_videos_array);all_videos_array.forEach(function(one_video,index){console.log("one_video: "+one_video);one_video.autoplay=false();one_video.pause();});}else{coolaxs_toggleImageSource(coolaxs_str_normal_image,coolaxs_str_animated_gif_image);document.querySelectorAll(".flexslider").forEach(val=>{if(val.length>0)val.flexslider("play");});document.querySelectorAll('.flexslider2').forEach(val=>{if(val.length>0)val.flexslider("play");});htmlElement.classList.remove('coolaxs_prevent_animations');var elements=document.getElementsByTagName('iframe');var elArray=Array.prototype.slice.call(elements);elArray.forEach(function(val,index){var currentURL=val.getAttribute('src');if(currentURL.indexOf("autoplay=")!=-1)
177{if(currentURL.indexOf("autoplay=0")>-1){var autoplayOriginal=val.getAttribute('data-coolaxs-autoplayoriginal');if(autoplayOriginal=="1"){var updatedURL=currentURL.replace('autoplay=0','autoplay=1');val.setAttribute('src',updatedURL);val.removeAttribute('data-coolaxs-autoplayoriginal');}}}});}
178var coolaxs_stop_animations=localStorage.getItem('COOL_ACCESSIBILITY_StopAnimation');if(coolaxs_stop_animations=="true"){document.querySelector('#coolaxs_stop_animations').classList.add('coolaxs_acivated_button');}else{document.querySelector('#coolaxs_stop_animations').classList.remove('coolaxs_acivated_button');}}
179function coolaxs_reCreateStopAnimation(){var stopAnimationValue=localStorage.getItem('COOL_ACCESSIBILITY_StopAnimation');if(stopAnimationValue!=null)
180coolaxs_stopAnimation(stopAnimationValue);}
181function coolaxs_toggleStopAnimation(){var stopAnimationValue=localStorage.getItem('COOL_ACCESSIBILITY_StopAnimation');if(stopAnimationValue===null)
182stopAnimationValue="false";if(stopAnimationValue=="false"){stopAnimationValue="true";document.querySelectorAll('*').forEach(val=>{const animations_Array=val.getAnimations();animations_Array.forEach(function(val,index){val.pause();});});}else{stopAnimationValue="false";}
183localStorage.setItem('COOL_ACCESSIBILITY_StopAnimation',stopAnimationValue);coolaxs_stopAnimation(stopAnimationValue);}
184var coolaxs_stop_animations_item=document.querySelector('#coolaxs_stop_animations');coolaxs_stop_animations_item.addEventListener("click",coolaxs_stop_animations_ClickedOrKeyPressed,false);coolaxs_stop_animations_item.addEventListener("keypress",coolaxs_stop_animations_ClickedOrKeyPressed,false);function coolaxs_stop_animations_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
185coolaxs_toggleStopAnimation();event.preventDefault();}
186function coolaxs_toggleImageSource(str_origin,str_target){var debug=false;var elements=document.getElementsByTagName('img');var elArray=Array.prototype.slice.call(elements);elArray.forEach(function(value,index){var source_image_url=value.getAttribute('src');if(debug)console.log("source_image_url: "+source_image_url);var n=source_image_url.indexOf(str_origin);if(n>-1){if(debug)console.log("before: "+source_image_url);var image_name_without_extension=source_image_url.substr(0,n);var new_source_image_url=image_name_without_extension+str_target;if(debug)console.log("after: "+new_source_image_url);var replaced_source_image_url=source_image_url.replace(source_image_url,new_source_image_url);value.setAttribute('src',replaced_source_image_url);}});}
187function coolaxs_zoomText(value){if(value===null)
188return;var coolaxs_text_zoom=localStorage.getItem('coolaxs_textZoomWindow');if(coolaxs_text_zoom=="true"){document.querySelector('#coolaxs_text_zoom').classList.add('coolaxs_acivated_button');}else{document.querySelector('#coolaxs_text_zoom').classList.remove('coolaxs_acivated_button');}}
189function coolaxs_reCreateZoomText(){var zoomTextValue=localStorage.getItem('coolaxs_textZoomWindow');if(zoomTextValue!=null)
190coolaxs_zoomText(zoomTextValue);}
191function coolaxs_toggleTextZoomWindow(){var zoomTextValue=localStorage.getItem('coolaxs_textZoomWindow');if(zoomTextValue===null)
192zoomTextValue="false";if(zoomTextValue=="false"){zoomTextValue="true";}else{zoomTextValue="false";}
193localStorage.setItem('coolaxs_textZoomWindow',zoomTextValue);coolaxs_zoomText(zoomTextValue);}
194var coolaxs_text_zoom_item=document.querySelector('#coolaxs_text_zoom');coolaxs_text_zoom_item.addEventListener("click",coolaxs_text_zoom_ClickedOrKeyPressed,false);coolaxs_text_zoom_item.addEventListener("keypress",coolaxs_text_zoom_ClickedOrKeyPressed,false);function coolaxs_text_zoom_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
195coolaxs_toggleTextZoomWindow();event.preventDefault();}
196function coolaxs_readableFont(value){if(value===null)
197return;if(value=="true"){document.querySelectorAll("*,body,a,span,li *").forEach(val=>{val.classList.add("coolaxs_readable_font");});}else{document.querySelectorAll("*,body,a,span,li *").forEach(val=>{val.classList.remove("coolaxs_readable_font");});}
198var coolaxs_readable_font=localStorage.getItem('COOL_ACCESSIBILITY_ReadableFont');if(coolaxs_readable_font=="true"){document.querySelector('#coolaxs_readable_font').classList.add("coolaxs_acivated_button");}else{document.querySelector('#coolaxs_readable_font').classList.remove("coolaxs_acivated_button");}}
199function coolaxs_reCreateReadableFont(){var readableFontValue=localStorage.getItem('COOL_ACCESSIBILITY_ReadableFont');if(readableFontValue!=null)
200coolaxs_readableFont(readableFontValue);}
201function coolaxs_toggleReadableFont(){var readableFontValue=localStorage.getItem('COOL_ACCESSIBILITY_ReadableFont');if(readableFontValue===null)
202readableFontValue="false";if(readableFontValue=="false"){readableFontValue="true";}else{readableFontValue="false";}
203localStorage.setItem('COOL_ACCESSIBILITY_ReadableFont',readableFontValue);coolaxs_readableFont(readableFontValue);}
204var coolaxs_readable_font_item=document.querySelector('#coolaxs_readable_font');coolaxs_readable_font_item.addEventListener("click",coolaxs_readable_font_ClickedOrKeyPressed,false);coolaxs_readable_font_item.addEventListener("keypress",coolaxs_readable_font_ClickedOrKeyPressed,false);function coolaxs_readable_font_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
205coolaxs_toggleReadableFont();event.preventDefault();}
206function coolaxs_bigWhiteCursor(value){if(value===null)
207return;var not_focusable=document.querySelectorAll('* :not(a[href], button, [href], input, select, textarea, details, [tabindex]:not
207([tabindex="-1"],a,span)');var focusable=document.querySelectorAll('a[href], button, [href], input, select, textarea, details, [tabindex]:not([tabindex="-1"])');if(value=="true"){not_focusable.forEach(val=>{val.classList.add('coolaxs_big_white_cursor');});focusable.forEach(val=>{val.classList.add('coolaxs_cursor_big_pointer_white');});}else{not_focusable.forEach(val=>{val.classList.remove('coolaxs_big_white_cursor');});focusable.forEach(val=>{val.classList.remove('coolaxs_cursor_big_pointer_white');});}
208var coolaxs_big_white_cursor=localStorage.getItem('COOL_ACCESSIBILITY_BigWhiteCursor');if(coolaxs_big_white_cursor=="true"){document.querySelector('#coolaxs_big_white_cursor').classList.add('coolaxs_acivated_button');}else{document.querySelector('#coolaxs_big_white_cursor').classList.remove('coolaxs_acivated_button');}}
209function coolaxs_reCreateBigWhiteCursor(){var bigWhiteCursorValue=localStorage.getItem('COOL_ACCESSIBILITY_BigWhiteCursor');if(bigWhiteCursorValue!=null)
210coolaxs_bigWhiteCursor(bigWhiteCursorValue);}
211function coolaxs_resetBigWhiteCursor(){document.querySelector('#coolaxs_big_white_cursor').classList.remove('coolaxs_acivated_button');var not_focusable=document.querySelectorAll('* :not(a[href], button, [href], input, select, textarea, details, [tabindex]:not([tabindex="-1"],a,span)');var focusable=document.querySelectorAll('a[href], button, [href], input, select, textarea, details, [tabindex]:not([tabindex="-1"])');not_focusable.forEach(val=>{val.classList.remove('coolaxs_big_white_cursor');});focusable.forEach(val=>{val.classList.remove('coolaxs_cursor_big_pointer_white');});localStorage.setItem('COOL_ACCESSIBILITY_BigWhiteCursor',"false");}
212function coolaxs_toggleBigWhiteCursor(){var bigWhiteCursorValue=localStorage.getItem('COOL_ACCESSIBILITY_BigWhiteCursor');if(bigWhiteCursorValue===null)
213bigWhiteCursorValue="false";if(bigWhiteCursorValue=="false"){if(localStorage.getItem('COOL_ACCESSIBILITY_BigBlackCursor')=="true")coolaxs_resetBigBlackCursor();bigWhiteCursorValue="true";}else{bigWhiteCursorValue="false";}
214localStorage.setItem('COOL_ACCESSIBILITY_BigWhiteCursor',bigWhiteCursorValue);coolaxs_bigWhiteCursor(bigWhiteCursorValue);}
215var coolaxs_big_white_cursor_item=document.querySelector('#coolaxs_big_white_cursor');coolaxs_big_white_cursor_item.addEventListener("click",coolaxs_big_white_cursor_ClickedOrKeyPressed,false);coolaxs_big_white_cursor_item.addEventListener("keypress",coolaxs_big_white_cursor_ClickedOrKeyPressed,false);function coolaxs_big_white_cursor_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
216coolaxs_toggleBigWhiteCursor();event.preventDefault();}
217function coolaxs_bigBlackCursor(value){if(value===null)
218return;var not_focusable=document.querySelectorAll('* :not(a[href], button, [href], input, select, textarea, details, [tabindex]:not([tabindex="-1"],a,span)');var focusable=document.querySelectorAll('a[href], button, [href], input, select, textarea, details, [tabindex]:not([tabindex="-1"])');if(value=="true"){not_focusable.forEach(val=>{val.classList.add('coolaxs_big_black_cursor');});focusable.forEach(val=>{val.classList.add('coolaxs_cursor_big_pointer_black');});}else{not_focusable.forEach(val=>{val.classList.remove('coolaxs_big_black_cursor');});focusable.forEach(val=>{val.classList.remove('coolaxs_cursor_big_pointer_black');});}
219var coolaxs_big_black_cursor=localStorage.getItem('COOL_ACCESSIBILITY_BigBlackCursor');
219if(coolaxs_big_black_cursor=="true"){document.querySelector('#coolaxs_big_black_cursor').classList.add('coolaxs_acivated_button');}else{document.querySelector('#coolaxs_big_black_cursor').classList.remove('coolaxs_acivated_button');}}
220function coolaxs_reCreateBigBlackCursor(){var bigBlackCursorValue=localStorage.getItem('COOL_ACCESSIBILITY_BigBlackCursor');if(bigBlackCursorValue!=null)
221coolaxs_bigBlackCursor(bigBlackCursorValue);}
222function coolaxs_resetBigBlackCursor(){document.querySelector('#coolaxs_big_black_cursor').classList.remove('coolaxs_acivated_button');var not_focusable=document.querySelectorAll('* :not(a[href], button, [href], input, select, textarea, details, [tabindex]:not([tabindex="-1"],a,span)');var focusable=document.querySelectorAll('a[href], button, [href], input, select, textarea, details, [tabindex]:not([tabindex="-1"])');not_focusable.forEach(val=>{val.classList.remove('coolaxs_big_black_cursor');});focusable.forEach(val=>{val.classList.remove('coolaxs_cursor_big_pointer_black');});localStorage.setItem('COOL_ACCESSIBILITY_BigBlackCursor',"false");}
223function coolaxs_toggleBigBlackCursor(){var bigBlackCursorValue=localStorage.getItem('COOL_ACCESSIBILITY_BigBlackCursor');
223if(bigBlackCursorValue===null)
224bigBlackCursorValue="false";if(bigBlackCursorValue=="false"){if(localStorage.getItem('COOL_ACCESSIBILITY_BigWhiteCursor')=="true")
225coolaxs_resetBigWhiteCursor();bigBlackCursorValue="true";}else{bigBlackCursorValue="false";}
226localStorage.setItem('COOL_ACCESSIBILITY_BigBlackCursor',bigBlackCursorValue);coolaxs_bigBlackCursor(bigBlackCursorValue);}
227var coolaxs_big_black_cursor_item=document.querySelector('#coolaxs_big_black_cursor');coolaxs_big_black_cursor_item.addEventListener("click",coolaxs_big_black_cursor_ClickedOrKeyPressed,false);coolaxs_big_black_cursor_item.addEventListener("keypress",coolaxs_big_black_cursor_ClickedOrKeyPressed,false);function coolaxs_big_black_cursor_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
228coolaxs_toggleBigBlackCursor();event.preventDefault();}
229var accessibilty_skip_menu_option=coolaxs_accessibilty_skip_menu_button_mode;var debug_accessibilty_skip_menu_option=false;if(debug_accessibilty_skip_menu_option)console.log("getting variable from PHP : coolaxs_accessibilty_skip_menu_button_mode "+accessibilty_skip_menu_option);switch(accessibilty_skip_menu_option){case"skip_menu_button_if_nav_tag":var all_navs_Array=document.getElementsByTagName("nav");if(all_navs_Array.length>0)
230{if(debug_accessibilty_skip_menu_option)console.log(": <nav> tag exist ");document.querySelector('#coolaxs_skip_to_page_content_button').style.display="block";}else{if(debug_accessibilty_skip_menu_option)console.log(" : No <nav> tag");document.querySelector('#coolaxs_skip_to_page_content_button').style.display="none";}
231break;case"if_has_coolaxs_navigation_class":var is_coolaxs_navigation_nodes=document.getElementsByClassName('coolaxs_navigation');if(is_coolaxs_navigation_nodes.length>0)
232{if(debug_accessibilty_skip_menu_option)console.log(" : coolaxs_navigation class exist");document.querySelector('#coolaxs_skip_to_page_content_button').style.display="block";}else{if(debug_accessibilty_skip_menu_option)console.log(" : No coolaxs_navigation class");document.querySelector('#coolaxs_skip_to_page_content_button').style.display="none";}
233break;case"always":if(debug_accessibilty_skip_menu_option)console.log(" : always");document.querySelector('#coolaxs_skip_to_page_content_button').style.display="block";break;case"never":if(debug_accessibilty_skip_menu_option)console.log(" : never");default:document.querySelector('#coolaxs_skip_to_page_content_button').style.display="none";}
234function coolaxs_keyboardNavigation(value){if(value===null)
235return;if(value=="true"){document.body.classList.add('coolaxs_focus_css_activated');}else{document.body.classList.remove('coolaxs_focus_css_activated');}
236var coolaxs_keyboard_navigation=localStorage.getItem('COOL_ACCESSIBILITY_KeyboardNavigation');if(coolaxs_keyboard_navigation=="true"){document.querySelector('#coolaxs_keyboard_navigation').classList.add("coolaxs_acivated_button");}else{document.querySelector('#coolaxs_keyboard_navigation').classList.remove("coolaxs_acivated_button");}}
237function coolaxs_reCreateKeyboardNavigation(){var keyboardNavigationValue=localStorage.getItem('COOL_ACCESSIBILITY_KeyboardNavigation');if(keyboardNavigationValue!=null)
238coolaxs_keyboardNavigation(keyboardNavigationValue);}
239function coolaxs_toggleKeyboardNavigation(){var keyboardNavigationValue=localStorage.getItem('COOL_ACCESSIBILITY_KeyboardNavigation');if(keyboardNavigationValue===null)
240keyboardNavigationValue="false";if(keyboardNavigationValue=="false"){keyboardNavigationValue="true";document.querySelectorAll('.coolaxs_buttons').forEach(val=>{val.setAttribute('tabindex',0);});}
241else{keyboardNavigationValue="false";document.querySelectorAll('.coolaxs_buttons').forEach(val=>{val.removeAttribute('tabindex');});}
242localStorage.setItem('COOL_ACCESSIBILITY_KeyboardNavigation',keyboardNavigationValue);coolaxs_keyboardNavigation(keyboardNavigationValue);}
243var coolaxs_keyboard_navigation_item=document.querySelector('#coolaxs_keyboard_navigation');coolaxs_keyboard_navigation_item.addEventListener("click",coolaxs_keyboard_navigation_ClickedOrKeyPressed,false);coolaxs_keyboard_navigation_item.addEventListener("keypress",coolaxs_keyboard_navigation_ClickedOrKeyPressed,false);function coolaxs_keyboard_navigation_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
244coolaxs_toggleKeyboardNavigation();event.preventDefault();}
245window.coolaxs_keyboard_nav=false;document.querySelector('.coolaxs_accessibility_panel_container').style.display="flex";var coolaxs_mobile_accessibility_panel1=document.querySelector('.coolaxs_top_or_bottom_mobile_pannel');var coolaxs_mobile_accessibility_panel2=document.querySelector('.coolaxs_right_mobile_pannel');var coolaxs_mobile_accessibility_panel3=document.querySelector('.coolaxs_left_mobile_pannel');coolaxs_mobile_accessibility_panel1.style.display="none";coolaxs_mobile_accessibility_panel2.style.display="none";coolaxs_mobile_accessibility_panel3.style.display="none";coolaxs_reCreateaccessibilityPanelAnchorSide();var coolaxs_accessibility_panel=document.querySelector('.coolaxs_accessibility_panel');coolaxs_accessibility_panel.style.display='flex';var coolaxs_accessibility_panel_container=document.querySelector('.coolaxs_accessibility_panel_container');coolaxs_accessibility_panel_container.style.display='none';var coolaxs_button_group_font_size=document.querySelector('#coolaxs_button_group_font_size');coolaxs_button_group_font_size.style.display='none';var coolaxs_button_group_letter_spacing=document.querySelector('#coolaxs_button_group_letter_spacing');coolaxs_button_group_letter_spacing.style.display='none';var coolaxs_button_group_word_spacing=document.querySelector('#coolaxs_button_group_word_spacing');coolaxs_button_group_word_spacing.style.display='none';var coolaxs_button_group_line_height=document.querySelector('#coolaxs_button_group_line_height');coolaxs_button_group_line_height.style.display='none';var coolaxs_button_group_accessibility_settings=document.querySelector('#coolaxs_button_group_accessibility_settings');coolaxs_button_group_accessibility_settings.style.display='none';coolaxs_reCreateOpenedaccessibilityPanel();coolaxs_reCreateKeyboardShortcutsaccessibilityPanel();coolaxs_reCreatePageFontSizes();coolaxs_reCreatePageLetterSpacing();coolaxs_reCreatePageWordSpacing();coolaxs_reCreatePageLineHeight();coolaxs_reCreateReadableFont();coolaxs_reCreateInvertColors();coolaxs_reCreateHighlightLinks();coolaxs_reCreateHighlightTitles();coolaxs_reCreateBrightContrast();coolaxs_reCreateDarkContrast();coolaxs_reCreateZoomText();coolaxs_reCreateKeyboardNavigation();
245coolaxs_reCreateBigWhiteCursor();coolaxs_reCreateBigBlackCursor();coolaxs_reCreateStopAnimation();function coolaxs_checkKeyboard(ob,e){var re=/\d|\w|[\.\$@\*\\\/\+\-\^\!\(\)\[\]\~\%\&\=\?\>\<\{\}\"\'\,\:\;\_]/g;var a=e.key.match(re);if(a==null){ob.val('');return false;}
246return true;}
247onkeydown=function(e){var debug=false;var KeyboardShortcutsValue=localStorage.getItem('COOL_ACCESSIBILITY_KeyboardShortcuts');var non_english_keyboard_layout=false;if(!coolaxs_checkKeyboard(this,e)){non_english_keyboard_layout=true;}
248if(!((e.altKey)&&((e.keyCode=='0'.charCodeAt(0))||(e.keyCode=='O'.charCodeAt(0))||(e.keyCode==96)||(e.keyCode=='5'.charCodeAt(0))||(e.keyCode=='6'.charCodeAt(0))||(e.keyCode==101)||(e.keyCode==102)||(e.keyCode==191)))){if(KeyboardShortcutsValue!="true")
249return;}
250if(!e.altKey)
251return;var key=String.fromCharCode(e.which);if(debug)console.log(e.which+" |"+key+"|");switch(key){case String.fromCharCode(96):case'O':case'0':var opened_accessibility_panel=localStorage.getItem('COOL_ACCESSIBILITY_opened_accessibility_panel');localStorage.setItem('COOL_ACCESSIBILITY_KeyboardShortcuts',"true");coolaxs_KeyboardShortcuts("true");var anchorSide=localStorage.getItem('COOL_ACCESSIBILITY_accessibilityPanelAnchorSide');if((anchorSide=="bottom")||(anchorSide=="top")){localStorage.setItem('COOL_ACCESSIBILITY_ShowKeyboardShortcuts',"true");coolaxs_ShowKeyboardShortcuts("true");}
252else{if((opened_accessibility_panel===null)||(opened_accessibility_panel==="false")){var ShowKeyboardShortcutsValue=localStorage.getItem('COOL_ACCESSIBILITY_ShowKeyboardShortcuts');if(ShowKeyboardShortcutsValue===null){localStorage.setItem('COOL_ACCESSIBILITY_ShowKeyboardShortcuts',"true");coolaxs_ShowKeyboardShortcuts("true");}}}
253coolaxs_toggleOpenedaccessibilityPanelState();e.preventDefault();break;case'S':coolaxs_toggleaccessibilitySettingsGroup();e.preventDefault();break;case'A':coolaxs_toggleFontSizeGroup();e.preventDefault();break;case String.fromCharCode(60):case String.fromCharCode(190):coolaxs_toggleLetterSpacingGroup();e.preventDefault();break;case String.fromCharCode(62):case String.fromCharCode(188):coolaxs_toggleWordSpacingGroup();e.preventDefault();break;case'H':coolaxs_toggleLineHeightGroup();e.preventDefault();break;case String.fromCharCode(97):case'1':coolaxs_createTopaccessibilityPanelAnchor();e.preventDefault();break;case String.fromCharCode(98):case'2':coolaxs_createRightaccessibilityPanelAnchor();e.preventDefault();break;case String.fromCharCode(99):case'3':coolaxs_createBottomaccessibilityPanelAnchor();e.preventDefault();break;case String.fromCharCode(100):case'4':coolaxs_createLeftaccessibilityPanelAnchor();e.preventDefault();break;case String.fromCharCode(101):case'5':coolaxs_toggleShowKeyboardShortcutsaccessibilityPanel();e.preventDefault();break;case String.fromCharCode(102):case'6':coolaxs_toggleKeyboardShortcutsaccessibilityPanel();e.preventDefault();break;case String.fromCharCode(103):case'7':helpaccessibilityPanel();e.preventDefault();break;case'Q':coolaxs_resetAllaccessibility();e.preventDefault();break;case String.fromCharCode(61):case String.fromCharCode(107):coolaxs_increasePageFontSizes();e.preventDefault();break;case'X':coolaxs_resetPageFontSizes();e.preventDefault();break;case String.fromCharCode(173):case String.fromCharCode(109):coolaxs_decreasePageFontSizes();e.preventDefault();break;case'R':coolaxs_increasePageLetterSpacing();e.preventDefault();break;case'F':coolaxs_resetPageLetterSpacing();e.preventDefault();break;case'V':coolaxs_decreasePageLetterSpacing();e.preventDefault();break;case'E':coolaxs_increasePageWordSpacing();e.preventDefault();break;case'D':coolaxs_resetPageWordSpacing();e.preventDefault();break;case'C':coolaxs_decreasePageWordSpacing();e.preventDefault();break;case'U':coolaxs_increasePageLineHeight();e.preventDefault();break;case'J':coolaxs_resetPageLineHeight();e.preventDefault();break;case'M':coolaxs_decreasePageLineHeight();e.preventDefault();break;case'G':coolaxs_toggleReadableFont();e.preventDefault();break;case'T':coolaxs_toggleHighlightTitles();e.preventDefault();break;case'L':coolaxs_toggleHighlightLinks();e.preventDefault();break;case'Z':coolaxs_toggleTextZoomWindow();e.preventDefault();break;case'I':coolaxs_toggleInvertColors();e.preventDefault();break;case'W':coolaxs_toggleBrightContrast();e.preventDefault();break;case'B':coolaxs_toggleDarkContrast();e.preventDefault();break;case'K':coolaxs_toggleKeyboardNavigation();e.preventDefault();break;
253case'Y':coolaxs_toggleBigWhiteCursor();e.preventDefault();break;case'N':coolaxs_toggleBigBlackCursor();e.preventDefault();break;case'P':coolaxs_toggleStopAnimation();e.preventDefault();break;default:}}
254function coolaxs_KeyboardShortcuts(KeyboardShortcutsValue){if(KeyboardShortcutsValue===null)
255return;var keyboardShortcuts=localStorage.getItem('COOL_ACCESSIBILITY_KeyboardShortcuts');if(KeyboardShortcutsValue=="true"){document.querySelector('#coolaxs_toggle_keyboard_shortcuts_accessibility_panel').classList.add("coolaxs_acivated_button");}else{document.querySelector('#coolaxs_toggle_keyboard_shortcuts_accessibility_panel').classList.remove("coolaxs_acivated_button");localStorage.setItem('COOL_ACCESSIBILITY_ShowKeyboardShortcuts',"false");coolaxs_ShowKeyboardShortcuts("false");}}
256function coolaxs_reCreateKeyboardShortcutsaccessibilityPanel(){var KeyboardShortcutsValue=localStorage.getItem('COOL_ACCESSIBILITY_KeyboardShortcuts');if(KeyboardShortcutsValue!=null)
257coolaxs_KeyboardShortcuts(KeyboardShortcutsValue);}
258function coolaxs_toggleKeyboardShortcutsaccessibilityPanel(){var KeyboardShortcutsValue=localStorage.getItem('COOL_ACCESSIBILITY_KeyboardShortcuts');if(KeyboardShortcutsValue===null)
259KeyboardShortcutsValue="false";if(KeyboardShortcutsValue=="false"){KeyboardShortcutsValue="true";}else{KeyboardShortcutsValue="false";}
260localStorage.setItem('COOL_ACCESSIBILITY_KeyboardShortcuts',KeyboardShortcutsValue);coolaxs_KeyboardShortcuts(KeyboardShortcutsValue);}
261var coolaxs_toggle_keyboard_shortcuts_accessibility_panel_item=document.querySelector('#coolaxs_toggle_keyboard_shortcuts_accessibility_panel');coolaxs_toggle_keyboard_shortcuts_accessibility_panel_item.addEventListener("click",coolaxs_toggle_keyboard_shortcuts_accessibility_panel_ClickedOrKeyPressed,false);coolaxs_toggle_keyboard_shortcuts_accessibility_panel_item.addEventListener("keypress",coolaxs_toggle_keyboard_shortcuts_accessibility_panel_ClickedOrKeyPressed,false);function coolaxs_toggle_keyboard_shortcuts_accessibility_panel_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
262coolaxs_toggleKeyboardShortcutsaccessibilityPanel();event.preventDefault();}
263function coolaxs_ShowKeyboardShortcuts(ShowKeyboardShortcutsValue){if(ShowKeyboardShortcutsValue===null)
264return;var ShowKeyboardShortcutsValue=localStorage.getItem('COOL_ACCESSIBILITY_ShowKeyboardShortcuts');if(ShowKeyboardShortcutsValue=="true"){document.querySelectorAll('.coolaxs_buttons span').forEach(val=>{val.style.display="block";});document.querySelector('#coolaxs_show_keyboard_shortcuts_accessibility_panel').classList.add('coolaxs_acivated_button');document.querySelectorAll('.coolaxs_buttons_group').forEach(val=>{val.classList.add('coolaxs_show_keyboard_shortcuts');});localStorage.setItem('COOL_ACCESSIBILITY_KeyboardShortcuts',"true");coolaxs_KeyboardShortcuts("true");}else{document.querySelectorAll('.coolaxs_buttons span').forEach(val=>{val.style.display="none";});document.querySelector('#coolaxs_show_keyboard_shortcuts_accessibility_panel').classList.remove('coolaxs_acivated_button');document.querySelectorAll('.coolaxs_buttons_group').forEach(val=>{val.classList.remove('coolaxs_show_keyboard_shortcuts');});}}
265function coolaxs_reCreateKeyboardShortcutsaccessibilityPanel(){var ShowKeyboardShortcutsValue=localStorage.getItem('COOL_ACCESSIBILITY_ShowKeyboardShortcuts');if(ShowKeyboardShortcutsValue!=null)
266coolaxs_ShowKeyboardShortcuts(ShowKeyboardShortcutsValue);}
267function coolaxs_toggleShowKeyboardShortcutsaccessibilityPanel(){var ShowKeyboardShortcutsValue=localStorage.getItem('COOL_ACCESSIBILITY_ShowKeyboardShortcuts');if(ShowKeyboardShortcutsValue===null){ShowKeyboardShortcutsValue="false";var KeyboardShortcutsValue=localStorage.getItem('COOL_ACCESSIBILITY_KeyboardShortcuts');if(KeyboardShortcutsValue===null)
268coolaxs_toggleKeyboardShortcutsaccessibilityPanel();}
269if(ShowKeyboardShortcutsValue=="false"){ShowKeyboardShortcutsValue="true";}else{ShowKeyboardShortcutsValue="false";}
270localStorage.setItem('COOL_ACCESSIBILITY_ShowKeyboardShortcuts',ShowKeyboardShortcutsValue);coolaxs_ShowKeyboardShortcuts(ShowKeyboardShortcutsValue);}
271var coolaxs_show_keyboard_shortcuts_accessibility_panel_item=document.querySelector('#coolaxs_show_keyboard_shortcuts_accessibility_panel');coolaxs_show_keyboard_shortcuts_accessibility_panel_item.addEventListener("click",coolaxs_show_keyboard_shortcuts_accessibility_panel_ClickedOrKeyPressed,false);coolaxs_show_keyboard_shortcuts_accessibility_panel_item.addEventListener("keypress",coolaxs_show_keyboard_shortcuts_accessibility_panel_ClickedOrKeyPressed,false);function coolaxs_show_keyboard_shortcuts_accessibility_panel_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
272coolaxs_toggleShowKeyboardShortcutsaccessibilityPanel();event.preventDefault();}
273function coolaxs_toggleaccessibilityPanel(duration=600){if(htmlElement.classList.contains("coolaxs_mobile"))
274coolaxs_mobileToggleaccessibilityPanel(duration);else
275coolaxs_desktopToggleaccessibilityPanel(duration);var opened_accessibility_panel=localStorage.getItem('COOL_ACCESSIBILITY_opened_accessibility_panel');var val='.coolaxs_toggle_accessibility_panel img';var current_source_image_url=document.querySelector(val).getAttribute('src');if(opened_accessibility_panel=="true"){var n=current_source_image_url.indexOf("opened");if(n==-1){var replaced_current_source_image_url=current_source_image_url.replace("closed","opened");document.querySelector(val).setAttribute('src',replaced_current_source_image_url);}}
276else{var n=current_source_image_url.indexOf("closed");if(n==-1){var replaced_current_source_image_url=current_source_image_url.replace("opened","closed");document.querySelector(val).setAttribute('src',replaced_current_source_image_url);}}}
277function coolaxs_mobileToggleaccessibilityPanel(duration=600){var effect='slide';coolaxs_accessibility_panel.style.display='flex';var slide_direction1;if(document.body.classList.contains("COOL_ACCESSIBILITY_bottom_accessibility_panel"))
278slide_direction1="down";else
279slide_direction1="up";var slide_direction2="right";var slide_direction3="left";var options1={direction:slide_direction1};var options2={direction:slide_direction2};var options3={direction:slide_direction3};var coolaxs_mobile_accessibility_panel1=document.querySelector('.coolaxs_top_or_bottom_mobile_pannel');var coolaxs_mobile_accessibility_panel2=document.querySelector('.coolaxs_right_mobile_pannel');var coolaxs_mobile_accessibility_panel3=document.querySelector('.coolaxs_left_mobile_pannel');coolaxs_mobile_accessibility_panel1.coolaxs_slideToggle(slide_direction1,duration);
279coolaxs_mobile_accessibility_panel2.coolaxs_slideToggle(slide_direction2,duration);coolaxs_mobile_accessibility_panel3.coolaxs_slideToggle(slide_direction3,duration);}
280function coolaxs_desktopToggleaccessibilityPanel(duration=600){var coolaxs_accessibility_panel_container=document.querySelector('.coolaxs_accessibility_panel_container');var slide_direction=window.coolaxs_slide_accessibility_menu_direction;coolaxs_accessibility_panel_container.coolaxs_slideToggle(slide_direction,duration);}
281function coolaxs_toggleOpenedaccessibilityPanelState(){var opened_accessibility_panel=localStorage.getItem('COOL_ACCESSIBILITY_opened_accessibility_panel');if(opened_accessibility_panel===null)opened_accessibility_panel="false";if(opened_accessibility_panel=="false")
282opened_accessibility_panel="true";else
283opened_accessibility_panel="false";localStorage.setItem('COOL_ACCESSIBILITY_opened_accessibility_panel',opened_accessibility_panel);coolaxs_toggleaccessibilityPanel();}
284var coolaxs_toggle_accessibility_panel_items=document.querySelectorAll('.coolaxs_toggle_accessibility_panel');coolaxs_toggle_accessibility_panel_items.forEach(val=>{val.addEventListener("click",coolaxs_toggle_accessibility_panel_ClickedOrKeyPressed,false);val.addEventListener("keypress",coolaxs_toggle_accessibility_panel_ClickedOrKeyPressed,false);});function coolaxs_toggle_accessibility_panel_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
285coolaxs_toggleOpenedaccessibilityPanelState();event.preventDefault();}
286function coolaxs_reCreateOpenedaccessibilityPanel(){var opened_accessibility_panel=localStorage.getItem('COOL_ACCESSIBILITY_opened_accessibility_panel');if(opened_accessibility_panel=="true")
287coolaxs_toggleaccessibilityPanel();}
288function coolaxs_resetaccessibilityPanelAnchorSidecClasses(){document.body.classList.remove('COOL_ACCESSIBILITY_right_accessibility_panel');document.body.classList.remove('COOL_ACCESSIBILITY_left_accessibility_panel');document.body.classList.remove('COOL_ACCESSIBILITY_bottom_accessibility_panel');document.body.classList.remove('COOL_ACCESSIBILITY_top_accessibility_panel');}
289function coolaxs_reCreateaccessibilityPanelAnchorSide(){if(localStorage.getItem('COOL_ACCESSIBILITY_accessibilityPanelAnchorSide')){var anchorSide=localStorage.getItem('COOL_ACCESSIBILITY_accessibilityPanelAnchorSide');switch(anchorSide){case"right":coolaxs_createRightaccessibilityPanelAnchor();break;case"left":coolaxs_createLeftaccessibilityPanelAnchor();break;case"bottom":coolaxs_createBottomaccessibilityPanelAnchor();break;case"top":coolaxs_createTopaccessibilityPanelAnchor();break;default:}}else{coolaxs_createBottomaccessibilityPanelAnchor();}}
290function coolaxs_createRightaccessibilityPanelAnchor(){localStorage.setItem('COOL_ACCESSIBILITY_accessibilityPanelAnchorSide',"right");coolaxs_resetaccessibilityPanelAnchorSidecClasses();document.body.classList.add('COOL_ACCESSIBILITY_right_accessibility_panel');window.coolaxs_slide_accessibility_menu_direction="right";coolaxs_resize();}
291function coolaxs_createLeftaccessibilityPanelAnchor(){localStorage.setItem('COOL_ACCESSIBILITY_accessibilityPanelAnchorSide',"left");coolaxs_resetaccessibilityPanelAnchorSidecClasses();document.body.classList.add('COOL_ACCESSIBILITY_left_accessibility_panel');window.coolaxs_slide_accessibility_menu_direction="left";coolaxs_resize();}
292function coolaxs_createBottomaccessibilityPanelAnchor(){localStorage.setItem('COOL_ACCESSIBILITY_accessibilityPanelAnchorSide',"bottom");coolaxs_resetaccessibilityPanelAnchorSidecClasses();document.body.classList.add('COOL_ACCESSIBILITY_bottom_accessibility_panel');window.coolaxs_slide_accessibility_menu_direction="down";coolaxs_resize();}
293function coolaxs_createTopaccessibilityPanelAnchor(){localStorage.setItem('COOL_ACCESSIBILITY_accessibilityPanelAnchorSide',"top");coolaxs_resetaccessibilityPanelAnchorSidecClasses();document.body.classList.add('COOL_ACCESSIBILITY_top_accessibility_panel');window.coolaxs_slide_accessibility_menu_direction="up";coolaxs_resize();}
294var coolaxs_right_accessibility_panel_item=document.querySelector('#coolaxs_right_accessibility_panel');coolaxs_right_accessibility_panel_item.addEventListener("click",coolaxs_right_accessibility_panel_ClickedOrKeyPressed,false);coolaxs_right_accessibility_panel_item.addEventListener("keypress",coolaxs_right_accessibility_panel_ClickedOrKeyPressed,false);function coolaxs_right_accessibility_panel_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
295coolaxs_createRightaccessibilityPanelAnchor();event.preventDefault();}
296var coolaxs_left_accessibility_panel_item=document.querySelector('#coolaxs_left_accessibility_panel');coolaxs_left_accessibility_panel_item.addEventListener("click",coolaxs_left_accessibility_panel_ClickedOrKeyPressed,false);coolaxs_left_accessibility_panel_item.addEventListener("keypress",coolaxs_left_accessibility_panel_ClickedOrKeyPressed,false);function coolaxs_left_accessibility_panel_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
297coolaxs_createLeftaccessibilityPanelAnchor();event.preventDefault();}
298var coolaxs_bottom_accessibility_panel_item=document.querySelector('#coolaxs_bottom_accessibility_panel');coolaxs_bottom_accessibility_panel_item.addEventListener("click",coolaxs_bottom_accessibility_panel_ClickedOrKeyPressed,false);coolaxs_bottom_accessibility_panel_item.addEventListener("keypress",coolaxs_bottom_accessibility_panel_ClickedOrKeyPressed,false);function coolaxs_bottom_accessibility_panel_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
299coolaxs_createBottomaccessibilityPanelAnchor();event.preventDefault();}
300var coolaxs_top_accessibility_panel_item=document.querySelector('#coolaxs_top_accessibility_panel');coolaxs_top_accessibility_panel_item.addEventListener("click",coolaxs_top_accessibility_panel_ClickedOrKeyPressed,false);coolaxs_top_accessibility_panel_item.addEventListener("keypress",coolaxs_top_accessibility_panel_ClickedOrKeyPressed,false);function coolaxs_top_accessibility_panel_ClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
301coolaxs_createTopaccessibilityPanelAnchor();event.preventDefault();}
302function coolaxs_toggleFontSizeGroup(){var slide_direction=window.coolaxs_slide_accessibility_menu_direction;var duration=600;coolaxs_button_group_font_size.coolaxs_slideToggle(slide_direction,duration);}
303var coolaxs_font_size_group_item=document.querySelector('#coolaxs_font_size_group');coolaxs_font_size_group_item.addEventListener("click",coolaxs_font_size_groupClickedOrKeyPressed,false);coolaxs_font_size_group_item.addEventListener("keypress",coolaxs_font_size_groupClickedOrKeyPressed,false);function coolaxs_font_size_groupClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
304coolaxs_toggleFontSizeGroup();event.preventDefault();}
305function coolaxs_toggleLetterSpacingGroup(){var slide_direction=window.coolaxs_slide_accessibility_menu_direction;var duration=600;coolaxs_button_group_letter_spacing.coolaxs_slideToggle(slide_direction,duration);}
306var coolaxs_letter_spacing_group_item=document.querySelector('#coolaxs_letter_spacing_group');coolaxs_letter_spacing_group_item.addEventListener("click",coolaxs_letter_spacing_groupClickedOrKeyPressed,false);coolaxs_letter_spacing_group_item.addEventListener("keypress",coolaxs_letter_spacing_groupClickedOrKeyPressed,false);function coolaxs_letter_spacing_groupClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
307coolaxs_toggleLetterSpacingGroup();event.preventDefault();}
308function coolaxs_toggleWordSpacingGroup(){var slide_direction=window.coolaxs_slide_accessibility_menu_direction;var duration=600;coolaxs_button_group_word_spacing.coolaxs_slideToggle(slide_direction,duration);}
309var coolaxs_word_spacing_group_item=document.querySelector('#coolaxs_word_spacing_group');coolaxs_word_spacing_group_item.addEventListener("click",coolaxs_word_spacing_groupClickedOrKeyPressed,false);coolaxs_word_spacing_group_item.addEventListener("keypress",coolaxs_word_spacing_groupClickedOrKeyPressed,false);function coolaxs_word_spacing_groupClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
310coolaxs_toggleWordSpacingGroup();event.preventDefault();}
311function coolaxs_toggleLineHeightGroup(){var slide_direction=window.coolaxs_slide_accessibility_menu_direction;var duration=600;coolaxs_button_group_line_height.coolaxs_slideToggle(slide_direction,duration);}
312var coolaxs_line_height_group_item=document.querySelector('#coolaxs_line_height_group');coolaxs_line_height_group_item.addEventListener("click",coolaxs_line_height_groupClickedOrKeyPressed,false);coolaxs_line_height_group_item.addEventListener("keypress",coolaxs_line_height_groupClickedOrKeyPressed,false);function coolaxs_line_height_groupClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
313coolaxs_toggleLineHeightGroup();event.preventDefault();}
314function coolaxs_toggleaccessibilitySettingsGroup(){var slide_direction=window.coolaxs_slide_accessibility_menu_direction;var duration=600;coolaxs_button_group_accessibility_settings.coolaxs_slideToggle(slide_direction,duration);}
315var coolaxs_accessibility_settings_group_item=document.querySelector('#coolaxs_accessibility_settings_group');coolaxs_accessibility_settings_group_item.addEventListener("click",coolaxs_accessibility_settings_groupClickedOrKeyPressed,false);coolaxs_accessibility_settings_group_item.addEventListener("keypress",coolaxs_accessibility_settings_groupClickedOrKeyPressed,false);function coolaxs_accessibility_settings_groupClickedOrKeyPressed(event){if(!(event.which===13||event.type==='click')){return;}
316coolaxs_toggleaccessibilitySettingsGroup();event.preventDefault();}});function coolaxs_hasBkgcolor(val){var cssObj=window.getComputedStyle(val,null);var color=cssObj.getPropertyValue("background-color");return color!='transparent'&&color!='rgba(0, 0, 0, 0)';}
317function coolaxs_getBackgroundImageUrl(element){var cssObj=window.getComputedStyle(element,null);var imageUrl=cssObj.getPropertyValue("background-image");if(imageUrl)
318return imageUrl.replace(/(url\(|\)|'|")/gi,'');else
319return"";}
320function coolaxs_imageExists(src){var debug=true;var http=new XMLHttpRequest();http.open('HEAD',src,false);http.send();return http.status!=404;}
321function coolaxs_toggleImageOrBackgroundImageBrightOrDark(str_origin,str_target){var all_divs_Array=document.getElementsByTagName("div");for(let i=0;i<all_divs_Array.length;i++){var val=all_divs_Array[i];coolaxs_toggleBrightOrDark(i,val,str_origin,str_target,true);}
322var all_imgs_Array=document.getElementsByTagName("img");for(let i=0;i<all_imgs_Array.length;i++){var val=all_imgs_Array[i];coolaxs_toggleBrightOrDark(i,val,str_origin,str_target,false);}}
323function coolaxs_toggleBrightOrDark(i,val,str_origin,str_target,is_background_image){var debug=false;var strUrl;if(is_background_image)
324strUrl=coolaxs_getBackgroundImageUrl(val);else
325strUrl=val.getAttribute('src');if((strUrl!="none")&&(strUrl!="")&&(strUrl.length>0)){if(debug)console.log(i+") str_origin: "+str_origin+" ,str_target: "+str_target+" , url: "+strUrl);var coolaxs_str_normal_image=["_normal_to_bright","_normal_to_dark","_normal_to_both"];var k;var str_normal_image_type;if(str_origin=="_normal_contrast"){for(k=0;k<3;k++){str_normal_image_type=coolaxs_str_normal_image[k];var n=strUrl.indexOf(str_normal_image_type);if(n>-1){if(((str_normal_image_type=="_normal_to_bright")&&(str_target=="_dark_contrast"))||((str_normal_image_type=="_normal_to_dark")&&(str_target=="_bright_contrast")))
326continue;if(debug)console.log("A before: "+strUrl);var image_name_without_extension=strUrl.substr(0,n);var extension=strUrl.substr(n+str_normal_image_type.length);var newUrl=image_name_without_extension+str_target+extension;if(debug)console.log("A after: "+newUrl);if(is_background_image){var new_background='url('+newUrl+')';val.style.backgroundImage=new_background;}else
327val.setAttribute('src',newUrl);val.setAttribute('data-coolaxs-contrast_type',str_normal_image_type);}}}
328else if(str_target=="_normal_contrast"){var str_target_image_type=val.getAttribute('data-coolaxs-contrast_type');val.setAttribute('data-coolaxs-contrast_type',null);var str_contrast_image=["_bright_contrast","_dark_contrast"];var u;for(u=0;
328u<2;u++){str_contrast_image_type=str_contrast_image[u];var n=strUrl.indexOf(str_contrast_image_type);if(n>-1){if(debug)console.log(i+") in str_target == '_normal_contrast' -------------"+strUrl+" ---------- str_target_image_type:"+str_target_image_type);if(debug)console.log("B before: "+strUrl);var image_name_without_extension=strUrl.substr(0,n);var extension=strUrl.substr(n+str_contrast_image_type.length);var newUrl=image_name_without_extension+str_target_image_type+extension;if(debug)console.log("B after: "+newUrl);if(is_background_image){var new_background='url('+newUrl+')';val.style.backgroundImage=new_background;}else
329val.setAttribute('src',newUrl);}}}else{if(debug)console.log("not origin or target");}}}
330function coolaxs_append_4_text_flyouts(mbp){let div1=document.createElement('div');div1.classList.add('coolaxs_buttons_group');div1.appendChild(document.querySelector("#coolaxs_font_size_group"));div1.appendChild(document.querySelector("#coolaxs_button_group_font_size"));let div2=document.createElement('div');div2.classList.add('coolaxs_buttons_group');div2.appendChild(document.querySelector("#coolaxs_line_height_group"));div2.appendChild(document.querySelector("#coolaxs_button_group_line_height"));let div3=document.createElement('div');div3.classList.add('coolaxs_buttons_group');div3.appendChild(document.querySelector("#coolaxs_letter_spacing_group"));div3.appendChild(document.querySelector("#coolaxs_button_group_letter_spacing"));let div4=document.createElement('div');div4.classList.add('coolaxs_buttons_group');div4.appendChild(document.querySelector("#coolaxs_word_spacing_group"));div4.appendChild(document.querySelector("#coolaxs_button_group_word_spacing"));mbp.appendChild(div1);mbp.appendChild(div2);mbp.appendChild(div3);mbp.appendChild(div4);}
331HTMLElement.prototype.coolaxs_slideToggle=function(side,duration,callback){var el=this;var isClosed=(this.clientHeight===0);if(typeof duration==='undefined')duration=400;if(typeof isClosed==='undefined')isClosed=false;el.style.overflow="hidden";if(isClosed)el.style.display="block";var elStyles=window.getComputedStyle(el);var elWidth=parseFloat(elStyles.getPropertyValue('width'));var elHeight=parseFloat(elStyles.getPropertyValue('height'));var stepWidth=elWidth / duration;var stepHeight=elHeight / duration;var start;function step(timestamp){if(start===undefined)start=timestamp;var elapsed=timestamp-start;el.style.display="flex";if(isClosed){if(side=="right")
332el.style.transform=`translate(${(stepWidth*(-2)*elapsed+2*elWidth)}px,${((0)*1*elapsed+0*elHeight)}px)`;else if(side=="left")
333el.style.transform=`translate(${(stepWidth*(2)*elapsed-2*elWidth)}px,${((0)*1*elapsed+0*elHeight)}px)`;else if(side=="up")
334el.style.transform=`translate(${(0*elapsed)}px,${((stepHeight)*1*elapsed-1*elHeight)}px)`;else if(side=="down")
335el.style.transform=`translate(${(0*elapsed)}px,${((stepHeight)*(-1)*elapsed+1*elHeight)}px)`;}else{if(side=="right")
336el.style.transform=`translate(${(stepWidth*elapsed)}px,${((0)*(-1)*elapsed+0*elHeight)}px)`;else if(side=="left")
337el.style.transform=`translate(${(stepWidth*(-1)*elapsed)}px,${((0)*(-1)*elapsed+0*elHeight)}px)`;else if(side=="up")
338el.style.transform=`translate(${(0*elapsed)}px,${((stepHeight)*(-1)*elapsed-0*elHeight)}px)`;if((side=="up")||(side=="down")){el.style.height=elHeight-(stepHeight*elapsed)+"px";}}
339if(elapsed>=duration){el.style.width="";el.style.height="";el.style.overflow="";if(!isClosed)el.style.display="none";if(typeof callback==='function')callback();}else{window.requestAnimationFrame(step);}}
340window.requestAnimationFrame(step);};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.