Skip to content

Commit

Permalink
Generated development html with new splash screen, see phetsims/joist…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Aug 15, 2017
1 parent 20681b4 commit 5d2824d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions area-model-multiplication_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,16 @@
The logo dimensions are given in splash.svg, currently at width="273.172px" height="130.05px"
-->
<img id="splash" style="position: absolute;top: 45%;left: 50%;margin-left: -137px;margin-top: -65px;">
<div id="progressBar"
style="position:absolute;top:50%;left:50%;margin-left:-147px;margin-top:50px;width:273px;height:10px">
<svg>
<rect id="progressBarBackground" x="10" y="10" width="273" height="10" rx="3" ry="3"
style="stroke: white;stroke-width:1"></rect>
<rect id="progressBarForeground" x="10" y="10" width="0" height="10" rx="3" ry="3" style="fill:#6acef5;"></rect>
</svg>
</div>

<script type="text/javascript">
( function() {
// Identify the brand (assume generated brand if not provided with query parameters)
var brandMatch = location.search.match( /brand=([^&]+)/ );
var brand = brandMatch ? decodeURIComponent( brandMatch[ 1 ] ) : 'adapted-from-phet';

// Load the desired splash screen image
document.getElementById( 'splash' ).src = '../brand/' + brand + '/images/splash.svg';

// Preloads, with more included for phet-io brand
var preloads = [
'../joist/js/splash.js',
'../sherpa/lib/jquery-2.1.0.js',
'../sherpa/lib/lodash-4.17.4.js',
'../sherpa/lib/FileSaver-b8054a2.js',
Expand Down

0 comments on commit 5d2824d

Please sign in to comment.