Skip to content

Commit

Permalink
Hide extraneous graphical content and the 'heartbeat' from screen rea…
Browse files Browse the repository at this point in the history
…ders, see issue #310
  • Loading branch information
jessegreenberg committed Dec 23, 2015
1 parent 191b15a commit ffe0c38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/Sim.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ define( function( require ) {

var simDiv = sim.display.domElement;
simDiv.id = 'sim';
simDiv.setAttribute( 'aria-hidden', true ); // hide div from screen readers (a11y)
document.body.appendChild( simDiv );

// for preventing Safari from going to sleep. see https://github.com/phetsims/joist/issues/140
Expand All @@ -320,6 +321,7 @@ define( function( require ) {
heartbeatDiv.style.width = '0';
heartbeatDiv.style.height = '0';
heartbeatDiv.style.clip = 'rect(0,0,0,0)';
heartbeatDiv.setAttribute( 'aria-hidden', true ); // hide div from screen readers (a11y)
document.body.appendChild( heartbeatDiv );

if ( phet.chipper.getQueryParameter( 'sceneryLog' ) ) {
Expand Down

0 comments on commit ffe0c38

Please sign in to comment.