Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
Fix browser sniff
Browse files Browse the repository at this point in the history
Currently IE11 evaluates to "0", which then counts as being IE<8.

ThePacielloGroup#41
  • Loading branch information
patrickhlauke committed Feb 6, 2015
1 parent 15c581b commit 8cd7679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wat/Translation.ini
Expand Up @@ -583,7 +583,7 @@ other_struc=ws:scripts/show-other.ws
other_aria=ws:scripts/show-aria.ws
# show_focus=ws:scripts/ShowFocus.js
# show_focus=javascript:void(function() {var css=document.createElement("style");css.type="text/css";css.innerHTML="a:hover, a:focus, a:active, input:focus, textfield:focus, button:focus {background-color: #ff9; outline: 4px solid #c00;};}";document.getElementsByTagName('head')[0].appendChild(css);})()
show_focus=javascript:(function(){var ua=navigator.userAgent.toLowerCase(),ie=ua.indexOf("msie")!=-1?ua.substr(ie+5,1):0,outlineProp=ie<8?"border":"outline",activeItem;function styleFocus(e){if(activeItem){activeItem.style[outlineProp]="";}activeItem=e.target||e.srcElement;if(activeItem){activeItem.style[outlineProp]="solid 2px red";}}if(document.addEventListener){document.addEventListener("focus",styleFocus,true);}else{document.attachEvent("onfocusin",styleFocus);}}());
show_focus=javascript:(function(){var ua=navigator.userAgent.toLowerCase(),ie=ua.indexOf("msie")!=-1?ua.substr(ie+5,1):8,outlineProp=ie<8?"border":"outline",activeItem;function styleFocus(e){if(activeItem){activeItem.style[outlineProp]="";}activeItem=e.target||e.srcElement;if(activeItem){activeItem.style[outlineProp]="solid 2px red";}}if(document.addEventListener){document.addEventListener("focus",styleFocus,true);}else{document.attachEvent("onfocusin",styleFocus);}}());
jsread_tool=POST!http://juicystudio.com/services/readability.php{url=%url}
wave_tool=http://wave.webaim.org/Output.jsp?InputUrlText=%url
##tenon_tool=http://tenon.io/#testnow
Expand Down

0 comments on commit 8cd7679

Please sign in to comment.