Skip to content

Commit

Permalink
Moving RichText from scenery-phet to scenery, see phetsims/scenery-ph…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Aug 8, 2017
1 parent 4183b12 commit 41e0b39
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 6 deletions.
13 changes: 7 additions & 6 deletions accessibility/DOMPrototype.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<!-- Pull in heftier accessibility scripting from the file as well as lodash for convenience and assertions for sanity -->
<script src="accessibility-script.js"></script>
<script type="text/javascript" src="../../sherpa/lib/lodash-4.17.4.min.js"></script>
<script type="text/javascript" src="../../sherpa/lib/himalaya-0.2.7.js"></script>
<script type="text/javascript" src="../../assert/js/assert.js"></script>
</head>

Expand Down Expand Up @@ -35,13 +36,13 @@ <h2 id='netForceLabel' aria-describedby='netForceDescription'>Net Force</h2>
There is a heavily loaded cart on
wheels sitting on a track...
</p>

<!-- Left puller group. A button is used to enter the nest so that the user can quickly navigate to this element and understand that
this using the button will begin a drag and drop mode. -->
<input tabindex="0" type='button' value='Left pullers' aria-labelledby="leftPullerGroupDescription" id="leftPullerGroupButton">
<p id="leftPullerGroupDescription">Left pullers standing near rope. Press enter to select a puller for drag and drop.</p>
<ul id="leftPullerGroup" hidden>
<li tabindex="0" draggable="true" aria-grabbed="false">Left group, Large puller standing near rope</li>
<li tabindex="0" draggable="true" aria-grabbed="false">Left group, Large puller standing near rope</li>
<li tabindex="0" draggable="true" aria-grabbed="false">Left group, medium puller standing near rope</li>
<li tabindex="0" draggable="true" aria-grabbed="false">Left group, first small puller standing near rope</li>
<li tabindex="0" draggable="true" aria-grabbed="false">Left group, second small puller standing near rope</li>
Expand All @@ -58,7 +59,7 @@ <h2 id='netForceLabel' aria-describedby='netForceDescription'>Net Force</h2>
<li tabindex="0" draggable="true" aria-grabbed="false">Right group, large puller standing near rope</li>
</ul>

<!-- List of knots, using the aria-dropeffect to signify that these are potential locations for a puller -->
<!-- List of knots, using the aria-dropeffect to signify that these are potential locations for a puller -->
<h4 id="leftKnotGroupDescription" hidden>Left knots. Press enter to place selected puller on knot.</h4>
<ul tabindex="0" id="leftKnotGroup" aria-labelledby='leftKnotGroupDescription' hidden>
<li tabindex="0" aria-dropeffect="move">First knot, closest to the cart</li>
Expand All @@ -67,7 +68,7 @@ <h4 id="leftKnotGroupDescription" hidden>Left knots. Press enter to place selec
<li tabindex="0" aria-dropeffect="move">Fourth knot, farthest from the cart</li>
</ul>

<!-- List of knots, using the aria-dropeffect to signify that these are potential locations for a puller -->
<!-- List of knots, using the aria-dropeffect to signify that these are potential locations for a puller -->
<h4 id="rightKnotGroupDescription" hidden>Right knots. Press enter to place selected puller on knot.</h4>
<ul tabindex="0" id="rightKnotGroup" aria-labelledby='rightKnotGroupDescription' hidden>
<li tabindex="0" aria-dropeffect="move">First knot, closest to the cart</li>
Expand Down Expand Up @@ -104,7 +105,7 @@ <h4 id="rightKnotGroupDescription" hidden>Right knots. Press enter to place sel

<!--Element used to alert the user that an action or event has occured in the simulation-->
<p><span id="ariaActionElement" aria-live="polite" aria-atomic="true"></span></p>

</div>

<!-- Prototype accessibility content for the remaining screens has not been created yet. -->
Expand All @@ -126,7 +127,7 @@ <h4 id="rightKnotGroupDescription" hidden>Right knots. Press enter to place sel
var rightPullerGroupButton = document.getElementById( 'rightPullerGroupButton')
var leftPullerGroupButton = document.getElementById( 'leftPullerGroupButton')

// Register the events for the various dynamic control elements
// Register the events for the various dynamic control elements
leftPullerGroupButton.addEventListener( 'click', function( event ) {
enterGroup( event, leftPullerGroup );
} );
Expand Down
1 change: 1 addition & 0 deletions accessibility/accessibility-documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<!-- jQuery and LoDash are dependencies -->
<script src="../../sherpa/lib/jquery-2.1.0.min.js"></script>
<script src="../../sherpa/lib/lodash-4.17.4.min.js"></script>
<script src="../../sherpa/lib/himalaya-0.2.7.js"></script>

<!-- For the styling -->
<script src="../../sherpa/lib/bootstrap-2.2.2.js"></script>
Expand Down
1 change: 1 addition & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ define( [
'SCENERY/nodes/Path',
'SCENERY/nodes/Plane',
'SCENERY/nodes/Rectangle',
'SCENERY/nodes/RichText',
'SCENERY/nodes/Spacer',
'SCENERY/nodes/Text',
'SCENERY/nodes/VBox',
Expand Down
1 change: 1 addition & 0 deletions tests/benchmarks/benchmarks.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

<script src="../../../sherpa/lib/jquery-2.1.0.min.js"></script>
<script src="../../../sherpa/lib/lodash-4.17.4.min.js"></script>
<script src="../../../sherpa/lib/himalaya-0.2.7.js"></script>
<script src="../../../sherpa/lib/benchmark-1.0.0.js"></script>
<script src="../../../sherpa/lib/bootstrap-2.2.2.js"></script>

Expand Down
1 change: 1 addition & 0 deletions tests/benchmarks/performance-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

<script src="../../../sherpa/lib/jquery-2.1.0.min.js"></script>
<script src="../../../sherpa/lib/lodash-4.17.4.min.js"></script>
<script src="../../../sherpa/lib/himalaya-0.2.7.js"></script>
<script src="../../../sherpa/lib/benchmark-1.0.0.js"></script>
<script src="../../../sherpa/lib/bootstrap-2.2.2.js"></script>

Expand Down
1 change: 1 addition & 0 deletions tests/browsers/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

<script src="../../../sherpa/lib/jquery-2.1.0.min.js"></script>
<script src="../../../sherpa/lib/lodash-4.17.4.min.js"></script>
<script src="../../../sherpa/lib/himalaya-0.2.7.js"></script>

<style>
html {
Expand Down
1 change: 1 addition & 0 deletions tests/frames-and-events.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<script src="../../assert/js/assert.js"></script>
<script src="../../sherpa/lib/jquery-2.1.0.js"></script>
<script src="../../sherpa/lib/lodash-4.17.4.min.js"></script>
<script src="../../sherpa/lib/himalaya-0.2.7.js"></script>

<script type="text/javascript">
window.assertions.enableAssert();
Expand Down
1 change: 1 addition & 0 deletions tests/fuzzer.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<script src="../../assert/js/assert.js"></script>
<script src="../../sherpa/lib/jquery-2.1.0.js"></script>
<script src="../../sherpa/lib/lodash-4.17.4.min.js"></script>
<script src="../../sherpa/lib/himalaya-0.2.7.js"></script>

<script type="text/javascript">
// We want to trigger any assertions we can
Expand Down
1 change: 1 addition & 0 deletions tests/playground.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<script src="../../assert/js/assert.js"></script>
<script src="../../sherpa/lib/jquery-2.1.0.js"></script>
<script src="../../sherpa/lib/lodash-4.17.4.min.js"></script>
<script src="../../sherpa/lib/himalaya-0.2.7.js"></script>

<script type="text/javascript">
window.assertions.enableAssert();
Expand Down
1 change: 1 addition & 0 deletions tests/qunit/unit-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

<script src="../../../sherpa/lib/jquery-2.1.0.js"></script>
<script src="../../../sherpa/lib/lodash-4.17.4.min.js"></script>
<script src="../../../sherpa/lib/himalaya-0.2.7.js"></script>
<script src="../../../sherpa/lib/base64-js-1.2.0.js"></script>
<script src="../../../sherpa/lib/TextEncoderLite-3c9f6f0.js"></script>
<script src="../../../assert/js/assert.js"></script>
Expand Down
1 change: 1 addition & 0 deletions tests/renderer-comparison.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<script src="../../assert/js/assert.js"></script>
<script src="../../sherpa/lib/jquery-2.1.0.min.js"></script>
<script src="../../sherpa/lib/lodash-4.17.4.min.js"></script>
<script src="../../sherpa/lib/himalaya-0.2.7.js"></script>
<script src="../../query-string-machine/js/QueryStringMachine.js"></script>
<script src="../../chipper/js/initialize-globals.js"></script>

Expand Down
1 change: 1 addition & 0 deletions tests/sharpness-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<script src="../../sherpa/lib/jquery-2.1.0.js"></script>
<script src="../../sherpa/lib/lodash-4.17.4.min.js"></script>
<script src="../../assert/js/assert.js"></script>
<script src="../../sherpa/lib/himalaya-0.2.7.js"></script>

<script data-main="../js/config.js" src="../../sherpa/lib/require-2.1.11.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions tests/webgl/loop-blinn.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<script src="../../../sherpa/lib/lodash-4.17.4.min.js"></script>
<script src="../../../sherpa/lib/base64-js-1.2.0.js"></script>
<script src="../../../sherpa/lib/TextEncoderLite-3c9f6f0.js"></script>
<script src="../../../sherpa/lib/himalaya-0.2.7.js"></script>
<script src="../../../assert/js/assert.js"></script>
<script type="text/javascript">
window.assertions.enableAssert();
Expand Down

0 comments on commit 41e0b39

Please sign in to comment.