Permalink
Browse files

Move all twisty.js dependencies to submodule.

  • Loading branch information...
1 parent cb56083 commit e34ff396cac1c2feb1de6e06b1388d0bae8826a2 Lucas Garron committed Feb 18, 2014
Showing with 12 additions and 1,640 deletions.
  1. +3 −0 .gitmodules
  2. +8 −8 alg.html
  3. +0 −24 inc/RequestAnimationFrame.js
  4. +0 −729 inc/Three.js
  5. +0 −4 inc/jquery-1.11.0.min.js
  6. +0 −574 inc/twisty.js
  7. +0 −301 inc/twisty_alg.js
  8. +1 −0 twisty.js
View
@@ -0,0 +1,3 @@
+[submodule "twisty.js"]
+ path = twisty.js
+ url = https://github.com/cubing/twisty.js.git
View
@@ -5,14 +5,14 @@
<script src="inc/alg.js"></script>
<link href="inc/alg.css" rel="stylesheet" type="text/css" />
- <!-- Includes for twisty.s development: -->
- <script src="inc/jquery-1.11.0.min.js"></script>
- <script src="inc/RequestAnimationFrame.js"></script>
- <script src="inc/Three.js"></script>
- <script src="inc/twisty.js"></script>
- <script src="inc/sign_w_jison.js"></script>
- <script src="inc/twisty_alg.js"></script>
- <script src="inc/cube.js"></script>
+ <!-- Includes for twisty.js development: -->
+ <script src="twisty.js/inc/lib/jquery-1.11.0.min.js"></script>
+ <script src="twisty.js/inc/lib/RequestAnimationFrame.js"></script>
+ <script src="twisty.js/inc/lib/Three.js"></script>
+ <script src="twisty.js/inc/twisty/twisty.js"></script>
+ <script src="twisty.js/inc/twisty/sign_w_jison.js"></script>
+ <script src="twisty.js/inc/twisty/twisty_alg.js"></script>
+ <script src="twisty.js/inc/twisty/twisties/cube.js"></script>
</head>
<body>
@@ -1,24 +0,0 @@
-/**
- * Cancellable version of requestAnimationFrame.
- * http://notes.jetienne.com/2011/05/18/cancelRequestAnimFrame-for-paul-irish-requestAnimFrame.html
- * (found on http://paulirish.com/2011/requestanimationframe-for-smart-animating/)
- */
-window.cancelRequestAnimFrame = (function() {
- return window.cancelAnimationFrame ||
- window.webkitCancelRequestAnimationFrame ||
- window.mozCancelRequestAnimationFrame ||
- window.oCancelRequestAnimationFrame ||
- window.msCancelRequestAnimationFrame ||
- clearTimeout;
-})();
-
-window.requestAnimFrame = (function() {
- return window.requestAnimationFrame ||
- window.webkitRequestAnimationFrame ||
- window.mozRequestAnimationFrame ||
- window.oRequestAnimationFrame ||
- window.msRequestAnimationFrame ||
- function(/* function */ callback, /* DOMElement */ element) {
- return window.setTimeout(callback, 1000 / 60);
- };
-})();
View
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.

0 comments on commit e34ff39

Please sign in to comment.