Permalink
Browse files

Version 0.5 Updating

  • Loading branch information...
1 parent 8752207 commit ecd6bafd511d6810d5d4d23bc5f4c7efa3f968c7 Matt Lantz committed Oct 9, 2012
Showing with 80 additions and 9,758 deletions.
  1. +4 −2 Jakefile
  2. +12 −7 README.md
  3. +2 −2 config.xml
  4. +0 −154 credits.html
  5. +0 −348 credits.json
  6. +0 −223 default.css
  7. +0 −475 demos/builder.html
  8. +0 −403 demos/builder.js
  9. +0 −216 demos/chaining.html
  10. BIN demos/common/images/cards/10_clubs.png
  11. BIN demos/common/images/cards/10_diamonds.png
  12. BIN demos/common/images/cards/10_hearts.png
  13. BIN demos/common/images/cards/10_spades.png
  14. BIN demos/common/images/cards/2_clubs.png
  15. BIN demos/common/images/cards/2_diamonds.png
  16. BIN demos/common/images/cards/2_hearts.png
  17. BIN demos/common/images/cards/2_spades.png
  18. BIN demos/common/images/cards/3_clubs.png
  19. BIN demos/common/images/cards/3_diamonds.png
  20. BIN demos/common/images/cards/3_hearts.png
  21. BIN demos/common/images/cards/3_spades.png
  22. BIN demos/common/images/cards/4_clubs.png
  23. BIN demos/common/images/cards/4_diamonds.png
  24. BIN demos/common/images/cards/4_hearts.png
  25. BIN demos/common/images/cards/4_spades.png
  26. BIN demos/common/images/cards/5_clubs.png
  27. BIN demos/common/images/cards/5_diamonds.png
  28. BIN demos/common/images/cards/5_hearts.png
  29. BIN demos/common/images/cards/5_spades.png
  30. BIN demos/common/images/cards/6_clubs.png
  31. BIN demos/common/images/cards/6_diamonds.png
  32. BIN demos/common/images/cards/6_hearts.png
  33. BIN demos/common/images/cards/6_spades.png
  34. BIN demos/common/images/cards/7_clubs.png
  35. BIN demos/common/images/cards/7_diamonds.png
  36. BIN demos/common/images/cards/7_hearts.png
  37. BIN demos/common/images/cards/7_spades.png
  38. BIN demos/common/images/cards/8_clubs.png
  39. BIN demos/common/images/cards/8_diamonds.png
  40. BIN demos/common/images/cards/8_hearts.png
  41. BIN demos/common/images/cards/8_spades.png
  42. BIN demos/common/images/cards/9_clubs.png
  43. BIN demos/common/images/cards/9_diamonds.png
  44. BIN demos/common/images/cards/9_hearts.png
  45. BIN demos/common/images/cards/9_spades.png
  46. BIN demos/common/images/cards/ace_clubs.png
  47. BIN demos/common/images/cards/ace_diamonds.png
  48. BIN demos/common/images/cards/ace_hearts.png
  49. BIN demos/common/images/cards/ace_spades.png
  50. BIN demos/common/images/cards/back_pattern_blue.png
  51. BIN demos/common/images/cards/back_pattern_red.png
  52. BIN demos/common/images/cards/back_plain_blue.png
  53. BIN demos/common/images/cards/back_plain_red.png
  54. BIN demos/common/images/cards/back_suits_blue.png
  55. BIN demos/common/images/cards/back_suits_red.png
  56. BIN demos/common/images/cards/jack_clubs.png
  57. BIN demos/common/images/cards/jack_diamonds.png
  58. BIN demos/common/images/cards/jack_hearts.png
  59. BIN demos/common/images/cards/jack_spades.png
  60. BIN demos/common/images/cards/joker_black.png
  61. BIN demos/common/images/cards/joker_red.png
  62. BIN demos/common/images/cards/king_clubs.png
  63. BIN demos/common/images/cards/king_diamonds.png
  64. BIN demos/common/images/cards/king_hearts.png
  65. BIN demos/common/images/cards/king_spades.png
  66. +0 −3 demos/common/images/cards/license.txt
  67. BIN demos/common/images/cards/queen_clubs.png
  68. BIN demos/common/images/cards/queen_diamonds.png
  69. BIN demos/common/images/cards/queen_hearts.png
  70. BIN demos/common/images/cards/queen_spades.png
  71. BIN demos/common/images/photos/aerogel_flower.jpg
  72. BIN demos/common/images/photos/aurora_borealis.jpg
  73. BIN demos/common/images/photos/buzz_aldrin_moon.jpg
  74. BIN demos/common/images/photos/cartwheel_galaxy.jpg
  75. BIN demos/common/images/photos/earth_western_hemisphere.jpg
  76. BIN demos/common/images/photos/hurricane_katrina.jpg
  77. +0 −3 demos/common/images/photos/license.txt
  78. BIN demos/common/images/photos/mars_rover.jpg
  79. BIN demos/common/images/photos/orion_iss.jpg
  80. BIN demos/common/images/photos/shuttle_cockpit.jpg
  81. BIN demos/common/images/photos/solar_system.jpg
  82. BIN demos/common/videos/last_shuttle_liftoff.jpg
  83. BIN demos/common/videos/last_shuttle_liftoff.m4v
  84. +0 −3 demos/common/videos/license.txt
  85. BIN demos/common/videos/lunar_eclipse.jpg
  86. BIN demos/common/videos/lunar_eclipse.m4v
  87. BIN demos/common/videos/tgf_antimatter.jpg
  88. BIN demos/common/videos/tgf_antimatter.m4v
  89. +0 −136 demos/fx/bounce.html
  90. +0 −135 demos/fx/dance.html
  91. +0 −147 demos/fx/default.css
  92. +0 −135 demos/fx/drain.html
  93. +0 −135 demos/fx/fade.html
  94. +0 −135 demos/fx/hinge.html
  95. +0 −135 demos/fx/pageFlip.html
  96. +0 −135 demos/fx/pendulum.html
  97. +0 −135 demos/fx/phantomZone.html
  98. +0 −135 demos/fx/raceFlag.html
  99. +0 −546 demos/fx/settings.js
  100. +0 −135 demos/fx/slide.html
  101. +0 −135 demos/fx/spin.html
  102. +0 −135 demos/fx/toss.html
  103. +0 −135 demos/fx/twirl.html
  104. +0 −135 demos/fx/wobble.html
  105. +0 −136 demos/fx/zoom.html
  106. +0 −589 demos/index.html
  107. +0 −435 demos/sampler.html
  108. +0 −195 demos/stack.html
  109. BIN favicon.ico
  110. BIN images/rabbit.png
  111. +0 −222 index.html
  112. +0 −27 js/alice-min.js
  113. +0 −1,546 js/alice.js
  114. +0 −696 js/src/alice.core.js
  115. +0 −850 js/src/alice.plugins.cheshire.js
  116. +0 −448 specs/alice.core.js
  117. +0 −77 specs/index.html
  118. +0 −71 tests/alice.core.js
  119. +62 −43 tests/index.html
View
@@ -12,9 +12,11 @@ task("build", [], function () {
console.log(" - including alice.core.js");
- output += fs.readFileSync("js/src/alice.core.js", "utf-8");
+ output += fs.readFileSync("src/alice.core.js", "utf-8");
console.log(" - including alice.plugins.cheshire.js");
- output += fs.readFileSync("js/src/alice.plugins.cheshire.js", "utf-8");
+ output += fs.readFileSync("src/alice.plugins.cheshire.js", "utf-8");
+ console.log(" - including alice.plugins.caterpillar.js");
+ output += fs.readFileSync("src/alice.plugins.caterpillar.js", "utf-8");
console.log("writing: js/alice.js");
fs.writeFileSync("js/alice.js", output);
console.log("minifying: js/alice-min.js");
View
@@ -8,6 +8,8 @@ This library and the sample code is Open Source under the [Apache 2.0 License](h
* [Laurent Hasson](https://github.com/ldhasson) ([@ldhasson](http://twitter.com/ldhasson), lhasson at rim dot com)
* [Jim Ing](https://github.com/psiborg) ([@jim_ing](http://twitter.com/jim_ing), jing at rim dot com)
+* [Gord Tanner](https://github.com/gtanner) ([@gordtanner](http://twitter.com/gordtanner), gtanner at rim dot com)
+* [Matt Lantz](https://github.com/mlantz) ([@mattylantz](http://twitter.com/mattylantz), malantz at rim dot com)
**Requirements:**
@@ -52,13 +54,16 @@ This library and the sample code is Open Source under the [Apache 2.0 License](h
4. Apply Alice's effects by specifying the ID of your target DIV and some parameters. These options will apply a "slide (left)" effect to your DIVs.
<script type="text/javascript">
- var a = alice.init(),
- deck = document.getElementById("deck").children;
-
- a.slide(deck, "left", "", {
- "value": "1000ms",
- "randomness": "0%",
- "offset": "150ms"
+ var deck = document.getElementById("deck").children;
+
+ alicejs.slide({
+ elems: deck,
+ move: "left",
+ duration: {
+ "value": "1000ms",
+ "randomness": "0%",
+ "offset": "150ms"
+ }
});
</script>
View
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
-<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="0.2.3" rim:header="RIM-Widget:rim/widget">
+<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="0.5" rim:header="RIM-Widget:rim/widget">
<name>AliceJS</name>
<description>AliceJS (A Lightweight Independent CSS Engine)</description>
<author rim:copyright="2012">Research In Motion Limited</author>
<icon rim:hover="false" src="images/app_icon.png"/>
<icon rim:hover="true" src="images/app_icon.png"/>
<content src="index.html"/>
-</widget>
+</widgett
View
@@ -1,154 +0,0 @@
-<!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 ecd6baf

Please sign in to comment.