Skip to content

Commit

Permalink
Use rendered PNGs when SVG support not available
Browse files Browse the repository at this point in the history
Partially fixes issue #4
  • Loading branch information
stuartpb committed Apr 24, 2013
1 parent b0e097e commit 93bff5f
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h2 id="active-label" class="banner">Ninja Clan Foot Stealth</h1>
<script type="text/javascript" src="scripts/charting.js"></script>
<script type="text/javascript" src="scripts/shoemakers.js"></script>
<script>
/*global magAvgListener chartable
/*global Modernizr magAvgListener chartable
chartSilence soundTrigger doubleSounder intenSound gallopIterator*/

"use strict";
Expand All @@ -65,7 +65,7 @@ <h2 id="active-label" class="banner">Ninja Clan Foot Stealth</h1>
var initialShoe = localStorage.getItem("initialShoe");
function addShoe(image,label,machine){
var button = document.createElement("img");
button.src = 'shoes/' + image + '.svg';
button.src = 'shoes/' + image + Modernizr.svg ? '.svg' : '.png';
button.className = "shoe-button";
function activateShoe(evt){
document.getElementById("active-label").textContent = label;
Expand Down
2 changes: 1 addition & 1 deletion www/secrets/graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1 id="appname">Jenny</h1>

var mal = chartable(document.getElementById('accelgraph'),{
samples: 10,
frameSec: 0.04,
frameSec: 0,
initY: 10,
baseTop: 20,
baseBottom: 0
Expand Down
Binary file added www/shoes/coconuts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www/shoes/gargantuan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www/shoes/ninja.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www/shoes/spring.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www/shoes/squeaky.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www/shoes/steamplatform.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www/shoes/wetsock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 93bff5f

Please sign in to comment.