Permalink
Browse files

Version 0.5 pull request

  • Loading branch information...
1 parent f48e5ce commit 875220727201405680f590539ac1ee572bed1297 Matt Lantz committed Oct 9, 2012
Showing with 10,465 additions and 0 deletions.
  1. +154 −0 docs/credits.html
  2. +396 −0 docs/credits.json
  3. +277 −0 docs/css/default.css
  4. +475 −0 docs/demos/builder.html
  5. +407 −0 docs/demos/builder.js
  6. +327 −0 docs/demos/caterpillar.html
  7. +396 −0 docs/demos/chaining.html
  8. +695 −0 docs/demos/cheshire.html
  9. BIN docs/demos/common/images/cards/10_clubs.png
  10. BIN docs/demos/common/images/cards/10_diamonds.png
  11. BIN docs/demos/common/images/cards/10_hearts.png
  12. BIN docs/demos/common/images/cards/10_spades.png
  13. BIN docs/demos/common/images/cards/2_clubs.png
  14. BIN docs/demos/common/images/cards/2_diamonds.png
  15. BIN docs/demos/common/images/cards/2_hearts.png
  16. BIN docs/demos/common/images/cards/2_spades.png
  17. BIN docs/demos/common/images/cards/3_clubs.png
  18. BIN docs/demos/common/images/cards/3_diamonds.png
  19. BIN docs/demos/common/images/cards/3_hearts.png
  20. BIN docs/demos/common/images/cards/3_spades.png
  21. BIN docs/demos/common/images/cards/4_clubs.png
  22. BIN docs/demos/common/images/cards/4_diamonds.png
  23. BIN docs/demos/common/images/cards/4_hearts.png
  24. BIN docs/demos/common/images/cards/4_spades.png
  25. BIN docs/demos/common/images/cards/5_clubs.png
  26. BIN docs/demos/common/images/cards/5_diamonds.png
  27. BIN docs/demos/common/images/cards/5_hearts.png
  28. BIN docs/demos/common/images/cards/5_spades.png
  29. BIN docs/demos/common/images/cards/6_clubs.png
  30. BIN docs/demos/common/images/cards/6_diamonds.png
  31. BIN docs/demos/common/images/cards/6_hearts.png
  32. BIN docs/demos/common/images/cards/6_spades.png
  33. BIN docs/demos/common/images/cards/7_clubs.png
  34. BIN docs/demos/common/images/cards/7_diamonds.png
  35. BIN docs/demos/common/images/cards/7_hearts.png
  36. BIN docs/demos/common/images/cards/7_spades.png
  37. BIN docs/demos/common/images/cards/8_clubs.png
  38. BIN docs/demos/common/images/cards/8_diamonds.png
  39. BIN docs/demos/common/images/cards/8_hearts.png
  40. BIN docs/demos/common/images/cards/8_spades.png
  41. BIN docs/demos/common/images/cards/9_clubs.png
  42. BIN docs/demos/common/images/cards/9_diamonds.png
  43. BIN docs/demos/common/images/cards/9_hearts.png
  44. BIN docs/demos/common/images/cards/9_spades.png
  45. BIN docs/demos/common/images/cards/ace_clubs.png
  46. BIN docs/demos/common/images/cards/ace_diamonds.png
  47. BIN docs/demos/common/images/cards/ace_hearts.png
  48. BIN docs/demos/common/images/cards/ace_spades.png
  49. BIN docs/demos/common/images/cards/back_pattern_blue.png
  50. BIN docs/demos/common/images/cards/back_pattern_red.png
  51. BIN docs/demos/common/images/cards/back_plain_blue.png
  52. BIN docs/demos/common/images/cards/back_plain_red.png
  53. BIN docs/demos/common/images/cards/back_suits_blue.png
  54. BIN docs/demos/common/images/cards/back_suits_red.png
  55. BIN docs/demos/common/images/cards/jack_clubs.png
  56. BIN docs/demos/common/images/cards/jack_diamonds.png
  57. BIN docs/demos/common/images/cards/jack_hearts.png
  58. BIN docs/demos/common/images/cards/jack_spades.png
  59. BIN docs/demos/common/images/cards/joker_black.png
  60. BIN docs/demos/common/images/cards/joker_red.png
  61. BIN docs/demos/common/images/cards/king_clubs.png
  62. BIN docs/demos/common/images/cards/king_diamonds.png
  63. BIN docs/demos/common/images/cards/king_hearts.png
  64. BIN docs/demos/common/images/cards/king_spades.png
  65. +3 −0 docs/demos/common/images/cards/license.txt
  66. BIN docs/demos/common/images/cards/queen_clubs.png
  67. BIN docs/demos/common/images/cards/queen_diamonds.png
  68. BIN docs/demos/common/images/cards/queen_hearts.png
  69. BIN docs/demos/common/images/cards/queen_spades.png
  70. BIN docs/demos/common/images/photos/aerogel_flower.jpg
  71. BIN docs/demos/common/images/photos/aurora_borealis.jpg
  72. BIN docs/demos/common/images/photos/buzz_aldrin_moon.jpg
  73. BIN docs/demos/common/images/photos/cartwheel_galaxy.jpg
  74. BIN docs/demos/common/images/photos/earth_western_hemisphere.jpg
  75. BIN docs/demos/common/images/photos/hurricane_katrina.jpg
  76. +3 −0 docs/demos/common/images/photos/license.txt
  77. BIN docs/demos/common/images/photos/mars_rover.jpg
  78. BIN docs/demos/common/images/photos/orion_iss.jpg
  79. BIN docs/demos/common/images/photos/shuttle_cockpit.jpg
  80. BIN docs/demos/common/images/photos/solar_system.jpg
  81. BIN docs/demos/common/videos/last_shuttle_liftoff.jpg
  82. BIN docs/demos/common/videos/last_shuttle_liftoff.m4v
  83. +3 −0 docs/demos/common/videos/license.txt
  84. BIN docs/demos/common/videos/lunar_eclipse.jpg
  85. BIN docs/demos/common/videos/lunar_eclipse.m4v
  86. BIN docs/demos/common/videos/tgf_antimatter.jpg
  87. BIN docs/demos/common/videos/tgf_antimatter.m4v
  88. +237 −0 docs/demos/fx/book.html
  89. +136 −0 docs/demos/fx/bounce.html
  90. +135 −0 docs/demos/fx/dance.html
  91. +147 −0 docs/demos/fx/default.css
  92. +135 −0 docs/demos/fx/drain.html
  93. +135 −0 docs/demos/fx/fade.html
  94. +135 −0 docs/demos/fx/hinge.html
  95. +135 −0 docs/demos/fx/pageFlip.html
  96. +135 −0 docs/demos/fx/pendulum.html
  97. +135 −0 docs/demos/fx/phantomZone.html
  98. +135 −0 docs/demos/fx/raceFlag.html
  99. +546 −0 docs/demos/fx/settings.js
  100. +135 −0 docs/demos/fx/slide.html
  101. +135 −0 docs/demos/fx/spin.html
  102. +135 −0 docs/demos/fx/toss.html
  103. +135 −0 docs/demos/fx/twirl.html
  104. +135 −0 docs/demos/fx/wobble.html
  105. +136 −0 docs/demos/fx/zoom.html
  106. +197 −0 docs/demos/index.html
  107. +15 −0 docs/demos/newgame.html
  108. +502 −0 docs/demos/sampler.html
  109. +224 −0 docs/demos/stack.html
  110. +263 −0 docs/index.html
  111. BIN images/AliceMain.png
  112. BIN images/caterpillar.png
  113. BIN images/cheshire.png
  114. BIN images/favicon.ico
  115. BIN images/madhatter.png
  116. BIN images/pat.jpg
  117. BIN images/queen.png
  118. BIN images/rabbit2.png
  119. +45 −0 js/alice.min.js
  120. BIN js/alice.min.js.gz
  121. +1,599 −0 src/alice.plugins.caterpillar.js
  122. +888 −0 src/alice.plugins.cheshire.js
  123. +448 −0 tests/jasmine/alice.core.jasmineTests.js
  124. +77 −0 tests/jasmine/index.html
  125. +71 −0 tests/qunit/alice.core.qunitTests.js
  126. +43 −0 tests/qunit/index.html
View
@@ -0,0 +1,154 @@
+<!DOCTYPE html>
+<!--
+ Copyright 2011-2012 Research In Motion Limited.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=yes">
+ <title>Credits</title>
+ <link href="favicon.ico" rel="icon" type="image/x-icon">
+ <style type="text/css">
+ body {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 84%;
+ }
+ th {
+ background-color: #000040;
+ color: #FFF;
+ }
+ td {
+ vertical-align: top;
+ }
+ img {
+ border: 0;
+ }
+ .odd {
+ background-color: #F5F5F5;
+ }
+ .even {
+ background-color: #EBEBEB;
+ }
+ .image {
+ text-align: center;
+ }
+ </style>
+ </head>
+ <body>
+ <h1><a href="index.html"><img src="../images/back_btn.png" style="vertical-align: middle; margin-right: 10px;"></a>Credits</h1>
+
+ <div id="content"></div>
+ <div>&nbsp;</div>
+
+ <script src="credits.json"></script>
+ <script type="text/javascript">
+ var html = '';
+
+ html += '<table border="0" cellpadding="3" cellspacing="2" width="100%">';
+
+ for (var i = 0; i < groups.length; i++) {
+ var group = groups[i];
+
+ html += '<tr>';
+ html += '<td colspan="6"><h2>' + group.path + '</h2></td>';
+ html += '</tr>';
+ html += '<tr>';
+ html += '<th>Resource</th>';
+ html += '<th>Filename</th>';
+ html += '<th>Description</th>';
+ html += '<th>License</th>';
+ html += '<th>Source</th>';
+ html += '<th>Credit</th>';
+ html += '</tr>';
+
+ for (var j = 0; j < group.items.length; j++) {
+ var item = group.items[j];
+
+ var rowcolor = (j % 2 === 0) ? 'even' : 'odd';
+
+ var ext_pos = item.filename.lastIndexOf(".");
+ var filename = item.filename.substring(0, ext_pos);
+ var extension = item.filename.substring(ext_pos);
+ //console.log(filename + ' -> ' + extension);
+
+ var name = item.filename || item.name;
+ var w = item.width || group.width || 64;
+ var h = item.height || group.height || 64;
+ var desc = item.desc || '&nbsp;';
+ var license = item.license || group.license || '&nbsp;';
+ var source = item.source || group.source || '&nbsp;';
+ var url = item.url || group.url || '';
+ var credit = item.credit || '&nbsp;'
+
+ var res_href = '';
+ if (item.filename) {
+ if (extension == '.ico') {
+ res_href = group.path + '/' + filename + '.ico';
+ }
+ else if (extension == '.m4v') {
+ res_href = group.path + '/' + filename + '.jpg';
+ }
+ else {
+ res_href = group.path + '/' + item.filename
+ }
+ }
+ else {
+ res_href = '../images/folder.png';
+ }
+
+ var src_href = '';
+ if (source) {
+ if (url) {
+ src_href = '<a href="' + url + '">' + source + '</a>';
+ }
+ else {
+ src_href = source;
+ }
+ }
+ else {
+ src_href = '&nbsp;';
+ }
+
+ html += '<tr class="' + rowcolor + '">';
+ html += '<td class="image"><a href="' + group.path + '/' + item.filename + '"><img src="' + res_href + '" width="' + w + '" height="' + h + '"></a></td>';
+ html += '<td><a href="' + group.path + '/' + item.filename + '">' + name + '</a></td>';
+ html += '<td>' + desc + '</td>';
+ html += '<td>' + license + '</td>';
+ html += '<td>' + src_href + '</td>';
+ html += '<td>' + credit + '</td>';
+ html += '</tr>';
+ }
+ }
+
+ html += '</table>';
+
+ document.getElementById('content').innerHTML = html;
+
+ // Google Analytics
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-28534102-1']);
+ _gaq.push(['_setDomainName', 'github.com']);
+ _gaq.push(['_trackPageview']);
+ (function () {
+ var ga = document.createElement('script');
+ ga.type = 'text/javascript';
+ ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit 8752207

Please sign in to comment.