Skip to content

Commit

Permalink
Adjust styles a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Jan 3, 2014
1 parent b6a6ebe commit 772b0b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion assets/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ var layer1, layer2, suggested, aspectRatio, frameskip, read_bgs_dat;

document.addEventListener('DOMContentLoaded', function() {
if (true || navigator.userAgent.match('CriOS')) {
document.getElementById("ios-message").className = "col-xs-6";
document.getElementById("ios-message").className =
document.getElementById("ios-message").className.replace( /hidden/ , '' );
}

layer1 = document.getElementById("layer1");
Expand Down
12 changes: 7 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<div class="container">

<div class="row">
<div class="col-xs-6 col-sm-5">
<div class="col-xs-5">
<div id="loading-indicator" class="spinner">
<div class="cube1"></div>
<div class="cube2"></div>
Expand All @@ -34,10 +34,7 @@
Canvas.
</canvas>
</div>
<div class="col-xs-6 hidden" id="ios-message">
<p>Note: you might be using iOS, with a browser that's not Safari. Apple <a href="http://daringfireball.net/2011/03/nitro_ios_43">intentionally impedes JavaScript performance for browsers that aren't Safari</a>. Therefore, for the best performance of this demonstration on iOS, I unfortunately suggest you use Safari. Or, <a href="http://www.idownloadblog.com/2012/07/30/nitrous/">jailbreak your device</a> to allow the code to run smoothly in <em>any</em> browser.</p>
</div>
<div class="col-xs-12 col-sm-7">
<div class="col-xs-7">
<div class="row">
<div class="col-sm-6">
<h6>Change Background Animation</h6>
Expand Down Expand Up @@ -111,6 +108,11 @@ <h6>Change Presentation</h6>
</div>
</div>
</div>
<div class="row hidden" id="ios-message">
<div class="col-xs-12 alert alert-warning">
<p>Note: you might be using iOS, with a browser that's not Safari. Apple <a href="http://daringfireball.net/2011/03/nitro_ios_43">intentionally impedes JavaScript performance for browsers that aren't Safari</a>. Therefore, for the best performance of this demonstration on iOS, I unfortunately suggest you use Safari, or view it on your computer. Or, <a href="http://www.idownloadblog.com/2012/07/30/nitrous/">jailbreak your device</a> to allow the code to run smoothly in <em>any</em> browser.</p>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<hr />
Expand Down

0 comments on commit 772b0b6

Please sign in to comment.