Skip to content
Browse files

Added some samples

Added Calorie Counter, HexClock, Psychic8, SystemAPIs, Toe-Tac-Tic,
WebWorks Testing, and BB10 version of bbUI localStorage.
  • Loading branch information...
1 parent 0467ee6 commit 4fec81107acd08803b2c7fd087499160cf9d67fd @SCrid2000 SCrid2000 committed Jan 19, 2013
Showing with 86,549 additions and 0 deletions.
  1. +72 −0 Calorie-Counter/LICENSE
  2. +13 −0 Calorie-Counter/README.md
  3. +65 −0 Calorie-Counter/config.xml
  4. +5,329 −0 Calorie-Counter/cssjs/bbui.css
  5. +8,400 −0 Calorie-Counter/cssjs/bbui.js
  6. +130 −0 Calorie-Counter/cssjs/custom.css
  7. +79 −0 Calorie-Counter/cssjs/custom.js
  8. BIN Calorie-Counter/images/bbm.png
  9. BIN Calorie-Counter/images/calendar.png
  10. BIN Calorie-Counter/images/icon.png
  11. BIN Calorie-Counter/images/trash.png
  12. +84 −0 Calorie-Counter/index.html
  13. +32 −0 Calorie-Counter/menu.html
  14. +72 −0 HexClock/LICENSE
  15. +13 −0 HexClock/README.md
  16. +17 −0 HexClock/clock.html
  17. +23 −0 HexClock/config.xml
  18. +5,422 −0 HexClock/cssjs/bbui-0.9.5.css
  19. +7,996 −0 HexClock/cssjs/bbui-0.9.5.js
  20. +110 −0 HexClock/cssjs/custom.css
  21. +70 −0 HexClock/cssjs/custom.js
  22. BIN HexClock/images/bbm.png
  23. BIN HexClock/images/icon.png
  24. BIN HexClock/images/yourinfo.png
  25. +84 −0 HexClock/index.html
  26. +72 −0 KISS BBM Integration/LICENSE
  27. +25 −0 Psychic8/8ball.html
  28. +72 −0 Psychic8/LICENSE
  29. +14 −0 Psychic8/README.md
  30. +21 −0 Psychic8/config.xml
  31. +5,422 −0 Psychic8/cssjs/bbui-0.9.5.css
  32. +7,996 −0 Psychic8/cssjs/bbui-0.9.5.js
  33. +107 −0 Psychic8/cssjs/custom.css
  34. +84 −0 Psychic8/cssjs/custom.js
  35. BIN Psychic8/images/8ball.png
  36. BIN Psychic8/images/bbm.png
  37. BIN Psychic8/images/icon.png
  38. BIN Psychic8/images/yourinfo.png
  39. +71 −0 Psychic8/index.html
  40. +72 −0 SystemAPIs/LICENSE
  41. +26 −0 SystemAPIs/README.md
  42. +59 −0 SystemAPIs/config.xml
  43. +5,650 −0 SystemAPIs/cssjs/bbui.css
  44. +9,004 −0 SystemAPIs/cssjs/bbui.js
  45. +102 −0 SystemAPIs/cssjs/custom.css
  46. +52 −0 SystemAPIs/cssjs/custom.js
  47. BIN SystemAPIs/images/icon.png
  48. BIN SystemAPIs/images/splashscreen-tall.jpg
  49. BIN SystemAPIs/images/splashscreen-wide.jpg
  50. BIN SystemAPIs/images/wallpaper.jpg
  51. +39 −0 SystemAPIs/index.html
  52. +102 −0 SystemAPIs/info.html
  53. +72 −0 Toe-Tac-Tic/LICENSE
  54. +14 −0 Toe-Tac-Tic/README.md
  55. +63 −0 Toe-Tac-Tic/config.xml
  56. BIN Toe-Tac-Tic/images/ajax-loader.gif
  57. BIN Toe-Tac-Tic/images/bbm.png
  58. BIN Toe-Tac-Tic/images/blank.png
  59. BIN Toe-Tac-Tic/images/icon.png
  60. BIN Toe-Tac-Tic/images/icons-18-black.png
  61. BIN Toe-Tac-Tic/images/icons-18-white.png
  62. BIN Toe-Tac-Tic/images/icons-36-black.png
  63. BIN Toe-Tac-Tic/images/icons-36-white.png
  64. BIN Toe-Tac-Tic/images/o.png
  65. BIN Toe-Tac-Tic/images/x.png
  66. BIN Toe-Tac-Tic/images/yourinfo.png
  67. +125 −0 Toe-Tac-Tic/index.html
  68. +2 −0 Toe-Tac-Tic/jquery-1.8.3.min.js
  69. +2 −0 Toe-Tac-Tic/jquery.mobile-1.2.0.min.css
  70. +2 −0 Toe-Tac-Tic/jquery.mobile-1.2.0.min.js
  71. +72 −0 WebWorks-Testing/LICENSE
  72. +27 −0 WebWorks-Testing/README.md
  73. +64 −0 WebWorks-Testing/config.xml
  74. +5,422 −0 WebWorks-Testing/cssjs/bbui-0.9.5.css
  75. +7,996 −0 WebWorks-Testing/cssjs/bbui-0.9.5.js
  76. +59 −0 WebWorks-Testing/cssjs/custom.css
  77. +43 −0 WebWorks-Testing/cssjs/custom.js
  78. +10 −0 WebWorks-Testing/iframe.html
  79. BIN WebWorks-Testing/images/accept.png
  80. BIN WebWorks-Testing/images/back.png
  81. BIN WebWorks-Testing/images/home.png
  82. BIN WebWorks-Testing/images/icon.png
  83. BIN WebWorks-Testing/images/next.png
  84. BIN WebWorks-Testing/images/process.png
  85. BIN WebWorks-Testing/images/splashscreen-tall.jpg
  86. BIN WebWorks-Testing/images/splashscreen-wide.jpg
  87. BIN WebWorks-Testing/images/trash.png
  88. +19 −0 WebWorks-Testing/index.html
  89. +41 −0 WebWorks-Testing/settings.html
  90. +64 −0 WebWorks-Testing/settingspage.html
  91. +39 −0 bbUI-localStorage/README.md
  92. +50 −0 bbUI-localStorage/about.html
  93. +30 −0 bbUI-localStorage/clearing.html
  94. +66 −0 bbUI-localStorage/config.xml
  95. +21 −0 bbUI-localStorage/counting.html
  96. +5,329 −0 bbUI-localStorage/cssjs/bbui.css
  97. +8,400 −0 bbUI-localStorage/cssjs/bbui.js
  98. +110 −0 bbUI-localStorage/cssjs/custom.css
  99. +147 −0 bbUI-localStorage/cssjs/custom.js
  100. +48 −0 bbUI-localStorage/cssjs/list.js
  101. +31 −0 bbUI-localStorage/custom/custom.html
  102. +22 −0 bbUI-localStorage/hidestuff.html
  103. BIN bbUI-localStorage/images/appworld.jpg
  104. BIN bbUI-localStorage/images/background.jpg
  105. BIN bbUI-localStorage/images/blank.png
  106. BIN bbUI-localStorage/images/down.png
  107. BIN bbUI-localStorage/images/hippo.png
  108. BIN bbUI-localStorage/images/icon.png
  109. BIN bbUI-localStorage/images/icons/cog_dark_theme.png
  110. BIN bbUI-localStorage/images/icons/icon1.png
  111. BIN bbUI-localStorage/images/icons/icon10.png
  112. BIN bbUI-localStorage/images/icons/icon11.png
  113. BIN bbUI-localStorage/images/icons/icon12.png
  114. BIN bbUI-localStorage/images/icons/icon13.png
  115. BIN bbUI-localStorage/images/icons/icon14.png
  116. BIN bbUI-localStorage/images/icons/icon15.png
  117. BIN bbUI-localStorage/images/icons/icon16.png
  118. BIN bbUI-localStorage/images/icons/icon17.png
  119. BIN bbUI-localStorage/images/icons/icon18.png
  120. BIN bbUI-localStorage/images/icons/icon19.png
  121. BIN bbUI-localStorage/images/icons/icon2.png
  122. BIN bbUI-localStorage/images/icons/icon20.png
  123. BIN bbUI-localStorage/images/icons/icon21.png
  124. BIN bbUI-localStorage/images/icons/icon22.png
  125. BIN bbUI-localStorage/images/icons/icon23.png
  126. BIN bbUI-localStorage/images/icons/icon24.png
  127. BIN bbUI-localStorage/images/icons/icon25.png
  128. BIN bbUI-localStorage/images/icons/icon26.png
  129. BIN bbUI-localStorage/images/icons/icon3.png
  130. BIN bbUI-localStorage/images/icons/icon4.png
  131. BIN bbUI-localStorage/images/icons/icon5.png
  132. BIN bbUI-localStorage/images/icons/icon6.png
  133. BIN bbUI-localStorage/images/icons/icon7.png
  134. BIN bbUI-localStorage/images/icons/icon8.png
  135. BIN bbUI-localStorage/images/icons/icon9.png
  136. BIN bbUI-localStorage/images/osbb.png
  137. BIN bbUI-localStorage/images/osbbx.png
  138. BIN bbUI-localStorage/images/osbbxheader.png
  139. BIN bbUI-localStorage/images/process.png
  140. BIN bbUI-localStorage/images/scrapps.png
  141. BIN bbUI-localStorage/images/splashscreen-tall.jpg
  142. BIN bbUI-localStorage/images/splashscreen-wide.jpg
  143. BIN bbUI-localStorage/images/splashscreen.jpg
  144. BIN bbUI-localStorage/images/success.png
  145. +39 −0 bbUI-localStorage/index.html
  146. +20 −0 bbUI-localStorage/intro/rimapi.html
  147. +213 −0 bbUI-localStorage/intro/standard.js
  148. +82 −0 bbUI-localStorage/intro/storage.html
  149. +314 −0 bbUI-localStorage/intro/styles.css
  150. +20 −0 bbUI-localStorage/intro/wikipedia.html
  151. +47 −0 bbUI-localStorage/json.html
  152. +32 −0 bbUI-localStorage/menu.html
  153. +15 −0 bbUI-localStorage/password/forgotpass.html
  154. +27 −0 bbUI-localStorage/password/password.html
  155. +29 −0 bbUI-localStorage/password/setpassword.html
  156. +7 −0 bbUI-localStorage/password/success.html
  157. +34 −0 bbUI-localStorage/redirect/one.html
  158. +13 −0 bbUI-localStorage/redirect/three.html
  159. +16 −0 bbUI-localStorage/redirect/two.html
  160. +40 −0 bbUI-localStorage/scores/playernames.html
  161. +57 −0 bbUI-localStorage/scores/scores.html
  162. +24 −0 bbUI-localStorage/setsrc/iframe.html
  163. +45 −0 bbUI-localStorage/setsrc/image.html
  164. +19 −0 bbUI-localStorage/settings.html
  165. +19 −0 bbUI-localStorage/start.html
  166. +16 −0 bbUI-localStorage/viewstorage.html
  167. +30 −0 bbUI-localStorage/welcome.html
View
72 Calorie-Counter/LICENSE
@@ -0,0 +1,72 @@
+ Copyright 2013 G. Shane Cridlebaugh
+
+ 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.
+
+
+
+
+
+
+Apache License
+
+Version 2.0, January 2004
+
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+You must give any other recipients of the Work or Derivative Works a copy of this License; and
+
+You must cause any modified files to carry prominent notices stating that You changed the files; and
+
+You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+
+If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
View
13 Calorie-Counter/README.md
@@ -0,0 +1,13 @@
+Calorie Counter
+=======
+
+Calorie Counter is an example of adding an event to the BlackBerry 10 Calendar using WebWorks.
+
+License:
+This code is released under an Apache Open Source license.
+
+Testing:
+To test, download the source code and compile it. The application will be available for BlackBerry 10 in BlackBerry World at the launch of BlackBerry 10.
+
+Privacy:
+As you can see if you check the source code, this app doesn't save or transmit any personal information; if by any strange chance I get any of your information (excluding, of course, your email address if you contact me with a question) I'll delete it, as I have no use for it. I don't want your personal information, I'm not Google.
View
65 Calorie-Counter/config.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="utf-8"?>
+<widget
+ xmlns="http://www.w3.org/ns/widgets"
+ xmlns:rim="http://www.blackberry.com/ns/widgets"
+ rim:header="RIM-Widget:rim/widget"
+ xml:lang="en"
+ id="calories"
+ version="1.0.0.0">
+
+ <name>Calorie Counter</name>
+ <description>Keep track of your Caloric Intake</description>
+ <author
+ href="https://scrapps.org"
+ rim:copyright="Copyright 2009-2013 SCrApps">
+ SCrApps
+ </author>
+
+ <icon src="images/icon.png" />
+ <!--
+ <rim:splash src="splash-1280x768.png"/>
+ <rim:splash src="splash-768x1280.png"/>
+ -->
+
+ <content src="index.html" />
+
+ <access uri="*" subdomains="true" />
+ <feature id="blackberry.app">
+ <param name="websecurity" value="disable" />
+ </feature>
+
+ <feature id="blackberry.app" />
+ <feature id="blackberry.app.event" />
+ <feature id="blackberry.system.event" />
+ <feature id="blackberry.bbm.platform" />
+ <feature id="blackberry.invoke" />
+ <feature id="blackberry.invoke.card" />
+ <feature id="blackberry.system" />
+ <feature id="blackberry.ui.toast" />
+ <feature id="blackberry.pim.calendar" />
+
+ <!--<feature id="blackberry.app">
+ <param name="orientation" value="portrait" />
+ </feature>-->
+
+ <rim:permissions>
+ <rim:permit>bbm_connect</rim:permit>
+ <rim:permit>access_pimdomain_calendars</rim:permit>
+ <!--
+ <rim:permit>access_shared</rim:permit>
+ <rim:permit>use_camera</rim:permit>
+ <rim:permit>read_device_identifying_information</rim:permit>
+ <rim:permit>read_geolocation</rim:permit>
+ <rim:permit>record_audio</rim:permit>
+ <rim:permit>_sys_use_consumer_push</rim:permit>
+ <rim:permit>run_when_backgrounded</rim:permit>
+ <rim:permit>access_location_services</rim:permit>
+ <rim:permit>access_pimdomain_messages</rim:permit>
+ <rim:permit>access_pimdomain_contacts</rim:permit>
+ <rim:permit>access_pimdomain_notebooks</rim:permit>
+ <rim:permit>post_notifications</rim:permit>
+ <rim:permit>access_sms_mms</rim:permit>
+ -->
+ </rim:permissions>
+
+ </widget>
View
5,329 Calorie-Counter/cssjs/bbui.css
5,329 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
8,400 Calorie-Counter/cssjs/bbui.js
8,400 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
130 Calorie-Counter/cssjs/custom.css
@@ -0,0 +1,130 @@
+/* =================================================
+ Custom Background Image
+=================================================*/
+
+.bb-bb10-lowres-screen {
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e5e5e5), color-stop(25%,#b7b7b7), color-stop(50%,#939393), color-stop(76%,#bcbcbc), color-stop(100%,#dbdbdb));
+}
+
+.bb-bb10-hires-screen {
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e5e5e5), color-stop(25%,#b7b7b7), color-stop(50%,#939393), color-stop(76%,#bcbcbc), color-stop(100%,#dbdbdb));
+}
+/* =================================================
+ Round panel
+ =================================================*/
+
+.bb-round-panel-top-left {
+ margin-right: 1px;
+ height: 1px;
+}
+
+.bb-round-panel-top-right {
+ margin-top: -1px;
+ margin-left: 1px;
+ background-position: 100% 0;
+ height: 1px;
+ font-size: 2px;
+}
+
+.bb-round-panel-bottom-left {
+ margin-right: 1px;
+ background-position: 0 -7px;
+ height: 1px;
+ font-size: 2px;
+}
+
+.bb-round-panel-bottom-right {
+ margin-top: -1px;
+ margin-left: 1px;
+ background-position: 100% -7px;
+ height: 1px;
+ font-size: 2px;
+}
+
+.bb-round-panel-inside {
+ border-left: 1px solid #ffffff;
+ border-right: 1px solid #ffffff;
+ background: rgba(50,50,50,0.2);
+ padding-left: 3px;
+ padding-right: 3px;
+ overflow:auto;
+}
+
+/* =================================================
+ BB10 Round panels
+ =================================================*/
+
+.bb-bb10-round-panel-light {
+ border-color: #C6C6C6;
+ color: Black;
+ background-color: rgba(255,255,255,0.2);
+}
+.bb-bb10-panel-header-lowres
+{
+ color: #000000;
+}
+
+.bb-bb10-panel-header-hires
+{
+ color: #000000;
+}
+
+/* =================================================
+ Image List BB10
+ =================================================*/
+
+.bb-bb10-image-list-header-hires
+{
+ height:80px;
+ line-height:80px;
+ font-size: 30pt;
+ border-bottom-width: 3px;
+ border-bottom-style: solid;
+ margin-bottom: 1px;
+ font-weight: normal;
+ overflow:hidden;
+}
+
+.bb-bb10-image-list-header-lowres
+{
+ height:42px;
+ line-height:45px;
+ font-size: 22pt;
+ border-bottom-width: 2px;
+ border-bottom-style: solid;
+ margin-bottom: 1px;
+ overflow:hidden;
+}
+
+.bb-bb10-image-list-header-normal-light {
+ background: -webkit-gradient(linear, center top, center bottom, from(#3F3F3F), to(#262626));
+ font-weight: normal;
+ color: white;
+}
+
+.bb-bb10-image-list-header-normal-dark {
+ background: -webkit-gradient(linear, center top, center bottom, from(#3F3F3F), to(#262626));
+ font-weight: normal;
+ color: white;
+}
+
+
+.bb-bb10-image-list-item-lowres
+{
+ padding-top: 3px;
+ padding-left: 5px;
+ height: 40px;
+ border-top-width: 0px;
+ border-bottom-width: 1px;
+ border-bottom-style: solid;
+}
+
+.bb-bb10-image-list-item-hires
+{
+ padding-top: 6px;
+ padding-left: 5px;
+ height: 80px;
+ border-top-width: 0px;
+ border-bottom-width: 2px;
+ border-bottom-style: solid;
+}
View
79 Calorie-Counter/cssjs/custom.js
@@ -0,0 +1,79 @@
+
+
+function setPM() {
+blackberry.bbm.platform.self.setPersonalMessage('I consumed ' + document.getElementById('total').value + ' calories today.')
+}
+
+function onLoadFunctions() {
+ blackberry.event.addEventListener('onaccesschanged', function (accessible, status) {
+ if (status === 'unregistered') {
+ blackberry.bbm.platform.register({
+ uuid: '43278caf-b883-48fb-86e4-81ae2b4883b6'
+ });
+ } else if (status === 'allowed') {
+ bbm.registered = accessible;
+ }
+ }, false)
+document.getElementById('breakfast').value = JSON.parse(localStorage.save).breakfast
+document.getElementById('lunch').value = JSON.parse(localStorage.save).lunch
+document.getElementById('dinner').value = JSON.parse(localStorage.save).dinner
+document.getElementById('snacks').value = JSON.parse(localStorage.save).snacks
+addTotal()
+}
+
+
+function addToCal() {
+var today = new Date();
+var dd = today.getDate()+1;
+var mm = today.getMonth()+1;
+var yyyy = today.getFullYear();
+if(dd<10){dd='0'+dd} if(mm<10){mm='0'+mm} today = yyyy+'-'+mm+'-'+dd
+/* Set our default fields. */
+var event = blackberry.pim.calendar.createEvent({
+ "summary": document.getElementById('total').value+' calories consumed.',
+ "start": new Date(today),
+ "end": new Date(today),
+ "allDay": false
+});
+
+/* Save our newly created event. */
+event.save(
+ function () {
+ /* Notify success and return. */
+ blackberry.ui.toast.show('Saved to your Calendar.');
+ },
+ function (error) {
+ /* Notify failure. */
+ blackberry.ui.toast.show('Error: ' + error.code);
+ }
+)
+}
+
+function saveIt() {
+localStorage.setItem('save',JSON.stringify({
+ breakfast: document.getElementById('breakfast').value,
+ lunch: document.getElementById('lunch').value,
+ dinner: document.getElementById('dinner').value,
+ snacks: document.getElementById('snacks').value,
+ }))
+}
+
+function addTotal() {
+setTimeout("document.getElementById('total').value = parseInt(document.getElementById('breakfast').value) + parseInt(document.getElementById('lunch').value) + parseInt(document.getElementById('dinner').value) + parseInt(document.getElementById('snacks').value);saveIt();",100)
+}
+
+function clearAll() {
+document.getElementById('breakfast').value = '0'
+document.getElementById('lunch').value = '0'
+document.getElementById('dinner').value = '0'
+document.getElementById('snacks').value = '0'
+addTotal()
+}
+
+
+function appWorld() {
+ blackberry.invoke.invoke({
+ target: "sys.appworld",
+ uri: "appworld://vendor/4735"
+ });
+}
View
BIN Calorie-Counter/images/bbm.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Calorie-Counter/images/calendar.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Calorie-Counter/images/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Calorie-Counter/images/trash.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
84 Calorie-Counter/index.html
@@ -0,0 +1,84 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
+<!--
+* Copyright 2010-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>
+ <head>
+ <meta name="x-blackberry-defaultHoverEffect" content="false" />
+ <link rel="stylesheet" type="text/css" href="cssjs/bbui.css"><link />
+ <link rel="stylesheet" type="text/css" href="cssjs/custom.css"><link />
+ <script type="text/javascript" src="cssjs/bbui.js"></script>
+ <script type="text/javascript" src="cssjs/custom.js"></script>
+ <script type="text/javascript" src="local:///chrome/webworks.js"></script>
+ <script type="text/javascript">
+ var webworksreadyFired = false;
+ document.addEventListener('webworksready', function(e) {
+ // This is code to ensure that if webworksready is fired multiple times we still only init() one time
+ if (webworksreadyFired) return;
+ webworksreadyFired = true;
+
+ // You must call init on bbUI before any other code loads.
+ // If you want default functionality simply don't pass any parameters.. bb.init();
+ bb.init({actionBarDark: true,
+ controlsDark: true,
+ listsDark: false,
+ bb10ForPlayBook: true,
+ // Fires "before" styling is applied and "before" the screen is inserted in the DOM
+ onscreenready: function(element, id) {
+ if (id == 'dataOnLoad') {
+ dataOnLoad_initialLoad(element);
+ } else if (id == 'masterDetail') {
+ masterDetail_initialLoad(element);
+ }
+
+ // Remove all titles "except" input and pill buttons screen if running on BB10
+ if (bb.device.isBB10 && (id != 'input') && (id != 'pillButtons') && (id != 'titlePillButtons')) {
+ var titles = element.querySelectorAll('[data-bb-type=title]');
+ if (titles.length > 0) {
+ titles[0].parentNode.removeChild(titles[0]);
+ }
+ }
+
+ // Initialize our title pill buttons screen
+ if (bb.device.isBB10 && (id == 'titlePillButtons')) {
+ titlePillButtons_Init(element);
+ }
+
+ },
+ // Fires "after" styling is applied and "after" the screen is inserted in the DOM
+ ondomready: function(element, id) {
+ if (id == 'dataOnTheFly') {
+ dataOnTheFly_initialLoad(element);
+ }
+ onLoadFunctions();
+ }
+ });
+ bb.pushScreen('menu.html','tuner');
+ }, false);
+
+ // Fire the webworksready event for PlayBook and BBOS
+ window.addEventListener('load',function() {
+ if (navigator.userAgent.indexOf('Version/10.0') < 0) {
+ var evt = document.createEvent('Events');
+ evt.initEvent('webworksready', true, true);
+ document.dispatchEvent(evt);
+ }
+ });
+ </script>
+ </head>
+ <body>
+ </body>
+</html>
View
32 Calorie-Counter/menu.html
@@ -0,0 +1,32 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
+<div data-bb-type="screen" data-bb-title="Menus" data-bb-effect="fade">
+
+ <div data-bb-type="menu" >
+ <div data-bb-type="menu-item" data-bb-img="images/bbm.png" onclick="setPM();">Update Status</div>
+ <div data-bb-type="menu-item" data-bb-img="images/bbm.png" onclick="invite();" >Share This App</div>
+ <div data-bb-type="menu-item" data-bb-img="images/yourinfo.png" onclick="window.open('http://www.scrapps.org/privacy.html', '_blank');">Privacy Policy</div>
+ </div>
+
+ <div data-bb-type="image-list" data-bb-header-justify="left" >
+ <div data-bb-type="header" style="text-align:center; font-size: 50px;">CALORIE COUNTER</div>
+ </div>
+
+ <div data-bb-type="round-panel">
+ <div data-bb-type="panel-header">Breakfast</div><input style="text-align: center;" id="breakfast" type="number" value="0" onclick="if (this.value == '0') this.value=''" onkeydown="addTotal()" />
+ <div data-bb-type="panel-header">Lunch</div><input style="text-align: center;" id="lunch" type="number" value="0" onclick="if (this.value == '0') this.value=''" onkeydown="addTotal()" />
+ <div data-bb-type="panel-header">Dinner</div><input style="text-align: center;" id="dinner" type="number" value="0" onclick="if (this.value == '0') this.value=''" onkeydown="addTotal()" />
+ <div data-bb-type="panel-header">Snacks</div><input style="text-align: center;" id="snacks" type="number" value="0" onclick="if (this.value == '0') this.value=''" onkeydown="addTotal()" />
+ <br><br>
+ <div data-bb-type="panel-header">Total</div><input style="text-align: center;" id="total" type="number" value="0" />
+ </div>
+ <br>
+ <div data-bb-type="button" data-bb-style="stretch" onclick="appWorld()" >Like this app? Get some more!</div>
+
+
+ <div data-bb-type="action-bar">
+ <div data-bb-type="action" data-bb-style="button" data-bb-img="images/trash.png" onclick="clearAll()">Clear</div>
+ <div data-bb-type="action" data-bb-style="button" data-bb-img="images/calendar.png" onclick="addToCal()">Export to Calendar</div>
+ <div data-bb-type="action" data-bb-style="button" data-bb-img="images/bbm.png" onclick="setPM()">Update BBM</div>
+ </div>
+</div>
+
View
72 HexClock/LICENSE
@@ -0,0 +1,72 @@
+ Copyright 2013 G. Shane Cridlebaugh
+
+ 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.
+
+
+
+
+
+
+Apache License
+
+Version 2.0, January 2004
+
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+You must give any other recipients of the Work or Derivative Works a copy of this License; and
+
+You must cause any modified files to carry prominent notices stating that You changed the files; and
+
+You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+
+If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
View
13 HexClock/README.md
@@ -0,0 +1,13 @@
+Hex Clock
+=======
+A Hex Color Clock; the color of the clock is updated to match the corresponding Hexadecimal color. IE, at 3:30:00, the color of the clock will be #033000.
+The background color is the inverse hex value.
+
+License:
+This code is released under an Apache Open Source license.
+
+Testing:
+To test, download the source code and compile it. The application will be available for BlackBerry 10 in BlackBerry World at the launch of BlackBerry 10.
+
+Privacy:
+As you can see if you check the source code, this app doesn't save or transmit any personal information; if by any strange chance I get any of your information (excluding, of course, your email address if you contact me with a question) I'll delete it, as I have no use for it. I don't want your personal information, I'm not Google.
View
17 HexClock/clock.html
@@ -0,0 +1,17 @@
+<div data-bb-type="screen" data-bb-title="Menus" data-bb-effect="">
+
+ <div data-bb-type="menu" >
+ <div data-bb-type="menu-item" data-bb-img="images/bbm.png" onclick="setPM();">Update Status</div>
+ <div data-bb-type="menu-item" data-bb-img="images/bbm.png" onclick="invite();" >Share Hex Clock</div>
+ <div data-bb-type="menu-item" data-bb-img="images/yourinfo.png" onclick="window.open('http://www.scrapps.org/privacy.html', '_blank');">Privacy Policy</div>
+ </div>
+
+
+<div id="color" style="position: fixed; margin: 0px; width: 100%; height: 100%; ">
+ <div id="color2" style="position: relative; color: red;top: 20%; font-size: 345px; text-align: center;">
+ </div>
+</div>
+
+
+
+</div>
View
23 HexClock/config.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<widget xmlns:rim="http://www.blackberry.com/ns/widgets" id="hexclock" version="1.1.0.0" rim:header="RIM-Widget:rim/widget" xmlns="http://www.w3.org/ns/widgets">
+ <rim:navigation mode="focus" />
+ <name>Hex Clock</name>
+ <description>Time as a hex value</description>
+ <author href="https://scrapps.org">SCrApps</author>
+ <icon src="images/icon.png" />
+ <content src="index.html" />
+ <access uri="*" subdomains="true" />
+ <feature id="blackberry.app" />
+ <feature id="blackberry.app.event"/>
+ <feature id="blackberry.system.event" />
+ <feature id="blackberry.bbm.platform" />
+ <feature id="blackberry.invoke" />
+ <feature id="blackberry.invoke.card" />
+ <feature id="blackberry.system" />
+ <rim:permissions>
+ <rim:permit>bbm_connect</rim:permit>
+ </rim:permissions>
+ <feature id="blackberry.app.orientation">
+ <param name="mode" value="landscape" />
+ </feature>
+</widget>
View
5,422 HexClock/cssjs/bbui-0.9.5.css
5,422 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
7,996 HexClock/cssjs/bbui-0.9.5.js
7,996 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
110 HexClock/cssjs/custom.css
@@ -0,0 +1,110 @@
+/* =================================================
+ Custom Background Image
+=================================================*/
+
+.bb-bb10-lowres-screen {
+ font-size: 16pt;
+ position:absolute;
+ top:0px;
+ left:0px;
+ bottom:0px;
+ right: 0px;
+ background-image:url('../images/background.jpg');
+}
+
+.bb-bb10-hires-screen {
+ font-size: 30pt;
+ position:absolute;
+ top:0px;
+ left:0px;
+ bottom:0px;
+ right: 0px;
+ background-image:url('../images/background.jpg');
+}
+
+/* =================================================
+ BB10 Tab Overflow Menu
+=================================================*/
+
+.bb-bb10-tab-overflow-menu-item-lowres
+{
+ padding-top: 7px;
+ padding-bottom: 3px;
+ padding-left: 5px;
+ height: 45px;
+ line-height: 45px;
+ vertical-align: center;
+ font-size:20pt;
+}
+
+.bb-bb10-tab-overflow-menu-item-hires
+{
+ padding-top: 14px;
+ padding-bottom: 3px;
+ padding-left: 10px;
+ height: 109px;
+ line-height: 85px;
+ vertical-align: center;
+ font-size:39pt;
+}
+
+
+/* =================================================
+ BB10 Context Menu
+=================================================*/
+
+.bb-bb10-context-menu-item-lowres
+{
+ padding-top: 7px;
+ padding-bottom: 3px;
+ padding-left: 5px;
+ height: 42px;
+ line-height: 42px;
+ vertical-align: center;
+ font-size:16pt;
+}
+
+.bb-bb10-context-menu-item-hires
+{
+ padding-top: 14px;
+ padding-bottom: 3px;
+ padding-left: 10px;
+ height: 109px;
+ line-height: 95px;
+ vertical-align: center;
+ font-size:30pt;
+}
+
+/* =================================================
+ BB10 Grid
+ =================================================*/
+
+.bb-bb10-grid-item-overlay-lowres
+{
+ position:relative;
+ height: 20px;
+ top:-20px;
+ right:0px;
+ left: 0px;
+ background-color: black;
+ opacity: 0.7;
+}
+
+.bb-bb10-grid-item-overlay-hires
+{
+ position:relative;
+ height: 70px;
+ top:-70px;
+ right:0px;
+ left: 0px;
+ background-color: black;
+ opacity: 0.7;
+}
+/* =================================================
+ BB10 Round panels
+ =================================================*/
+
+.bb-bb10-round-panel-light {
+ border-color: #C6C6C6;
+ color: Black;
+ background-color: rgba(255,255,255,0.0);
View
70 HexClock/cssjs/custom.js
@@ -0,0 +1,70 @@
+
+
+
+function invite() {
+blackberry.bbm.platform.users.inviteToDownload()
+}
+
+function setPM() {
+blackberry.bbm.platform.self.setPersonalMessage('According to Hex Clock, the time is currently ' + document.getElementById('color2').innerHTML + '.')
+}
+
+function onLoadFunctions() {
+setInterval(makeClock, 100);
+// Register the app. Make sure you get a unique UUID!
+ blackberry.event.addEventListener('onaccesschanged', function (accessible, status) {
+ if (status === 'unregistered') {
+ blackberry.bbm.platform.register({
+ uuid: 'cd71c7d5-1d17-41c6-84e1-2dec70fd57d2'
+ });
+ } else if (status === 'allowed') {
+ bbm.registered = accessible;
+ }
+ }, false)
+ }
+
+
+ function inverse(theString) {
+ theString=theString.toLowerCase();
+ var validHexChar=/[^a-f0-9]/gi
+ a=theString.slice(0,2);
+ b=theString.slice(2,4);
+ c=theString.slice(4,6);
+ a1=16*giveHex(a.slice(0,1));
+ a2=giveHex(a.slice(1,2));
+ a=a1+a2;
+ b1=16*giveHex(b.slice(0,1));
+ b2=giveHex(b.slice(1,2));
+ b=b1+b2;
+ c1=16*giveHex(c.slice(0,1));
+ c2=giveHex(c.slice(1,2));
+ c=c1+c2;
+ newColor=DecToHex(255-a)+""+DecToHex(255-b)+""+DecToHex(255-c)
+ document.getElementById('color').style.backgroundColor = '#' + newColor;
+
+ }
+ var hexbase="0123456789ABCDEF";
+ function DecToHex(number) {
+ return hexbase.charAt((number>> 4)& 0xf)+ hexbase.charAt(number& 0xf);
+ }
+ function giveHex(s){
+ s=s.toUpperCase();
+ return parseInt(s,16);
+ }
+
+
+function makeClock() {
+ var currentTime = new Date ( );
+
+ var hours = currentTime.getHours();
+ var minutes = currentTime.getMinutes();
+ var seconds = currentTime.getSeconds();
+
+ hours = ( hours < 10 ? "0" :"" ) + hours;
+ minutes = ( minutes < 10 ? "0" :"" ) + minutes;
+ seconds = ( seconds < 10 ? "0" : "" ) + seconds;
+
+inverse(hours + '' + minutes + '' + seconds)
+document.getElementById('color2').style.color = '#' + hours + '' + minutes + '' + seconds
+document.getElementById('color2').innerHTML = hours + ':' + minutes + ':' + seconds
+}
View
BIN HexClock/images/bbm.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN HexClock/images/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN HexClock/images/yourinfo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
84 HexClock/index.html
@@ -0,0 +1,84 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
+<!--
+* Copyright 2010-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>
+ <head>
+ <meta name="x-blackberry-defaultHoverEffect" content="false" />
+ <link rel="stylesheet" type="text/css" href="cssjs/bbui-0.9.5.css"><link />
+ <link rel="stylesheet" type="text/css" href="cssjs/custom.css"><link />
+ <script type="text/javascript" src="cssjs/bbui-0.9.5.js"></script>
+ <script type="text/javascript" src="cssjs/custom.js"></script>
+ <script type="text/javascript" src="local:///chrome/webworks.js"></script>
+ <script type="text/javascript">
+ var webworksreadyFired = false;
+ document.addEventListener('webworksready', function(e) {
+ // This is code to ensure that if webworksready is fired multiple times we still only init() one time
+ if (webworksreadyFired) return;
+ webworksreadyFired = true;
+
+ // You must call init on bbUI before any other code loads.
+ // If you want default functionality simply don't pass any parameters.. bb.init();
+ bb.init({actionBarDark: true,
+ controlsDark: true,
+ listsDark: false,
+ bb10ForPlayBook: true,
+ // Fires "before" styling is applied and "before" the screen is inserted in the DOM
+ onscreenready: function(element, id) {
+ if (id == 'dataOnLoad') {
+ dataOnLoad_initialLoad(element);
+ } else if (id == 'masterDetail') {
+ masterDetail_initialLoad(element);
+ }
+
+ // Remove all titles "except" input and pill buttons screen if running on BB10
+ if (bb.device.isBB10 && (id != 'input') && (id != 'pillButtons') && (id != 'titlePillButtons')) {
+ var titles = element.querySelectorAll('[data-bb-type=title]');
+ if (titles.length > 0) {
+ titles[0].parentNode.removeChild(titles[0]);
+ }
+ }
+
+ // Initialize our title pill buttons screen
+ if (bb.device.isBB10 && (id == 'titlePillButtons')) {
+ titlePillButtons_Init(element);
+ }
+
+ },
+ // Fires "after" styling is applied and "after" the screen is inserted in the DOM
+ ondomready: function(element, id) {
+ if (id == 'dataOnTheFly') {
+ dataOnTheFly_initialLoad(element);
+ }
+ onLoadFunctions();
+ }
+ });
+ bb.pushScreen('clock.html','clock');
+ }, false);
+
+ // Fire the webworksready event for PlayBook and BBOS
+ window.addEventListener('load',function() {
+ if (navigator.userAgent.indexOf('Version/10.0') < 0) {
+ var evt = document.createEvent('Events');
+ evt.initEvent('webworksready', true, true);
+ document.dispatchEvent(evt);
+ }
+ });
+ </script>
+ </head>
+ <body>
+ </body>
+</html>
View
72 KISS BBM Integration/LICENSE
@@ -0,0 +1,72 @@
+ Copyright 2013 G. Shane Cridlebaugh
+
+ 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.
+
+
+
+
+
+
+Apache License
+
+Version 2.0, January 2004
+
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+You must give any other recipients of the Work or Derivative Works a copy of this License; and
+
+You must cause any modified files to carry prominent notices stating that You changed the files; and
+
+You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+
+If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
View
25 Psychic8/8ball.html
@@ -0,0 +1,25 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
+<div data-bb-type="screen" data-bb-title="Menus" data-bb-effect="fade">
+
+ <div data-bb-type="menu" >
+ <div data-bb-type="menu-item" data-bb-img="images/bbm.png" onclick="setPM();">Update Status</div>
+ <div data-bb-type="menu-item" data-bb-img="images/bbm.png" onclick="shareFortune();">Share Answer</div>
+ <div data-bb-type="menu-item" data-bb-img="images/bbm.png" onclick="invite();" >Share Psychic8</div>
+ <div data-bb-type="menu-item" data-bb-img="images/yourinfo.png" onclick="window.open('http://www.scrapps.org/privacy.html', '_blank');">Privacy Policy</div>
+ </div>
+
+ <div id="list" data-bb-type="image-list" data-bb-header-justify="center">
+ <div data-bb-type="header">Ask The 8 Ball</div>
+ </div>
+ <br>
+ <center><img width="80%" src="images/8ball.png" /></center>
+ <br>
+
+ <div data-bb-type="round-panel">
+ <div data-bb-type="panel-header">Answer</div>
+ <div id="yourAnswer" style="text-align:center; font-size: 60px;">The 8 Ball<br>Knoweth All</div>
+ </div>
+
+ <div data-bb-type="button" data-bb-style="stretch" onclick="askMe()">Ask</div>
+
+</div>
View
72 Psychic8/LICENSE
@@ -0,0 +1,72 @@
+ Copyright 2013 G. Shane Cridlebaugh
+
+ 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.
+
+
+
+
+
+
+Apache License
+
+Version 2.0, January 2004
+
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+You must give any other recipients of the Work or Derivative Works a copy of this License; and
+
+You must cause any modified files to carry prominent notices stating that You changed the files; and
+
+You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+
+If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
View
14 Psychic8/README.md
@@ -0,0 +1,14 @@
+Psychic 8
+=======
+
+An application much like the Magic 8 Ball toy.
+Uses BlackBerry 10 sensors to update the response from the 8 ball when you shake your BlackBerry.
+
+License:
+This code is released under an Apache Open Source license.
+
+Testing:
+To test, download the source code and compile it. The application will be available for BlackBerry 10 in BlackBerry World at the launch of BlackBerry 10.
+
+Privacy:
+As you can see if you check the source code, this app doesn't save or transmit any personal information; if by any strange chance I get any of your information (excluding, of course, your email address if you contact me with a question) I'll delete it, as I have no use for it. I don't want your personal information, I'm not Google.
View
21 Psychic8/config.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<widget xmlns:rim="http://www.blackberry.com/ns/widgets" id="psychic8" version="1.1.0.0" rim:header="RIM-Widget:rim/widget" xmlns="http://www.w3.org/ns/widgets">
+ <rim:navigation mode="focus" />
+ <name>Psychic 8</name>
+ <description>Got a question? Ask the Psychic 8 Ball!</description>
+ <author href="https://scrapps.org">SCrApps</author>
+ <icon src="images/icon.png" />
+ <content src="index.html" />
+ <access uri="*" subdomains="true" />
+ <feature id="blackberry.app" />
+ <feature id="blackberry.app.event"/>
+ <feature id="blackberry.system.event" />
+ <feature id="blackberry.bbm.platform" />
+ <feature id="blackberry.invoke" />
+ <feature id="blackberry.invoke.card" />
+ <feature id="blackberry.system" />
+ <feature id="blackberry.sensors" />
+ <rim:permissions>
+ <rim:permit>bbm_connect</rim:permit>
+ </rim:permissions>
+</widget>
View
5,422 Psychic8/cssjs/bbui-0.9.5.css
5,422 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
7,996 Psychic8/cssjs/bbui-0.9.5.js
7,996 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
107 Psychic8/cssjs/custom.css
@@ -0,0 +1,107 @@
+/* =================================================
+ Custom Background Image
+=================================================*/
+
+.bb-bb10-lowres-screen {
+ background-image:url('../images/background.png');
+}
+
+.bb-bb10-hires-screen {
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e5e5e5), color-stop(25%,#b7b7b7), color-stop(50%,#939393), color-stop(76%,#bcbcbc), color-stop(100%,#dbdbdb));
+}
+
+/* =================================================
+ Round panel
+ =================================================*/
+
+.bb-round-panel-top-left {
+ margin-right: 1px;
+ height: 1px;
+}
+
+.bb-round-panel-top-right {
+ margin-top: -1px;
+ margin-left: 1px;
+ background-position: 100% 0;
+ height: 1px;
+ font-size: 2px;
+}
+
+.bb-round-panel-bottom-left {
+ margin-right: 1px;
+ background-position: 0 -7px;
+ height: 1px;
+ font-size: 2px;
+}
+
+.bb-round-panel-bottom-right {
+ margin-top: -1px;
+ margin-left: 1px;
+ background-position: 100% -7px;
+ height: 1px;
+ font-size: 2px;
+}
+
+.bb-round-panel-inside {
+ border-left: 1px solid #ffffff;
+ border-right: 1px solid #ffffff;
+ background: rgba(50,50,50,0.2);
+ padding-left: 3px;
+ padding-right: 3px;
+ overflow:auto;
+}
+
+/* =================================================
+ BB10 Round panels
+ =================================================*/
+
+.bb-bb10-round-panel-light {
+ border-color: #C6C6C6;
+ color: Black;
+ background-color: rgba(255,255,255,0.2);
+}
+.bb-bb10-panel-header-lowres
+{
+ color: #000000;
+}
+
+.bb-bb10-panel-header-hires
+{
+ color: #000000;
+}
+
+/* =================================================
+ Image List BB10
+ =================================================*/
+
+.bb-bb10-image-list-header-hires
+{
+ height:99px;
+ line-height:99px;
+ font-size: 51pt;
+ border-bottom-width: 3px;
+ border-bottom-style: solid;
+ margin-bottom: 1px;
+}
+
+.bb-bb10-image-list-header-lowres
+{
+ height:42px;
+ line-height:45px;
+ font-size: 22pt;
+ border-bottom-width: 2px;
+ border-bottom-style: solid;
+ margin-bottom: 1px;
+}
+
+.bb-bb10-image-list-header-normal-light {
+ background: -webkit-gradient(linear, center top, center bottom, from(#3F3F3F), to(#262626));
+ font-weight: normal;
+ color: white;
+}
+
+.bb-bb10-image-list-header-normal-dark {
+ background: -webkit-gradient(linear, center top, center bottom, from(#3F3F3F), to(#262626));
+ font-weight: normal;
+ color: white;
+}
View
84 Psychic8/cssjs/custom.js
@@ -0,0 +1,84 @@
+function askMe() {
+var randomnumber=Math.floor(Math.random()*50)
+if (randomnumber == 0) {document.getElementById('yourAnswer').innerHTML = 'Why would you even ask me that?'}
+if (randomnumber == 1) {document.getElementById('yourAnswer').innerHTML = 'You realize you\'re asking an inanimate object, right?'}
+if (randomnumber == 2) {document.getElementById('yourAnswer').innerHTML = 'I\'m going to go ahead and say... maybe.'}
+if (randomnumber == 3) {document.getElementById('yourAnswer').innerHTML = 'I already answered that.<br><br>'}
+if (randomnumber == 4) {document.getElementById('yourAnswer').innerHTML = 'Ok, that\'s an easy one. Of course not.'}
+if (randomnumber == 5) {document.getElementById('yourAnswer').innerHTML = 'Ok, that\'s an easy one. Of course.'}
+if (randomnumber == 6) {document.getElementById('yourAnswer').innerHTML = 'How\'d you end up with an 8 ball but no pool table?'}
+if (randomnumber == 7) {document.getElementById('yourAnswer').innerHTML = 'I\'m on my break,<br>ask the 7 ball.'}
+if (randomnumber == 8) {document.getElementById('yourAnswer').innerHTML = 'I\'ll answer that as soon as I finish laughing.'}
+if (randomnumber == 9) {document.getElementById('yourAnswer').innerHTML = 'They see me rollin\'<br><br>'}
+if (randomnumber == 10) {document.getElementById('yourAnswer').innerHTML = 'Just because I know doesn\'t mean I have to tell you.'}
+if (randomnumber == 11) {document.getElementById('yourAnswer').innerHTML = 'Why don\'t you just go ask your Facebook friends?'}
+if (randomnumber == 12) {document.getElementById('yourAnswer').innerHTML = 'Yes. What, you want a more complicated answer?'}
+if (randomnumber == 13) {document.getElementById('yourAnswer').innerHTML = 'If I tell you, you\'ll blame me when you mess up.'}
+if (randomnumber == 14) {document.getElementById('yourAnswer').innerHTML = 'That question voids my warranty.'}
+if (randomnumber == 15) {document.getElementById('yourAnswer').innerHTML = 'I\'d tell you, but then I\'d have to kill you.'}
+if (randomnumber == 16) {document.getElementById('yourAnswer').innerHTML = 'Could be yes, could be no.<br><br>'}
+if (randomnumber == 17) {document.getElementById('yourAnswer').innerHTML = 'What do you think?<br><br>'}
+if (randomnumber == 18) {document.getElementById('yourAnswer').innerHTML = 'No. Just, no.<br><br>'}
+if (randomnumber == 19) {document.getElementById('yourAnswer').innerHTML = 'Can God make a taco so hot that He cannot eat it?'}
+if (randomnumber == 20) {document.getElementById('yourAnswer').innerHTML = 'You can aske me question, and you choose that one?'}
+if (randomnumber == 21) {document.getElementById('yourAnswer').innerHTML = 'That is one of the mysteries of the universe.'}
+if (randomnumber == 22) {document.getElementById('yourAnswer').innerHTML = 'You don\'t remember learning that in 3rd grade?'}
+if (randomnumber == 23) {document.getElementById('yourAnswer').innerHTML = 'Whoever told you there\'s no stupid questions lied.'}
+if (randomnumber == 24) {document.getElementById('yourAnswer').innerHTML = 'Sorry, what? I wasn\'t listening.'}
+if (randomnumber == 25) {document.getElementById('yourAnswer').innerHTML = 'There\'s a lot of other toys you can play with...'}
+if (randomnumber == 26) {document.getElementById('yourAnswer').innerHTML = 'Oh boy, please tell me all about your problems.'}
+if (randomnumber == 27) {document.getElementById('yourAnswer').innerHTML = 'I find it ironic that you would ask that.'}
+if (randomnumber == 28) {document.getElementById('yourAnswer').innerHTML = 'If I told you, would you learn anything?'}
+if (randomnumber == 29) {document.getElementById('yourAnswer').innerHTML = 'It\'s complicated.<br><br>'}
+if (randomnumber == 30) {document.getElementById('yourAnswer').innerHTML = 'If I answer that, will you leave me alone?'}
+if (randomnumber == 31) {document.getElementById('yourAnswer').innerHTML = 'Yes.<br><br>'}
+if (randomnumber == 32) {document.getElementById('yourAnswer').innerHTML = 'Yes.<br><br>'}
+if (randomnumber == 33) {document.getElementById('yourAnswer').innerHTML = 'Yes.<br><br>'}
+if (randomnumber == 34) {document.getElementById('yourAnswer').innerHTML = 'Yes.<br><br>'}
+if (randomnumber == 35) {document.getElementById('yourAnswer').innerHTML = 'Yes.<br><br>'}
+if (randomnumber == 36) {document.getElementById('yourAnswer').innerHTML = 'Yes.<br><br>'}
+if (randomnumber == 37) {document.getElementById('yourAnswer').innerHTML = 'Yes.<br><br>'}
+if (randomnumber == 38) {document.getElementById('yourAnswer').innerHTML = 'Yes.<br><br>'}
+if (randomnumber == 39) {document.getElementById('yourAnswer').innerHTML = 'Yes.<br><br>'}
+if (randomnumber == 40) {document.getElementById('yourAnswer').innerHTML = 'No.<br><br>'}
+if (randomnumber == 41) {document.getElementById('yourAnswer').innerHTML = 'No.<br><br>'}
+if (randomnumber == 42) {document.getElementById('yourAnswer').innerHTML = 'No.<br><br>'}
+if (randomnumber == 43) {document.getElementById('yourAnswer').innerHTML = 'No.<br><br>'}
+if (randomnumber == 44) {document.getElementById('yourAnswer').innerHTML = 'No.<br><br>'}
+if (randomnumber == 45) {document.getElementById('yourAnswer').innerHTML = 'No.<br><br>'}
+if (randomnumber == 46) {document.getElementById('yourAnswer').innerHTML = 'No.<br><br>'}
+if (randomnumber == 47) {document.getElementById('yourAnswer').innerHTML = 'No.<br><br>'}
+if (randomnumber == 48) {document.getElementById('yourAnswer').innerHTML = 'No.<br><br>'}
+if (randomnumber == 49) {document.getElementById('yourAnswer').innerHTML = 'No.<br><br>'}
+}
+
+function invite() {
+blackberry.bbm.platform.users.inviteToDownload()
+}
+
+function setPM() {
+blackberry.bbm.platform.self.setPersonalMessage('The all-knowing 8 Ball told me "' + document.getElementById('yourAnswer').innerHTML + '"')
+}
+
+function onLoadFunctions() {
+sessionStorage.setItem('pause','no')
+// Register the app. Make sure you get a unique UUID!
+ blackberry.event.addEventListener('onaccesschanged', function (accessible, status) {
+ if (status === 'unregistered') {
+ blackberry.bbm.platform.register({
+ uuid: '6c2a508f-273a-4775-b53c-c2d83e78cbc5'
+ });
+ } else if (status === 'allowed') {
+ bbm.registered = accessible;
+ }
+ }, false)
+}
+
+function shareFortune() {
+blackberry.invoke.invoke({
+ target: 'sys.bbm.sharehandler',
+ action: 'bb.action.SHARE',
+ data: 'I asked the Magic 8 Ball your question; it said "' + document.getElementById('yourAnswer').innerHTML+'"',
+ mimeType: 'text/plain'
+ });
+ }
View
BIN Psychic8/images/8ball.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Psychic8/images/bbm.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Psychic8/images/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Psychic8/images/yourinfo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
71 Psychic8/index.html
@@ -0,0 +1,71 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
+<!--
+* Copyright 2010-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>
+ <head>
+ <meta name="x-blackberry-defaultHoverEffect" content="false" />
+ <link rel="stylesheet" type="text/css" href="cssjs/bbui-0.9.5.css"><link />
+ <link rel="stylesheet" type="text/css" href="cssjs/custom.css"><link />
+ <script type="text/javascript" src="cssjs/bbui-0.9.5.js"></script>
+ <script type="text/javascript" src="cssjs/custom.js"></script>
+ <script type="text/javascript" src="local:///chrome/webworks.js"></script>
+ <script type="text/javascript">
+ var webworksreadyFired = false;
+ document.addEventListener('webworksready', function(e) {
+ // This is code to ensure that if webworksready is fired multiple times we still only init() one time
+ if (webworksreadyFired) return;
+ webworksreadyFired = true;
+
+ // You must call init on bbUI before any other code loads.
+ // If you want default functionality simply don't pass any parameters.. bb.init();
+ bb.init({actionBarDark: true,
+ controlsDark: true,
+ listsDark: false,
+ bb10ForPlayBook: true,
+ // Fires "before" styling is applied and "before" the screen is inserted in the DOM
+ onscreenready: function(element, id) {
+ },
+ // Fires "after" styling is applied and "after" the screen is inserted in the DOM
+ ondomready: function(element, id) {
+ onLoadFunctions();
+ function shakeIt(data) {
+ if (data.x > 10 && sessionStorage.getItem('pause') == 'no') {
+ askMe();
+ sessionStorage.setItem('pause','yes');
+ setTimeout("sessionStorage.setItem('pause','no')",500)
+ }
+ }
+ blackberry.sensors.setOptions("deviceaccelerometer", { background: true, batching: true, delay: 1000 });
+ blackberry.event.addEventListener('deviceaccelerometer', shakeIt);
+ }
+ });
+ bb.pushScreen('8ball.html','8ball');
+ }, false);
+
+ // Fire the webworksready event for PlayBook and BBOS
+ window.addEventListener('load',function() {
+ if (navigator.userAgent.indexOf('Version/10.0') < 0) {
+ var evt = document.createEvent('Events');
+ evt.initEvent('webworksready', true, true);
+ document.dispatchEvent(evt);
+ }
+ });
+ </script>
+ </head>
+ <body>
+ </body>
+</html>
View
72 SystemAPIs/LICENSE
@@ -0,0 +1,72 @@
+ Copyright 2013 G. Shane Cridlebaugh
+
+ 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.
+
+
+
+
+
+
+Apache License
+
+Version 2.0, January 2004
+
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+You must give any other recipients of the Work or Derivative Works a copy of this License; and
+
+You must cause any modified files to carry prominent notices stating that You changed the files; and
+
+You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+
+If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
View
26 SystemAPIs/README.md
@@ -0,0 +1,26 @@
+System APIs
+=======
+
+A sample of (almost) all the documented <feature id="blackberry.system" /> apis located at https://developer.blackberry.com/html5/apis/blackberry.system.html. Includes:
+blackberry.system.getCurrentTimezone
+blackberry.system.getFontInfo
+blackberry.system.getTimezones
+blackberry.system.hasCapability
+blackberry.system.hasPermission
+blackberry.system.setWallpaper
+
+blackberry.system.batterycritical
+blackberry.system.batterylow
+blackberry.system.batterystatus
+blackberry.system.fontchanged
+blackberry.system.languagechanged
+blackberry.system.regionchanged
+
+License:
+This code is released under an Apache Open Source license.
+
+Testing:
+To test, download the source code and compile it. The application will be available for BlackBerry 10 in BlackBerry World at the launch of BlackBerry 10.
+
+Privacy:
+As you can see if you check the source code, this app doesn't save or transmit any personal information; if by any strange chance I get any of your information (excluding, of course, your email address if you contact me with a question) I'll delete it, as I have no use for it. I don't want your personal information, I'm not Google.
View
59 SystemAPIs/config.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<widget
+ xmlns="http://www.w3.org/ns/widgets"
+ xmlns:rim="http://www.blackberry.com/ns/widgets"
+ rim:header="RIM-Widget:rim/widget"
+ xml:lang="en"
+ id="systemapis"
+ version="1.0.0.0">
+
+ <name>system APIs</name>
+ <description>WebWorks blackberry.system APIs</description>
+ <author
+ href="https://scrapps.org"
+ rim:copyright="Copyright 2009-2013 SCrApps">
+ SCrApps
+ </author>
+
+ <icon src="images/icon.png" />
+ <rim:splash src="images/splashscreen-tall.jpg"/>
+ <rim:splash src="images/splashscreen-wide.jpg"/>
+
+ <content src="index.html" />
+
+ <access uri="*" subdomains="true" />
+
+ <feature id="blackberry.app" />
+ <feature id="blackberry.app.event"/>
+ <feature id="blackberry.system.event" />
+ <feature id="blackberry.bbm.platform" />
+ <feature id="blackberry.system" />
+ <feature id="blackberry.ui.toast" />
+
+
+ <feature id="blackberry.app">
+ <param name="orientation" value="portrait" />
+ </feature>
+
+ <rim:permissions>
+ <!--
+ <rim:permit>bbm_connect</rim:permit>
+ <rim:permit>use_camera</rim:permit>
+ <rim:permit>access_shared</rim:permit>
+ <rim:permit>read_device_identifying_information</rim:permit>
+ <rim:permit>read_geolocation</rim:permit>
+ <rim:permit>record_audio</rim:permit>
+ <rim:permit>_sys_use_consumer_push</rim:permit>
+ <rim:permit>run_when_backgrounded</rim:permit>
+ <rim:permit>access_location_services</rim:permit>
+ <rim:permit>Email and PIN messages</rim:permit>
+ <rim:permit>access_pimdomain_messages</rim:permit>
+ <rim:permit>access_pimdomain_contacts</rim:permit>
+ <rim:permit>access_pimdomain_calendars</rim:permit>
+ <rim:permit>access_pimdomain_notebooks</rim:permit>
+ <rim:permit>post_notifications</rim:permit>
+ <rim:permit>access_sms_mms</rim:permit>
+ -->
+ </rim:permissions>
+
+ </widget>
View
5,650 SystemAPIs/cssjs/bbui.css
5,650 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
9,004 SystemAPIs/cssjs/bbui.js
9,004 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
102 SystemAPIs/cssjs/custom.css
@@ -0,0 +1,102 @@
+/* =================================================
+ Custom Background Image
+=================================================*/
+
+.bb-bb10-1024x600-screen {
+ background-color: #252525;
+ color: #57FCFF;
+}
+
+.bb-bb10-1280x768-1280x720-screen {
+ background-color: #252525;
+ color: #57FCFF;
+}
+
+/* =================================================
+ BB10 Tab Overflow Menu
+=================================================*/
+
+.bb-bb10-tab-overflow-menu-item-lowres
+{
+ padding-top: 7px;
+ padding-bottom: 3px;
+ padding-left: 5px;
+ height: 45px;
+ line-height: 45px;
+ vertical-align: center;
+ font-size:20pt;
+}
+
+.bb-bb10-tab-overflow-menu-item-hires
+{
+ padding-top: 14px;
+ padding-bottom: 3px;
+ padding-left: 10px;
+ height: 109px;
+ line-height: 85px;
+ vertical-align: center;
+ font-size:39pt;
+}
+
+
+/* =================================================
+ BB10 Context Menu
+=================================================*/
+
+.bb-bb10-context-menu-item-lowres
+{
+ padding-top: 7px;
+ padding-bottom: 3px;
+ padding-left: 5px;
+ height: 42px;
+ line-height: 42px;
+ vertical-align: center;
+ font-size:16pt;
+}
+
+.bb-bb10-context-menu-item-hires
+{
+ padding-top: 14px;
+ padding-bottom: 3px;
+ padding-left: 10px;
+ height: 109px;
+ line-height: 95px;
+ vertical-align: center;
+ font-size:30pt;
+}
+
+/* =================================================
+ BB10 Grid
+ =================================================*/
+
+.bb-bb10-grid-item-overlay-lowres
+{
+ position:relative;
+ height: 20px;
+ top:-20px;
+ right:0px;
+ left: 0px;
+ background-color: black;
+ opacity: 0.7;
+}
+
+.bb-bb10-grid-item-overlay-hires
+{
+ position:relative;
+ height: 70px;
+ top:-70px;
+ right:0px;
+ left: 0px;
+ background-color: black;
+ opacity: 0.7;
+}
+/* =================================================
+ BB10 Round panels
+ =================================================*/
+
+.bb-bb10-round-panel-light {
+ border-color: #C6C6C6;
+ color: #57FCFF;
+ background-color: rgba(255,255,255,0.0);
+}
+
View
52 SystemAPIs/cssjs/custom.js
@@ -0,0 +1,52 @@
+function onLoadFunctions() {
+blackberry.event.addEventListener("batterystatus", batteryStatus);
+blackberry.event.addEventListener("batterylow", batteryLow);
+blackberry.event.addEventListener("batterycritical", batteryCritical);
+blackberry.event.addEventListener("fontchanged", fontChange);
+blackberry.event.addEventListener("languagechanged", langChange);
+blackberry.event.addEventListener("regionchanged", regionChange);
+document.getElementById('getCurrentTimezone').innerHTML = blackberry.system.getCurrentTimezone()
+document.getElementById('fontFamily').innerHTML = blackberry.system.getFontInfo().fontFamily
+document.getElementById('fontSize').innerHTML = blackberry.system.getFontInfo().fontSize
+document.getElementById('issuretype').innerHTML = blackberry.system.hasCapability('input.keyboard.issuretype')
+document.getElementById('touch').innerHTML = blackberry.system.hasCapability('input.touch')
+document.getElementById('audio').innerHTML = blackberry.system.hasCapability('media.audio.capture')
+document.getElementById('video').innerHTML = blackberry.system.hasCapability('media.video.capture')
+document.getElementById('recording').innerHTML = blackberry.system.hasCapability('media.recording')
+document.getElementById('gps').innerHTML = blackberry.system.hasCapability('location.gps')
+document.getElementById('maps').innerHTML = blackberry.system.hasCapability('location.maps')
+document.getElementById('memorycard').innerHTML = blackberry.system.hasCapability('storage.memorycard')
+document.getElementById('bluetooth').innerHTML = blackberry.system.hasCapability('network.bluetooth')
+document.getElementById('wlan').innerHTML = blackberry.system.hasCapability('network.wlan')
+document.getElementById('3gpp').innerHTML = blackberry.system.hasCapability('network.3gpp')
+document.getElementById('cdma').innerHTML = blackberry.system.hasCapability('network.cdma')
+document.getElementById('iden').innerHTML = blackberry.system.hasCapability('network.iden')
+//document.getElementById('hasDataCoverage').innerHTML = blackberry.system.hasDataCoverage()
+document.getElementById('hasPermissionSys').innerHTML = blackberry.system.hasPermission(blackberry.system)
+//document.getElementById('isMassStorageActive').innerHTML = blackberry.system.isMassStorageActive()
+document.getElementById('deviceLockedStatus').innerHTML = blackberry.system.deviceLockedStatus
+document.getElementById('hardwareId').innerHTML = blackberry.system.hardwareId
+document.getElementById('language').innerHTML = blackberry.system.language
+document.getElementById('model').innerHTML = blackberry.system.model
+document.getElementById('name').innerHTML = blackberry.system.name