Skip to content

Commit

Permalink
move utteranceQueue singleton to instance Type on each SCENERY/Display,
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Nov 6, 2019
1 parent 59fdc88 commit eb345b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
8 changes: 4 additions & 4 deletions templates/sim-a11y-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ <h3>PDOM & Descriptions for {{PHET_SIM_TITLE}}</h3>
var PDOMCopy = PDOMRoot.cloneNode( true );

// get the alert dom elements from the iframe's inner document
var politeElement1 = innerDoc.getElementById( 'polite-1' );
var politeElement2 = innerDoc.getElementById( 'polite-2' );
var politeElement3 = innerDoc.getElementById( 'polite-3' );
var politeElement4 = innerDoc.getElementById( 'polite-4' );
var politeElement1 = innerDoc.getElementById( 'elements-1-polite-1' );
var politeElement2 = innerDoc.getElementById( 'elements-1-polite-2' );
var politeElement3 = innerDoc.getElementById( 'elements-1-polite-3' );
var politeElement4 = innerDoc.getElementById( 'elements-1-polite-4' );

// get the alert dom elements from the PDOM copy
var alertList = document.getElementById( 'alert-list' );
Expand Down
8 changes: 0 additions & 8 deletions templates/sim-development.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
<!-- body is only made black for the loading phase so that the splash screen is black -->
<body{{BODYSTYLE}}>
{{BODYSTART}}
<!-- a11y - aria-live attribute is used to send alerts and status updates to screen readers, otherwise invisible -->
<div id='aria-live-elements'
style="position: absolute; left: 0px; top: 0px; width: 0px; height: 0px; clip: rect(0px 0px 0px 0px); pointer-events: none;">
<p id="polite-1" aria-live="polite"></p>
<p id="polite-2" aria-live="polite"></p>
<p id="polite-3" aria-live="polite"></p>
<p id="polite-4" aria-live="polite"></p>
</div>

<script type="text/javascript">

Expand Down
9 changes: 0 additions & 9 deletions templates/sim.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@
-->
<!-- body is only made black for the loading phase so that the splash screen is black -->
<body style="background-color:black;">

<!-- a11y - aria-live attribute is used to send alerts and status updates to screen readers, otherwise invisible -->
<div id='aria-live-elements' style="position: fixed; left: 0px; top: 0px; width: 0px; height: 0px; clip: rect(0px 0px 0px 0px); pointer-events: none;">
<p id="polite-1" aria-live="polite"></p>
<p id="polite-2" aria-live="polite"></p>
<p id="polite-3" aria-live="polite"></p>
<p id="polite-4" aria-live="polite"></p>
</div>

{{PHET_SIM_SCRIPTS}}
</body>
</html>

0 comments on commit eb345b0

Please sign in to comment.