Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #43 from timwindsor/master

README updates to point at new Community Repository
  • Loading branch information...
commit fbea6e6d3a656e8f67460e08830afdafd59d9d96 2 parents 59615e0 + 255b5c7
@timwindsor timwindsor authored
Showing with 5 additions and 29,655 deletions.
  1. +0 −1  DojoAppDetails/LICENSE
  2. +1 −60 DojoAppDetails/README.md
  3. +0 −29 DojoAppDetails/config.xml
  4. +0 −54 DojoAppDetails/index.html
  5. +0 −79 DojoAppDetails/js/dojoAppDetails.js
  6. +0 −307 bbUI-localStorage/LICENSE
  7. +1 −54 bbUI-localStorage/README.md
  8. +0 −50 bbUI-localStorage/about.html
  9. +0 −30 bbUI-localStorage/clearing.html
  10. +0 −24 bbUI-localStorage/config.xml
  11. +0 −4,709 bbUI-localStorage/cssjs/bbui-0.9.3.css
  12. +0 −6,838 bbUI-localStorage/cssjs/bbui-0.9.3.js
  13. +0 −110 bbUI-localStorage/cssjs/custom.css
  14. +0 −97 bbUI-localStorage/cssjs/custom.js
  15. +0 −48 bbUI-localStorage/cssjs/list.js
  16. +0 −5 bbUI-localStorage/cssjs/test.html
  17. +0 −31 bbUI-localStorage/custom/custom.html
  18. BIN  bbUI-localStorage/images/background.jpg
  19. BIN  bbUI-localStorage/images/blank.png
  20. BIN  bbUI-localStorage/images/hippo.png
  21. BIN  bbUI-localStorage/images/icon.png
  22. BIN  bbUI-localStorage/images/icons/cog_dark_theme.png
  23. BIN  bbUI-localStorage/images/icons/icon1.png
  24. BIN  bbUI-localStorage/images/icons/icon10.png
  25. BIN  bbUI-localStorage/images/icons/icon11.png
  26. BIN  bbUI-localStorage/images/icons/icon12.png
  27. BIN  bbUI-localStorage/images/icons/icon13.png
  28. BIN  bbUI-localStorage/images/icons/icon14.png
  29. BIN  bbUI-localStorage/images/icons/icon15.png
  30. BIN  bbUI-localStorage/images/icons/icon16.png
  31. BIN  bbUI-localStorage/images/icons/icon17.png
  32. BIN  bbUI-localStorage/images/icons/icon18.png
  33. BIN  bbUI-localStorage/images/icons/icon19.png
  34. BIN  bbUI-localStorage/images/icons/icon2.png
  35. BIN  bbUI-localStorage/images/icons/icon20.png
  36. BIN  bbUI-localStorage/images/icons/icon21.png
  37. BIN  bbUI-localStorage/images/icons/icon22.png
  38. BIN  bbUI-localStorage/images/icons/icon23.png
  39. BIN  bbUI-localStorage/images/icons/icon24.png
  40. BIN  bbUI-localStorage/images/icons/icon25.png
  41. BIN  bbUI-localStorage/images/icons/icon3.png
  42. BIN  bbUI-localStorage/images/icons/icon4.png
  43. BIN  bbUI-localStorage/images/icons/icon5.png
  44. BIN  bbUI-localStorage/images/icons/icon6.png
  45. BIN  bbUI-localStorage/images/icons/icon7.png
  46. BIN  bbUI-localStorage/images/icons/icon8.png
  47. BIN  bbUI-localStorage/images/icons/icon9.png
  48. BIN  bbUI-localStorage/images/osbb.png
  49. BIN  bbUI-localStorage/images/osbbx.png
  50. BIN  bbUI-localStorage/images/osbbxheader.png
  51. BIN  bbUI-localStorage/images/scrapps.png
  52. BIN  bbUI-localStorage/images/splashscreen.jpg
  53. BIN  bbUI-localStorage/images/success.png
  54. +0 −34 bbUI-localStorage/index.html
  55. +0 −20 bbUI-localStorage/intro/rimapi.html
  56. +0 −228 bbUI-localStorage/intro/standard.js
  57. +0 −82 bbUI-localStorage/intro/storage.html
  58. +0 −207 bbUI-localStorage/intro/storage.js
  59. +0 −314 bbUI-localStorage/intro/styles.css
  60. +0 −20 bbUI-localStorage/intro/wikipedia.html
  61. +0 −27 bbUI-localStorage/menu.html
  62. +0 −15 bbUI-localStorage/password/forgotpass.html
  63. +0 −27 bbUI-localStorage/password/password.html
  64. +0 −29 bbUI-localStorage/password/setpassword.html
  65. +0 −7 bbUI-localStorage/password/success.html
  66. +0 −34 bbUI-localStorage/redirect/one.html
  67. +0 −13 bbUI-localStorage/redirect/three.html
  68. +0 −16 bbUI-localStorage/redirect/two.html
  69. +0 −24 bbUI-localStorage/setsrc/iframe.html
  70. +0 −45 bbUI-localStorage/setsrc/image.html
  71. +0 −32 bbUI-localStorage/settings.html
  72. +0 −19 bbUI-localStorage/start.html
  73. +0 −16 bbUI-localStorage/viewstorage.html
  74. +0 −30 bbUI-localStorage/welcome.html
  75. +1 −67 kitchenSink/README.md
  76. +0 −186 kitchenSink/Resource_Copyright_Info.txt
  77. +0 −133 kitchenSink/config.xml
  78. +0 −70 kitchenSink/css/apis/appevent.css
  79. +0 −20 kitchenSink/css/apis/invoke.css
  80. +0 −32 kitchenSink/css/apis/microphone.css
  81. +0 −26 kitchenSink/css/apis/systemevent.css
  82. +0 −24 kitchenSink/css/browser/motion.css
  83. +0 −56 kitchenSink/css/browser/position.css
  84. +0 −41 kitchenSink/css/browser/toolbars.css
  85. +0 −25 kitchenSink/css/browser/touch.css
  86. +0 −44 kitchenSink/css/css3/about.css
  87. +0 −49 kitchenSink/css/css3/animation.css
  88. +0 −56 kitchenSink/css/css3/animations.css
  89. +0 −25 kitchenSink/css/css3/boxflex.css
  90. +0 −69 kitchenSink/css/css3/fonts.css
  91. +0 −155 kitchenSink/css/css3/gallery.css
  92. +0 −50 kitchenSink/css/css3/mediaquery.css
  93. +0 −195 kitchenSink/css/css3/transformations.css
  94. +0 −314 kitchenSink/css/styles.css
  95. +0 −24 kitchenSink/css/usecase/gestures.css
  96. +0 −49 kitchenSink/css/usecase/overflow.css
  97. +0 −34 kitchenSink/css/usecase/progress.css
  98. +0 −32 kitchenSink/css/usecase/senchatouch.css
  99. +0 −58 kitchenSink/css/usecase/spacing.css
  100. +0 −38 kitchenSink/css/usecase/sprite.css
  101. +0 −59 kitchenSink/html/apis/app.html
  102. +0 −70 kitchenSink/html/apis/appevent.html
  103. +0 −41 kitchenSink/html/apis/audio.html
  104. +0 −54 kitchenSink/html/apis/audioplayer.html
  105. +0 −43 kitchenSink/html/apis/camera.html
  106. +0 −38 kitchenSink/html/apis/dir.html
  107. +0 −48 kitchenSink/html/apis/file.html
  108. +0 −54 kitchenSink/html/apis/identity.html
  109. +0 −90 kitchenSink/html/apis/invoke.html
  110. +0 −66 kitchenSink/html/apis/menu.html
  111. +0 −68 kitchenSink/html/apis/microphone.html
  112. +0 −40 kitchenSink/html/apis/phone.html
  113. +0 −51 kitchenSink/html/apis/system.html
  114. +0 −58 kitchenSink/html/apis/systemevent.html
  115. +0 −62 kitchenSink/html/apis/ui.html
  116. +0 −47 kitchenSink/html/apis/utils.html
  117. +0 −42 kitchenSink/html/browser/blackberry.html
  118. +0 −48 kitchenSink/html/browser/carriernetwork.html
  119. +0 −24 kitchenSink/html/browser/data.html
  120. +0 −10 kitchenSink/html/browser/data.xml
  121. +0 −81 kitchenSink/html/browser/dhtml.html
  122. +0 −72 kitchenSink/html/browser/flashplayer.html
  123. +0 −124 kitchenSink/html/browser/formfields.html
  124. +0 −46 kitchenSink/html/browser/gestures.html
  125. +0 −70 kitchenSink/html/browser/gps.html
  126. +0 −51 kitchenSink/html/browser/keyevents.html
  127. +0 −58 kitchenSink/html/browser/motion.html
  128. +0 −41 kitchenSink/html/browser/navigator.html
  129. +0 −41 kitchenSink/html/browser/orientation.html
  130. +0 −44 kitchenSink/html/browser/pagedimensions.html
  131. +0 −84 kitchenSink/html/browser/position.html
  132. +0 −79 kitchenSink/html/browser/protocols.html
  133. +0 −42 kitchenSink/html/browser/random.html
  134. +0 −104 kitchenSink/html/browser/schemes.html
  135. +0 −64 kitchenSink/html/browser/toolbars.html
  136. +0 −35 kitchenSink/html/browser/touch.html
  137. +0 −54 kitchenSink/html/browser/typedarrays.html
  138. +0 −46 kitchenSink/html/browser/useragent.html
  139. +0 −51 kitchenSink/html/browser/viewport/densitydpi.html
  140. +0 −51 kitchenSink/html/browser/viewport/devicewidth.html
  141. +0 −55 kitchenSink/html/browser/viewport/noscale.html
  142. +0 −58 kitchenSink/html/browser/viewport/scale2.html
  143. +0 −54 kitchenSink/html/browser/viewport/scalemax.html
  144. +0 −56 kitchenSink/html/browser/viewport/scalemin.html
  145. +0 −84 kitchenSink/html/browser/viewport/viewport.html
  146. +0 −52 kitchenSink/html/browser/viewport/width100.html
  147. +0 −56 kitchenSink/html/browser/viewport/width360.html
  148. +0 −53 kitchenSink/html/browser/viewport/width360height480.html
  149. +0 −52 kitchenSink/html/browser/viewport/width800.html
  150. +0 −110 kitchenSink/html/browser/window.html
  151. +0 −59 kitchenSink/html/browser/xhr.html
  152. +0 −69 kitchenSink/html/browser/zoom.html
  153. +0 −43 kitchenSink/html/css3/about.html
  154. +0 −60 kitchenSink/html/css3/animation.html
  155. +0 −95 kitchenSink/html/css3/animations.html
  156. +0 −48 kitchenSink/html/css3/boxflex.html
  157. +0 −125 kitchenSink/html/css3/fonts.html
  158. +0 −78 kitchenSink/html/css3/gallery.html
  159. +0 −96 kitchenSink/html/css3/mediaquery.html
  160. +0 −204 kitchenSink/html/css3/overflow.html
  161. +0 −85 kitchenSink/html/css3/sprite.html
  162. +0 −230 kitchenSink/html/css3/transformations.html
  163. +0 −47 kitchenSink/html/debug/firebuglite.html
  164. +0 −54 kitchenSink/html/debug/jsconsole.html
  165. +0 −63 kitchenSink/html/debug/ripple.html
  166. +0 −67 kitchenSink/html/debug/webinspector.html
  167. +0 −51 kitchenSink/html/debug/weinre.html
  168. +0 −183 kitchenSink/html/html5/audio.html
  169. +0 −101 kitchenSink/html/html5/cache/cache.html
  170. +0 −180 kitchenSink/html/html5/cache/cache.js
  171. +0 −25 kitchenSink/html/html5/cache/fallback.html
  172. +0 −23 kitchenSink/html/html5/cache/manifest.cache
  173. +0 −24 kitchenSink/html/html5/cache/offline.css
  174. BIN  kitchenSink/html/html5/cache/offline.png
  175. +0 −24 kitchenSink/html/html5/cache/online.css
  176. BIN  kitchenSink/html/html5/cache/online.png
  177. +0 −47 kitchenSink/html/html5/canvas.html
  178. +0 −52 kitchenSink/html/html5/db.html
  179. +0 −71 kitchenSink/html/html5/file.html
  180. +0 −69 kitchenSink/html/html5/geo.html
  181. +0 −136 kitchenSink/html/html5/inputtypes.html
  182. +0 −42 kitchenSink/html/html5/notifications.html
  183. +0 −50 kitchenSink/html/html5/offline.html
  184. +0 −85 kitchenSink/html/html5/storage.html
  185. +0 −59 kitchenSink/html/html5/storageloadtest.html
  186. +0 −136 kitchenSink/html/html5/video.html
  187. +0 −57 kitchenSink/html/html5/websockets.html
  188. +0 −98 kitchenSink/html/html5/workers.html
  189. +0 −54 kitchenSink/html/usecase/content.html
  190. +0 −71 kitchenSink/html/usecase/progress.html
  191. +0 −83 kitchenSink/html/usecase/spacing.html
  192. +0 −53 kitchenSink/html/usecase/twitter.html
  193. +0 −72 kitchenSink/html/usecase/upload.html
  194. BIN  kitchenSink/img/Wash.png
  195. BIN  kitchenSink/img/basketball.png
  196. BIN  kitchenSink/img/bluebackground.jpg
  197. BIN  kitchenSink/img/css3_logo.png
  198. BIN  kitchenSink/img/gallery/african-daisy-flowers_w725_h544.jpg
  199. BIN  kitchenSink/img/gallery/bright-yellow-azalea-flower_w725_h544.jpg
  200. BIN  kitchenSink/img/gallery/iris-beautiful-purple-flower_w725_h544.jpg
  201. BIN  kitchenSink/img/gallery/red-peony-flower_w725_h544.jpg
  202. BIN  kitchenSink/img/gear.png
  203. BIN  kitchenSink/img/globe.png
  204. BIN  kitchenSink/img/html5_logo_sm.png
  205. BIN  kitchenSink/img/maximize.png
  206. BIN  kitchenSink/img/minimize.png
  207. BIN  kitchenSink/img/new_icon.png
  208. BIN  kitchenSink/img/paradise.jpg
  209. BIN  kitchenSink/img/paradise_sm.jpg
  210. BIN  kitchenSink/img/screenshots/kitchenSink.png
  211. BIN  kitchenSink/img/screenshots/ripple_webworks.jpg
  212. BIN  kitchenSink/img/screenshots/use_ripple.jpg
  213. BIN  kitchenSink/img/screenshots/webinspector_enabled.png
  214. BIN  kitchenSink/img/screenshots/webinspector_using.png
  215. BIN  kitchenSink/img/sprite.png
  216. BIN  kitchenSink/img/sprite_blue.jpg
  217. BIN  kitchenSink/img/sprite_green.jpg
  218. BIN  kitchenSink/img/sprite_purple.jpg
  219. BIN  kitchenSink/img/sprite_red.jpg
  220. +0 −202 kitchenSink/index.html
  221. +0 −140 kitchenSink/js/apis/app.js
  222. +0 −85 kitchenSink/js/apis/appevent.js
  223. +0 −102 kitchenSink/js/apis/audio.js
  224. +0 −253 kitchenSink/js/apis/audioplayer.js
  225. +0 −131 kitchenSink/js/apis/camera.js
  226. +0 −76 kitchenSink/js/apis/dir.js
  227. +0 −168 kitchenSink/js/apis/file.js
  228. +0 −121 kitchenSink/js/apis/identity.js
  229. +0 −344 kitchenSink/js/apis/invoke.js
  230. +0 −143 kitchenSink/js/apis/menu.js
  231. +0 −172 kitchenSink/js/apis/microphone.js
  232. +0 −216 kitchenSink/js/apis/phone.js
  233. +0 −143 kitchenSink/js/apis/system.js
  234. +0 −132 kitchenSink/js/apis/systemevent.js
  235. +0 −80 kitchenSink/js/apis/ui.js
  236. +0 −75 kitchenSink/js/apis/utils.js
  237. +0 −62 kitchenSink/js/browser/blackberry.js
  238. +0 −50 kitchenSink/js/browser/carriernetwork.js
  239. +0 −31 kitchenSink/js/browser/datauris.js
  240. +0 −22 kitchenSink/js/browser/dhtml.js
  241. +0 −43 kitchenSink/js/browser/forminputs.js
  242. +0 −104 kitchenSink/js/browser/gps.js
  243. +0 −111 kitchenSink/js/browser/keyevents.js
  244. +0 −115 kitchenSink/js/browser/motion.js
  245. +0 −52 kitchenSink/js/browser/navigator.js
  246. +0 −52 kitchenSink/js/browser/orientation.js
  247. +0 −53 kitchenSink/js/browser/pagedimensions.js
  248. +0 −53 kitchenSink/js/browser/protocols.js
  249. +0 −32 kitchenSink/js/browser/random.js
  250. +0 −40 kitchenSink/js/browser/toolbars.js
  251. +0 −359 kitchenSink/js/browser/touch.js
  252. +0 −112 kitchenSink/js/browser/typedarrays.js
  253. +0 −57 kitchenSink/js/browser/useragent.js
  254. +0 −36 kitchenSink/js/browser/viewport.js
  255. +0 −115 kitchenSink/js/browser/window.js
  256. +0 −69 kitchenSink/js/browser/xhr.js
  257. +0 −29 kitchenSink/js/css3/about.js
  258. +0 −24 kitchenSink/js/css3/animation.js
  259. +0 −22 kitchenSink/js/css3/animations.js
  260. +0 −45 kitchenSink/js/css3/gallery.js
  261. +0 −21 kitchenSink/js/css3/transformations.js
  262. +0 −31 kitchenSink/js/debug/firebuglite.js
  263. +0 −32 kitchenSink/js/debug/jsconsole.js
  264. +0 −35 kitchenSink/js/debug/weinre.js
  265. +0 −133 kitchenSink/js/html5/filereader.js
  266. +0 −347 kitchenSink/js/html5/geo.js
  267. +0 −50 kitchenSink/js/html5/notifications.js
  268. +0 −44 kitchenSink/js/html5/offline.js
  269. +0 −207 kitchenSink/js/html5/storage.js
  270. +0 −178 kitchenSink/js/html5/storageloadtest.js
  271. +0 −74 kitchenSink/js/html5/the_worker.js
  272. +0 −79 kitchenSink/js/html5/video.js
  273. +0 −290 kitchenSink/js/html5/webdb.js
  274. +0 −119 kitchenSink/js/html5/websockets.js
  275. +0 −165 kitchenSink/js/html5/workers.js
  276. +0 −480 kitchenSink/js/json2.js
  277. +0 −228 kitchenSink/js/standard.js
  278. +0 −61 kitchenSink/js/toggle.js
  279. +0 −198 kitchenSink/js/usecase/gestures.js
  280. +0 −67 kitchenSink/js/usecase/progress.js
  281. +0 −83 kitchenSink/js/usecase/twitter.js
  282. +0 −91 kitchenSink/js/usecase/upload.js
  283. BIN  kitchenSink/resources/13_ThatsGood.mp3
  284. BIN  kitchenSink/resources/5-snowflakes.swf
  285. BIN  kitchenSink/resources/HelloWorld.doc
  286. BIN  kitchenSink/resources/HelloWorld.pdf
  287. BIN  kitchenSink/resources/HelloWorld.pptx
  288. BIN  kitchenSink/resources/HelloWorld.xlsx
  289. BIN  kitchenSink/resources/TudorRose.otf
  290. BIN  kitchenSink/resources/Violinsonata_No9_1.mid
  291. BIN  kitchenSink/resources/Youvegot.wav
  292. +1 −52 sketchPad/README.md
  293. +0 −41 sketchPad/config.xml
  294. +0 −24 sketchPad/css/sketchpad.css
  295. BIN  sketchPad/icon.png
  296. +0 −35 sketchPad/index.html
  297. +0 −324 sketchPad/js/sketchpad.js
  298. +1 −66 swipemenu/README.md
  299. +0 −42 swipemenu/config.xml
  300. BIN  swipemenu/images/icon.png
Sorry, we could not display the entire diff because too many files (306) changed.
View
1  DojoAppDetails/LICENSE
@@ -1 +0,0 @@
- 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: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) 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 (d) 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. END OF TERMS AND CONDITIONS Copyright 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.
View
61 DojoAppDetails/README.md
@@ -1,62 +1,3 @@
# Dojo Sample Application
-This application shows the markup for creating a simple Dojo application to view app details based on the app's WebWorks config.xml file
-
-The sample code for this application is Open Source under the [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0.html).
-
-
-**Applies To**
-
-* [BlackBerry WebWorks SDK for Smartphones](https://bdsc.webapps.blackberry.com/html5/download/sdk)
-
-
-**Author(s)**
-
-* Michelle Mendoza
-
-
-**Dependencies**
-
-* When running the application on a device, to access Dojo toolkit resources, the device must have an internet connection
-
-**Known Issues**
-
-* When using the Ripple Emulator, a Chrome Console log error is shown: "Uncaught Error: undefinedModule". This is due to Dojo trying to load Ripple's "ripple/bootstrap" since it follows the same Dojo syntax for loading legacy modules e.g. require("ripple/bootstrap")
-
-**Tested On**
-* BlackBerry Bold 9900 v7.1.0.605
-* BlackBerry Torch 9810 v7.1.0.697
-
-**To contribute code to this repository you must be [signed up as an official contributor](http://blackberry.github.com/howToContribute.html).**
-
-## How to Build
-
-To build the DojoAppDetails sample application:
-
-1. Click on the **Downloads** tab above.
-2. Select **Download as zip** (Windows) or **Download as tar.gz** (Mac) and save the downloaded file to your local machine.
-3. Create a new folder on your local machine named **DojoAppDetails** e.g. **C:\Documents and Settings\User\WebWorks\DojoAppDetails** (Windows) or **~/WebWorks/DojoAppDetails** (Mac).
-4. Open the downloaded ZIP file from step 2 and extract the contents **from inside the zipped DojoAppDetails folder** to your local **DojoAppDetails** folder from step 3. This ensures that the necessary application assets, such as **config.xml**, are correctly located at the top level of the local **DojoAppDetails** folder (e.g. **~/WebWorks/DojoAppDetails/config.xml**).
-5. Using the **[Ripple Mobile Emulator](http://developer.blackberry.com/html5/download)** and the **[BlackBerry WebWorks SDK for Smartphone](http://developer.blackberry.com/html5/download)**, package the contents of your local **DojoAppDetails** folder into a BlackBerry application. Enter the project root settings field as the local folder created in step 3, and the archive name settings field as **DojoAppDetails**.
-
-
-## More Info
-
-* [BlackBerry HTML5 WebWorks](https://bdsc.webapps.blackberry.com/html5/) - Downloads, Getting Started guides, samples, code signing keys.
-* [BlackBerry WebWorks Development Guides](https://bdsc.webapps.blackberry.com/html5/documentation)
-* [BlackBerry WebWorks Community Forums](http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/bd-p/browser_dev)
-* [BlackBerry Open Source WebWorks Contributions Forums](http://supportforums.blackberry.com/t5/BlackBerry-WebWorks/bd-p/ww_con)
-
-## Contributing Changes
-
-Please see the [README](https://github.com/blackberry/WebWorks-Samples) of the WebWorks-Samples repository for instructions on how to add new Samples or make modifications to existing Samples.
-
-
-## Bug Reporting and Feature Requests
-
-If you find a bug in a Sample, or have an enhancement request, simply file an [Issue](https://github.com/blackberry/WebWorks-Samples/issues) for the Sample and send a message (via github messages) to the Sample Author(s) to let them know that you have filed an [Issue](https://github.com/blackberry/WebWorks-Samples/issues).
-
-
-## Disclaimer
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+Now hosted at https://github.com/blackberry/WebWorks-Community-Samples/tree/master/DojoAppDetails
View
29 DojoAppDetails/config.xml
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright 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.
--->
-<widget xmlns="http://www.w3.org/ns/widgets"
- xmlns:rim="http://www.blackberry.com/ns/widgets"
- version="1.0.0.0" id="DojoAppDetails" xml:lang="en">
- <author href="http://www.blackberry.com/"
- rim:copyright="Copyright 2012 RIM">RIM</author>
- <name>Dojo App Details</name>
- <description>Sample Dojo app showing app details</description>
-
- <access uri="http://ajax.googleapis.com" subdomains="true"/>
- <content src="index.html"/>
- <feature id="blackberry.app"/>
-
-</widget>
View
54 DojoAppDetails/index.html
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<!--
- * Copyright 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>
- <title>Dojo App Details</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
-
- <!-- async mode must be included BEFORE the dojo loader (dojo.js) -->
- <script data-dojo-config="async:true" src="http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dojo/dojo.js" ></script>
-
- <!-- Any other scripts needed -->
- <script src="js/dojoAppDetails.js"></script>
-
-</head>
-<body>
-
-<!-- Main Page -->
-<div id="general" data-dojo-type="dojox.mobile.View">
- <h1 data-dojo-type="dojox.mobile.Heading">General</h1>
- <ul data-dojo-type="dojox.mobile.RoundRectList">
- <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'aboutView', transition:'fade'">
- About
- </li>
- </ul>
-</div>
-
-<!-- About the app -->
-<div id="aboutView" data-dojo-type="dojox.mobile.View">
- <h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props="back:'General', moveTo:'general'">About</h1>
- <h2 data-dojo-type="dojox.mobile.RoundRectCategory">App Details</h2>
- <div id="appDetailsDiv" data-dojo-type="dojox.mobile.RoundRect">
- </div>
-</div>
-
-<!-- Loading screen to ensure the page is formatted and all resources have been loaded -->
-<div id="loadingScreen" style="position:absolute;left:0px;top:0px;width:100%;height:100%;background-color:#FFFFFF;z-index:999;display:block;text-align:center;">Loading...</div>
-
-</body>
-</html>
View
79 DojoAppDetails/js/dojoAppDetails.js
@@ -1,79 +0,0 @@
-/* Copyright 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.
- */
-
-function startDojo(){
-
- require([
- "dojox/mobile/parser", // lightweight parser for mobile apps
- "dojox/mobile", // mobile application
- "dojox/mobile/deviceTheme", // using user-agent, loads appropriate theme
- "dojox/mobile/View" // use the View widget to represent the device screen
- ],
- function(parser) {
- // Parse the page for widgets and get them instantiated
- parser.parse();
- });
-
- /*
- dojo/ready registers a function to run when the DOM is ready and
- all outstanding require() calls have been resolved
- when working with widgets, dojo/ready should be used instead of domReady!
-
- http://dojotoolkit.org/reference-guide/1.8/dojo/ready.html#dojo-ready
- http://dojotoolkit.org/reference-guide/1.8/dojo/domReady.html#dojo-domready
- */
-
- require(["dojo/ready", "dojo/dom", "dojo/dom-style"],
- function(ready, dom, domStyle){
- ready(function(){
- // use a timeout just to ensure the page is loaded and themed before showing it
- setTimeout(function() {
- var loadingScreen = dom.byId("loadingScreen");
- domStyle.set(loadingScreen, "display", "none");
- }, 4000);
- });
- });
-
-} //end function startDojo()
-
-function getAppDetails() {
-// Create a table with the app details and change the contents of the containing element
-
- if (window.blackberry !== undefined) {
- try {
- var output = "<table>";
- output += "<tr><td><b>Author</td><td>" + blackberry.app.author + "</td></tr>";
- output += "<tr><td><b>Name</b></td><td>" + blackberry.app.name + "</td></tr>";
- output += "<tr><td><b>Version</b></td><td>" + blackberry.app.version + "</td></tr>";
- output += "<tr><td><b>Copyright</b></td><td>" + blackberry.app.copyright + "</td></tr>";
- output += "<tr><td><b>Description</b></td><td>" + blackberry.app.description + "</td></tr>";
- output += "</table>";
-
- require(["dojo/dom"], function (dom){
- dom.byId("appDetailsDiv").innerHTML = output;
- });
-
- } catch(e) {
- console.error("Exception in getAppDetails: " + e);
- } // end try-catch
- } // end if
-} // end function getAppDetails()
-
-function pageLoad(){
- startDojo();
- getAppDetails();
-}
-
-window.addEventListener("load", pageLoad, false);
View
307 bbUI-localStorage/LICENSE
@@ -1,307 +0,0 @@
- 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:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) 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
-
- (d) 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.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- 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.
-
- ==========================================================
- IScroll.js
- ==========================================================
-
- Copyright (c) 2009-2010 Matteo Spinelli, http://cubiq.org/
-
- Permission is hereby granted, free of charge, to any person
- obtaining a copy of this software and associated documentation
- files (the "Software"), to deal in the Software without
- restriction, including without limitation the rights to use,
- copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the
- Software is furnished to do so, subject to the following
- conditions:
-
- The above copyright notice and this permission notice shall be
- included in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- OTHER DEALINGS IN THE SOFTWARE.
-
- ==========================================================
- Plastique Icons
- ==========================================================
-
- Plastique Icon Set by Iconify.it, LLC is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
-
- By downloading and using these files, you are agreeing to be bound by the
- terms of the license corresponding to each package. If you do not agree to the terms of any of the enclosed licenses you must delete all copies of these files from your computer or computers.
-
- Additionally, please provide a credit line and link back to my site at:
-
- http://iconify.it
-
- I hope you find the files useful. If you would like to help support my work, you
- can make a donation to my PayPal account - scott.catalyst@gmail.com
-
- Thank You,
- Scott Lewis
- Iconify.it, LLC
-
-
- Creative Commons Attribution 3.0 Unported
- http://creativecommons.org/licenses/by/3.0/legalcode
-
- THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
-
- BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
-
- 1. Definitions
-
- "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License.
- "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License.
- "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership.
- "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License.
- "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast.
- "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work.
- "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
- "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images.
- "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium.
- 2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws.
-
- 3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
-
- to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections;
- to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified.";
- to Distribute and Publicly Perform the Work including as incorporated in Collections; and,
- to Distribute and Publicly Perform Adaptations.
- For the avoidance of doubt:
-
- Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License;
- Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and,
- Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License.
- The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved.
-
- 4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
-
- You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(b), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(b), as requested.
- If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4 (b) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties.
- Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise.
- 5. Representations, Warranties and Disclaimer
-
- UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
-
- 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
- 7. Termination
-
- This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
- Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
- 8. Miscellaneous
-
- Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
- Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
- If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
- No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
- This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
- The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law.
-
View
55 bbUI-localStorage/README.md
@@ -1,56 +1,3 @@
# bbUI localStorage Samples App
-This sample demonstrates multiple ways to use localStorage to improve the end user experience of a BlackBerry WebWorks application for the BlackBerry Tablet OS. localStorage is the name of a proof-of-concept WebWorks application.
-
-The sample code for this application is Open Source under the [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0.html).
-
-
-**Applies To**
-
-* [BlackBerry Tablet OS](https://developer.blackberry.com/html5/)
-* [BlackBerry BlackBerry 10 OS](https://developer.blackberry.com/html5/)
- Note: as BlackBerry 10 is still under development, some functions might not work properly; however, most localStorage examples should work.
-* [BlackBerry WebWorks SDK for Tablet OS](https://developer.blackberry.com/html5/download/)
-
-**Author(s)**
-
-* [G. Shane Cridlebaugh](http://github.com/SCrid2000) / [SCrApps](http://SCrApps.org)
-* [OSBBx](http://x.opensourcebb.com)
-
-**Dependencies**
-
-HTML5
-Although this app is built using bbUI.js, the examples it uses will work in any HTML5 compliant browser or application.
-
-## How to Build
-
-To build the Aura sample application:
-
-
-1. Click on the Download Zip button above or the **Downloads** tab and save the .zip to your desktop.
-2. Open the downloaded ZIP file and extract the contents from inside the zipped Aura folder to your PC. This ensures that the necessary application assets, such as config.xml, are correctly located at the top level of the local localStorage folder.
-3. Package and sign using either the **[WebWorks command line tool](https://developer.blackberry.com/html5/download/sdk)** or the **[Ripple Mobile Emulator](http://developer.blackberry.com/html5/download)** for Tablet OS or BlackBerry 10. Instructions for signing can be found at https://developer.blackberry.com/html5/documentation/packaging_your_app_1939301_11.html (https://developer.blackberry.com/html5/documentation/packaging_your_app_1939301_11.html)
-
-
-
-## More Info
-
-* [BlackBerry HTML5 WebWorks](https://bdsc.webapps.blackberry.com/html5/) - Downloads, Getting Started guides, samples, code signing keys.
-* [BlackBerry WebWorks Development Guides] (https://bdsc.webapps.blackberry.com/html5/documentation)
-* [BlackBerry WebWorks Community Forums](http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/bd-p/browser_dev)
-* [BlackBerry Open Source WebWorks Contributions Forums](http://supportforums.blackberry.com/t5/BlackBerry-WebWorks/bd-p/ww_con)
-* [OpenSourceBBx](http://x.opensourcebb.com)
-
-
-## Contributing Changes
-
-Please see the [README](https://github.com/blackberry/WebWorks-Samples) of the WebWorks-Samples repository for instructions on how to add new Samples or make modifications to existing Samples.
-
-
-## Bug Reporting and Feature Requests
-
-If you find a bug in a Sample, or have an enhancement request, simply file an [Issue](https://github.com/blackberry/WebWorks-Samples/issues) for the Sample and send a message (via github messages) to the Sample Author(s) to let them know that you have filed an [Issue](https://github.com/blackberry/WebWorks-Samples/issues).
-
-## Disclaimer
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+Now hosted at https://github.com/blackberry/WebWorks-Community-Samples/tree/master/bbUI-localStorage
View
50 bbUI-localStorage/about.html
@@ -1,50 +0,0 @@
-
-<div data-bb-type="screen" data-bb-title="Screen Display" data-bb-effect="fade" >
- <div><img src="images/osbbxheader.png" width="100%" height="16%"/></div>
-
- <div data-bb-type="round-panel" >
- The information and examples in the localStorage bbUI app is provided to the world free of charge in the hopes that it will be used to help make better apps for the BlackBerry PlayBook and BB10 devices. This app will be updated as new ideas are thought of and time allows.<br>
- A big thanks to RIM and the bbUI.js team for creating the framework that made this app possible! If you haven't heard of bbUI, check it out at <a style="color: #0033cc; text-decoration:underline;" onclick="launchGit()">https://github.com/blackberry/bbUI.js</a>. Other major contributors are listed below.
- </div>
-
- <div data-bb-type="round-panel">
- <div data-bb-type="row">
- <div data-bb-type="panel-header">OpenSourceBB</div>
- OpenSourceBB is a team of individuals dedicated to creating a more excellent BlackBerry user experience. OpenSourceBB started out building free BlackBerry Hybrid OSes, and expanded into building themes and eventually into running a BlackBerry blog, which is currently located at <a style="color: #0033cc; text-decoration:underline;" onclick="launchOSBB()">www.OpenSourceBB.com</a>.
- <center><img src="images/osbb.png" onclick="launchOSBB()" height="127px" /></center>
-
- </div>
- </div>
-
- <div data-bb-type="round-panel">
- <div data-bb-type="row">
- <div data-bb-type="panel-header">OSBBx</div>
- As the members of OpenSourceBB learned more about BlackBerry development, and inspired by decisions made by RIM's developer relations team, some OSBB members felt a desire to create a place fostering open communication between RIM employees and BlackBerry devs. Eventually OSBB began communications with other developers and developer groups. These communications lead to the creation of OSBBx, a group of individuals dedicated to promoting BlackBerry and becoming better developers. If you're interested in joining the OSBBx community, or if you just want to see what we're all about, check it out at <a style="color: #0033cc; text-decoration:underline;" onclick="launchOSBBx()">x.opensourcebb.com</a>.
- <center><img src="images/osbbx.png" onclick="launchOSBBx()" height="127px" /></center>
-
- </div>
- </div>
-
- <div data-bb-type="round-panel">
- <div data-bb-type="row">
- <div data-bb-type="panel-header">SCrApps</div>
- SCrApps is the developer name of Shane (mostly known as SCrid2000 online), a founding member of OpenSourceBB, and the main author of this app. As a law student and the father of two young children, Shane teaches himself coding and creates BlackBerry apps in his limited spare time.<br>
- If you would like to see more SCrApps apps, you can view them in App World. If you found this app useful, condsider <a style="color: #0033cc; text-decoration:underline;" onclick="appWorld()"> purchasing some SCrApps Apps</a>.
- <center><img src="images/scrapps.png" onclick="appWorld()" height="127px" /></center>
- If you would like to contact SCrApps with general questions, or to assist in future editions of this app, you can email Shane at <a style="color: #0033cc; text-decoration:underline;" onclick="launchCompose()">Support@SCrApps.org</a>.
- </div>
- </div>
-
- <div data-bb-type="round-panel">
- <div data-bb-type="row">
- <div data-bb-type="panel-header">License</div>
- Copyright 2010-2012, G. Shane Cridlebaugh.<br><br>
- 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<br>
- 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.
- </div>
- </div>
-
-
-<br>
- <div data-bb-type="action-bar" data-bb-back-caption="Back"></div>
-</div>
View
30 bbUI-localStorage/clearing.html
@@ -1,30 +0,0 @@
-
-<div data-bb-type="screen" data-bb-title="Screen Display" data-bb-effect="fade" >
-
- <div data-bb-type="round-panel">
- <div data-bb-type="row">
- <div data-bb-type="panel-header">Clearing a single localStorage key</div>
- Obviously, in order to clear a localStorage value, first one needs to be set. When delStorage is set, the ... below will change to tell you that delStorage is set.
- <div data-bb-type="button" data-bb-style="stretch" onclick="localStorage.setItem('delStorage','delStorage is set.');document.getElementById('deldiv').innerHTML = localStorage.getItem('delStorage');">Create delStorage Key</div>
- Clearing localStorage is fairly straightforward. If you want to delete a localStorage value, just call localStorage.removeItem('key').
- <div data-bb-type="button" data-bb-style="stretch" onclick="localStorage.removeItem('delStorage');document.getElementById('deldiv').innerHTML = 'delStorage is not set.';">Delete the delStorage Key</div>
- </div>
- </div>
-
- <div data-bb-type="round-panel" >
- <div id="deldiv" style="text-align:center;">Checking delStorage...</div>
- </div>
- <script type="text/javascript" src="cssjs/custom.js"></script>
-
- <div data-bb-type="round-panel">
- <div data-bb-type="row">
- <div data-bb-type="panel-header">Clearing ALL localStorage</div>
- You can also clear every localStorage key by using the localStorage.clear() command.
- <div data-bb-type="button" data-bb-style="stretch" onclick="localStorage.clear();">Clear ALL localStorage</div>
- If you add blackberry.app.exit(); to the command, it will also close the app.
- <div data-bb-type="button" data-bb-style="stretch" onclick=" localStorage.clear();blackberry.app.exit();">Clear ALL localStorage and exit the app</div>
- </div>
- </div>
-<br>
- <div data-bb-type="action-bar" data-bb-back-caption="Back"></div>
-</div>
View
24 bbUI-localStorage/config.xml
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<widget xmlns:rim="http://www.blackberry.com/ns/widgets" id="localstorage" version="1.0.0.0" rim:header="RIM-Widget:rim/widget" xmlns="http://www.w3.org/ns/widgets">
- <rim:navigation mode="focus"/>
- <name>localStorage</name>
- <description>How to use localStorage to make better bbUI apps</description>
- <author href="http://www.scrapps.org">G. Shane Cridlebaugh; SCrApps</author>
- <icon src="images/icon.png" />
- <icon src="images/icon2.png" rim:hover="true" />
- <rim:loadingScreen backgroundImage="images/splashscreen.jpg" >
- <rim:transitionEffect type="fadeIn" />
- </rim:loadingScreen>
- <content src="index.html" />
- <access uri="*" subdomains="true" />
- <feature id="blackberry.push" />
- <feature id="blackberry.message.sms" />
- <feature id="blackberry.ui.menu" />
- <feature id="blackberry.ui.dialog"/>
- <feature id="blackberry.identity" />
- <feature id="blackberry.system.event" />
- <feature id="blackberry.app" />
- <feature id="blackberry.io.file" />
- <feature id="blackberry.invoke"/>
- <feature id="blackberry.app.event"/>
-</widget>
View
4,709 bbUI-localStorage/cssjs/bbui-0.9.3.css
0 additions, 4,709 deletions not shown
View
6,838 bbUI-localStorage/cssjs/bbui-0.9.3.js
0 additions, 6,838 deletions not shown
View
110 bbUI-localStorage/cssjs/custom.css
@@ -1,110 +0,0 @@
-/* =================================================
- 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
97 bbUI-localStorage/cssjs/custom.js
@@ -1,97 +0,0 @@
-
-//These are scripts that will not have an effect unless they are run AFTER the subpage is fully loaded into the dom (because they perform an action on a specific item in the subpage). The function onLoadFunctions has to be inserted into ondomready: line in the index.html.
-function onLoadFunctions() {
-//if the Id element myPic1 exists, set it's source to the localStorage value for pic1Icon and the source for myPic2 to pic2Icon- this is used to set an image using localStorage.
-if (document.getElementById('myPic1') != null) {
-document.getElementById('myPic1').src = localStorage.getItem('pic1Icon');
-document.getElementById('myPic2').src = localStorage.getItem('pic2Icon');
-document.getElementById('myPic3').src = localStorage.getItem('pic3Icon');}
-
-//if the Id element deldiv exists, check to see if the localStorage key delStorage exists. The localStorage key is used to determine what message is shown.
-if (document.getElementById('deldiv') != null) {
- if (localStorage.getItem('delStorage') == null) {
- document.getElementById('deldiv').innerHTML = 'delStorage is not set.';}
- else if (localStorage.getItem('delStorage') != null) {
- document.getElementById("deldiv").innerHTML = localStorage.getItem('delStorage');}
- }
-
-//if the Id element myFrame exists, set it's source to the localStorage value for iframesrc - this is used to set an iframe source using localStorage.
-if (document.getElementById('myFrame') != null) {
-document.getElementById("myFrame").src = localStorage.getItem('iframesrc');}
-
-//if the Id element secretqdiv exists, set it's source to the localStorage value for secretq - this is used for the Forgot Password screen.
-if (document.getElementById('secretqdiv') != null) {
-document.getElementById("secretqdiv").innerHTML = localStorage.getItem('secretq');}
-}
-
-//the Welcome function - determines whether the welcome tutorial or the main app is opened.
-function welcome() {
-if (localStorage.getItem('welcome') === null) {
- bb.pushScreen('welcome.html', 'welcome');}
-else
-bb.pushScreen('menu.html', 'menu');
-}
-
-//the function for the redirect option, allowing a single button to redirect to different pages depending on what is set in localStorage.
-function redirect() {
-if (localStorage.getItem('redirect') === null) {
- bb.pushScreen('redirect/one.html', 'one');}
-else if (localStorage.getItem('redirect') === 'something') {
- bb.pushScreen('redirect/three.html', 'three');}
-else
-bb.pushScreen('redirect/two.html', 'two');
-}
-
-//functions for entering a password, setting a password, redirecting or denying access to the password setup screen, setting the secret question and answer, and reseting the password
-function passprotect() {
-if (localStorage.getItem('password') === null) {
-alert('No password set. You will be redirected to options to set one up.');
-bb.pushScreen('password/setpassword.html','setmypass');}
-else if (localStorage.getItem('password') == mypass.value) {bb.pushScreen('password/success.html','success')}
-else {alert('You entered the wrong password. Please try again.')}
-}
-function setpass() {
-if (setpass1.value == setpass2.value) {
-localStorage.setItem('password',setpass1.value)}
-}
-function setpassscreen() {
-if (localStorage.getItem('password') === null) {bb.pushScreen('password/setpassword.html','setmypass')}
-else {alert('You have already set your Password.');}
-}
-function setsecret() {
-localStorage.setItem('secretq',secretquestion.value);
-localStorage.setItem('secreta',secretanswer.value);
-}
-function resetpass() {
-if (localStorage.getItem('secreta') == secretanswer2.value) {
-localStorage.removeItem('password');alert('Password Reset');}
-else {alert('Wrong Secret Answer');}
-}
-
-
-//About Section functions and launchers
-function launchGit() {
-var remote = new blackberry.transport.RemoteFunctionCall("blackberry/invoke/invoke");
-remote.addParam("appType", "https://github.com/blackberry/bbUI.js");
-remote.makeAsyncCall();
-}
-function launchOSBB() {
-var remote = new blackberry.transport.RemoteFunctionCall("blackberry/invoke/invoke");
-remote.addParam("appType", "http://www.opensourcebb.com");
-remote.makeAsyncCall();
-}
-function launchOSBBx() {
-var remote = new blackberry.transport.RemoteFunctionCall("blackberry/invoke/invoke");
-remote.addParam("appType", "http://x.opensourcebb.com");
-remote.makeAsyncCall();
-}
-function appWorld() {
-var remote = new blackberry.transport.RemoteFunctionCall("blackberry/invoke/invoke");
-remote.addParam("appType", "appworld://vendor/4735");
-remote.makeAsyncCall();
-}
-function launchCompose() {
-var remote = new blackberry.transport.RemoteFunctionCall("blackberry/invoke/invoke");
-remote.addParam("appType", "mailto:Support@SCrApps.org");
-remote.makeAsyncCall();
-}
View
48 bbUI-localStorage/cssjs/list.js
@@ -1,48 +0,0 @@
-//This code is a portion of the JavaScript used by RIM in their localStorage Kitchen Sink. Big thanks to RIM and @N_Adam_Stanley for their work!
- function displayStorage() {
- var num, out, i, key, value;
- if (window.localStorage) {
- num = window.localStorage.length;
- if (num > 0) {
- out = "<table width='900px' cellpadding='4px' border='1px'>";
- out += "<tr><td>Key</td><td>Value</td></tr>";
- for (i = 0; i < num; i = i + 1) {
- key = window.localStorage.key(i);
- value = window.localStorage.getItem(key);
- out += "<tr><td>" + key + "</td><td>" + value + "</td></td></tr>";
- }
- out += "</table>";
- setContent("localStorage", out);
- }
- }
-}
-
-function doPageLoad() {
- if (!window.localStorage) {
- prependContent("output", "window.localStorage API not supported<br/>");
- document.getElementById("localRadio").setAttribute("disabled", "true");
- }
- displayStorage();
-}
-
-function setContent(id, content) {
- var ele = document.getElementById(id);
- if (ele) {
- ele.innerHTML = content;
- }
-}
-
-function show(id) {
- var ele = document.getElementById(id);
- if (id) {
- ele.style.display = '';
- }
-}
-function hide(id) {
- var ele = document.getElementById(id);
- if (id) {
- ele.style.display = 'none';
- }
-}
-
-window.addEventListener("load", doPageLoad, false);
View
5 bbUI-localStorage/cssjs/test.html
@@ -1,5 +0,0 @@
-
-<body>
-<a onclick="redirect()">Test</a><br>
-<a onclick="localStorage.setItem('redirect', 'test')">Create redirect</a>
-</body>
View
31 bbUI-localStorage/custom/custom.html
@@ -1,31 +0,0 @@
-
-<div data-bb-type="screen" data-bb-effect="slide-left">
-
-
- <div data-bb-type="row">
- <div data-bb-type="round-panel">
- <div data-bb-type="label">Set any text as localStorage</div>
- Pretty straightforward; you choose a value, type something into the box below, and press the button.<br>
- A localStorage key is created for the value that's selected, and the text in the text box is entered as the key for it.
- <select data-bb-style="stretch" data-bb-label="Choose a value:" id="customDropDown">
- <option>Value 1</option>
- <option>Value 2</option>
- <option>Value 3</option>
- <option>Value 4</option>
- <option>Value 5</option>
- </select>
- </select>
-
- <div data-bb-type="row">
- <input type="text" onclick="this.value = '';" id="customEntry" value="Enter anything here..." />
- <div data-bb-type="button" onclick="localStorage.setItem(customDropDown.options[customDropDown.selectedIndex].value,customEntry.value);">Create a localStorage key of the chosen value and assign it the value entered into the text box</div>
- </div>
- </div>
- </div>
-
-<div data-bb-type="button" onclick="alert(customDropDown.options[customDropDown.selectedIndex].value + ' is set to ' + localStorage.getItem(customDropDown.options[customDropDown.selectedIndex].value));">Display localStorage value for the selected Value</div>
-
-
- <div data-bb-type="action-bar" data-bb-back-caption="Back"></div>
-
-</div>
View
BIN  bbUI-localStorage/images/background.jpg
Deleted file not rendered
View
BIN  bbUI-localStorage/images/blank.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/hippo.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icon.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/cog_dark_theme.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon1.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon10.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon11.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon12.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon13.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon14.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon15.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon16.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon17.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon18.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon19.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon2.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon20.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon21.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon22.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon23.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon24.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon25.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon3.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon4.png
Deleted file not rendered
View
BIN  bbUI-localStorage/images/icons/icon5.png
Diff not rendered
View
BIN  bbUI-localStorage/images/icons/icon6.png
Diff not rendered
View
BIN  bbUI-localStorage/images/icons/icon7.png
Diff not rendered
View
BIN  bbUI-localStorage/images/icons/icon8.png
Diff not rendered
View
BIN  bbUI-localStorage/images/icons/icon9.png
Diff not rendered
View
BIN  bbUI-localStorage/images/osbb.png
Diff not rendered
View
BIN  bbUI-localStorage/images/osbbx.png
Diff not rendered
View
BIN  bbUI-localStorage/images/osbbxheader.png
Diff not rendered
View
BIN  bbUI-localStorage/images/scrapps.png
Diff not rendered
View
BIN  bbUI-localStorage/images/splashscreen.jpg
Diff not rendered
View
BIN  bbUI-localStorage/images/success.png
Diff not rendered
View
34 bbUI-localStorage/index.html
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
-<html>
- <head>
- <title>bbUI localStorage Samples</title>
- <meta name="x-blackberry-defaultHoverEffect" content="false" />
- <meta name="viewport" content="initial-scale=1.0,width=device-width,user-scalable=no,target-densitydpi=device-dpi" />
- <link rel="stylesheet" type="text/css" href="cssjs/bbui-0.9.3.css"><link />
- <link rel="stylesheet" type="text/css" href="cssjs/custom.css"><link />
- <script type="text/javascript" src="cssjs/bbui-0.9.3.js"></script>
- <script type="text/javascript" src="cssjs/custom.js"></script>
- <script type="text/javascript">
- bb.init({bb10AccentColor: '#005566',
- bb10HighlightColor: '#005588',
- bb10ActionBarDark: true,
- bb10ControlsDark: true,
- bb10ListsDark: false,
- bb10ForPlayBook: true,
- onscreenready: function(element, id) {
- if (id == 'dataOnLoad') {
- dataOnLoad_initialLoad(element);
- }
- },
- ondomready: function(element, id) {
- if (id == 'dataOnTheFly') {
- dataOnTheFly_initialLoad(element);
- }
- onLoadFunctions();
- }
- });
-</script>
- </head>
- <body onload="welcome();">
- </body>
-</html>
View
20 bbUI-localStorage/intro/rimapi.html
@@ -1,20 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
-<!--
-* Copyright 2010-2011 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.
--->
-<div data-bb-type="screen" data-bb-title="Screen Display" data-bb-effect="slide-up" >
- <div><iframe src="https://developer.blackberry.com/html5/api/localStorage.html" width="100%" height="100%" frameborder="0"></iframe></div>
- <div data-bb-type="action-bar" data-bb-back-caption="Back"></div>
-</div>
View
228 bbUI-localStorage/intro/standard.js
@@ -1,228 +0,0 @@
-/*
- * Copyright 2011 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.
- */
-
-/**
- * Standard library of common functionality.
- */
-
-
-/**
- * Basic StringBuilder object:
- */
-function StringBuilder(value) {
- this.strings = [];
- this.append(value);
-}
-StringBuilder.prototype.append = function (value) {
- if (value) {
- this.strings.push(value);
- }
-};
-StringBuilder.prototype.clear = function () {
- this.strings.length = 0;
-};
-StringBuilder.prototype.toString = function () {
- return this.strings.join("");
-};
-
-
-/**
- * Debugger object - used to output messages to console window.
- */
- var debug = { logLevel : 0,
- info : 1,
- warning : 2,
- error : 3,
- exception : 4,
- numMsgs : 0,
- log : function (source, message, debugLevel) {
- if (debugLevel >= this.logLevel) {
- console.log("DEBUG [" + source + "] " + message);
- debug.numMsgs = debug.numMsgs + 1;
- }
- },
- size : function() {
- return debug.numMsgs;
- },
- clear : function() {
- debug.numMsgs = 0;
- }
- };
-
-
-
-/**
- * Methods to add content to page elements.
- */
-function setContent(id, content) {
- var ele = document.getElementById(id);
- if (ele) {
- ele.innerHTML = content;
- }
-}
-function appendContent(id, content) {
- var ele = document.getElementById(id);
- if (ele) {
-// ele.innerHTML = ele.innerHTML + content;
- ele.insertAdjacentHTML("beforeend", content); //try a faster construct instead of insertHTML
- }
-}
-function prependContent(id, content) {
- var ele = document.getElementById(id);
- if (ele) {
-// ele.innerHTML = content + ele.innerHTML;
- ele.insertAdjacentHTML("afterbegin", content); //try a faster construct instead of insertHTML
- }
-}
-
-
-function show(id) {
- var ele = document.getElementById(id);
- if (id) {
- ele.style.display = '';
- }
-}
-function hide(id) {
- var ele = document.getElementById(id);
- if (id) {
- ele.style.display = 'none';
- }
-}
-function setClassName(id, className) {
- var ele = document.getElementById(id);
- if (ele) {
- ele.className = className;
- }
-}
-
-
-function openUrl(url) {
- try
- {
- //Attempt to use the WebWorks Invoke API to open the URL in the native broser application:
- if ((window.blackberry !== undefined) && (blackberry.invoke !== undefined) && (blackberry.invoke.BrowserArguments !== undefined)) {
- var args = new blackberry.invoke.BrowserArguments(url);
- blackberry.invoke.invoke(blackberry.invoke.APP_BROWSER, args);
- return true;
- }
-
- //Otherwise open the URL in the current window (if done from a WebWorks app, this may prevent the user from returning to the current page as there is no native 'back' button)
- window.location = url;
- }
- catch(e) {
- debug.log("openUrl", e, debug.exception);
- }
-}
-
-
-function isBlackBerrySmartphone() {
- var ua, isMIDP, isWebKit, isBlackBerry;
- ua = navigator.userAgent.toLowerCase();
- isMIDP = (ua.indexOf("midp") >= 0);
- isWebKit = (ua.indexOf("webkit") >= 0);
- isBlackBerry = (ua.indexOf("blackberry") >= 0);
- return ((isMIDP || isWebKit) && isBlackBerry);
-}
-function isBlackBerryPlayBook() {
- var ua, isWebKit, isTablet;
- ua = navigator.userAgent.toLowerCase();
- isWebKit = (ua.indexOf("webkit") >= 0);
- isTablet = (ua.indexOf("playbook") >= 0);
- return (isWebKit && isTablet);
-}
-
-
-
-/**
- *
- */
-function setGlobalVariables(event) {
- debug.logLevel = debug.info;
- debug.log("setGlobalVariables", "Complete: " + event.type, debug.info);
-}
-
-function goBack() {
- window.location = "../index.html";
-}
-function goHome() {
- window.location = "../index.html";
-}
-
-/**
- * Adds a page header (breadcrumbs) and page footer (links) to a page.
- */
-function createPageHeader(event) {
- try
- {
- var header, backAnchor, homeAnchor;
-
- header = document.createElement("div");
- header.id = "pageHeader";
-
- backAnchor = document.createElement("a");
- backAnchor.addEventListener("click", goBack, false);
- backAnchor.className = "back";
- backAnchor.innerHTML = "back";
- header.appendChild(backAnchor);
-
- homeAnchor = document.createElement("a");
- homeAnchor.addEventListener("click", goHome, true);
- homeAnchor.className = "home";
- homeAnchor.innerHTML = "home";
- header.appendChild(homeAnchor);
-
- document.body.insertBefore(header, document.body.firstChild);
-
- debug.log("createPageHeader", "Complete: " + event.type, debug.info);
- }
- catch (e) {
- debug.log("createPageHeader", e, debug.exception);
- }
-}
-function createPageFooter(event) {
- try
- {
- var footer;
-
- footer = document.createElement("div");
- footer.id = "pageFooter";
- footer.innerHTML = "<a href='#'>Top</a> <div style='float:right'>by <a href='https://twitter.com/#!/n_adam_stanley' target='#new'>@n_adam_stanley</a></div>";
- document.body.appendChild(footer); //add footer as the last element in the body
-
- debug.log("createPageFooter", "Complete: " + event.type, debug.info);
- }
- catch (e) {
- debug.log("createPageFooter", e, debug.exception);
- }
-}
-
-/**
- * Cleans up any unmanaged resources.
- */
-function cleanupPageResources(event) {
- // Not implemented
- debug.log("cleanupPageResources", "Event: " + event.target + "," + event.type, debug.info);
-}
-
-
-/**
- * Add event listeners to the current page.
- */
-window.addEventListener("load", setGlobalVariables, false);
-window.addEventListener("load", createPageHeader, false);
-window.addEventListener("load", createPageFooter, false);
-window.addEventListener("unload", cleanupPageResources, false);
-
View
82 bbUI-localStorage/intro/storage.html
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<!--
- * Copyright 2011 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 http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="viewport" content="width=device-width,target-densitydpi=device-dpi,user-scalable=no,initial-scale=1.0">
- <link href="styles.css" rel="stylesheet" type="text/css">
- <script type="text/javascript" src="standard.js"></script>
-
- <title> HTML5 Storage </title>
- <script src="storage.js" type="text/JavaScript"></script>
-
-</head>
-<body>
-
- <h1>HTML5 Storage</h1>
-
- <h2>Demo</h2>
- <div class="demo">
- <p>Local and Session Storage can be used to storing key/value pairs in String format. Traditionally, cookies have been used for this purpose. However storage provides larger space for persisting client size data.</p>
- <table>
- <tr>
- <td> Key </td> <td> <input type="text" id="txtKey" value="Foo"/> </td> <td> <input type="radio" id="localRadio" name="storageType" checked/> Local Storage </td>
- </tr>
- <tr>
- <td> Value </td> <td> <input type="text" id="txtValue" value="Bar"/> </td> <td> <input type="radio" id="sessionRadio" name="storageType" /> Session Storage </td>
- </tr>
- <tr>
- <td> </td> <td> <button id="btnSave" onclick="addItem()">Add to Storage</button> </td> <td> </td>
- </tr>
- </table>
- <h3> Local Storage </h3>
- <div id="localStorage"></div>
- <button id="btnClearLocal" onclick="removeAllLocal()">Clear Local Storage</button>
-
- <h3> Session Storage </h3>
- <div id="sessionStorage"></div>
- <button id="btnClearSession" onclick="removeAllSession()">Clear Session Storage</button>
- </div>
-
- <div id="output"></div>
-
- <h2>Storage</h2>
- <div class="demo bottom">
- <p>
- <a href="storageloadtest.html">Storage Load Test</a>
- </p>
-
- <b>Summary</b>
-
- <b>Local Storage</b>
- <p>Data saved in local storage persists even after the user closes their browser. This data is stored internally using the file system and SQLite.</p>
- <p>There is no assigned expiry time for data saved in local storage.</p>
-
- <b>Session Storage</b>
- <p>Data saved in session storage persists only as long as the user keeps their browser open. When the browser is closed, all data is lost. This data is stored internally using memory.</p>
-
- <b>Data Size</b>
- <p>The BlackBerry browser assigns 5Mb of storage space for local storage per security origin. A QUOTA_EXCEEDED_ERR exception will be raised if this limit becomes exceeded .There is no way to increase this limit.</p>
- <p>The max size if data to be saved for each item/value pair appears to be defined by each user agent (Chrome appears to have a 47715 byte limit for either of the key or value fields).</p>
-
- <b>Clearing</b>
- <p> A web page can call the .clear() method on either the localStorage or sessionStorage object to wipe all items or the .removeItem(key) method to remove an individual item. End users can clear all storage data by clearing their cache with the "clear cookies" selection enabled.</p>
- </div>
-
-</body>
-</html>
View
207 bbUI-localStorage/intro/storage.js
@@ -1,207 +0,0 @@
-/*
- * Copyright 2011 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.
- */
-
- function displayStorage() {
- try {
- var num, out, i, key, value;
-
- if (window.localStorage) {
- num = window.localStorage.length;
- if (num > 0) {
- out = "<table width='50%' cellspacing='0' cellpadding='0' border='0'>";
- out += "<tr><th>Key</th><th>Value</th><th></th></tr>";
- for (i = 0; i < num; i = i + 1) {
- key = window.localStorage.key(i);
- value = window.localStorage.getItem(key);
- out += "<tr><td>" + key + "</td><td>" + value + "</td><td><button onclick=\"removeLocalItem('" + key + "')\">Delete</button></td></tr>";
- }
- out += "</table>";
- setContent("localStorage", out);
- show("btnClearLocal");
- appendContent("localStorage", "<p>" + num + " item(s) in local storage</p>");
- }
- else {
- setContent("localStorage", "<i>Empty</i>");
- hide("btnClearLocal");
- }
- }
- else {
- //Local storage is not supported - read the values from cookies instead?
- setContent("localStorage", "<i><b>window.localStorage</b> API is not supported.</i>");
- return false;
- }
-
-
- if (window.sessionStorage) {
- num = window.sessionStorage.length;
- if (num > 0) {
- out = "<table width='50%' cellspacing='0' cellpadding='0' border='0'>";
- out += "<tr><th>Key</th><th>Value</th><th></th></tr>";
- for (i = 0; i < num; i = i + 1) {
- key = window.sessionStorage.key(i);
- value = window.sessionStorage.getItem(key);
- out += "<tr><td>" + key + "</td><td>" + value + "</td><td><button onclick=\"removeSessionItem('" + key + "')\">Delete</button></td></tr>";
- }
- out += "</table>";
- setContent("sessionStorage", out);
- show("btnClearSession");
- appendContent("sessionStorage", "<p>" + num + " item(s) in session storage</p>");
- }
- else {
- setContent("sessionStorage", "<i>Empty</i>");
- hide("btnClearSession");
- }
- }
- else {
- setContent("localStorage", "<i><b>window.sessionStorage</b> API is not supported.</i>");
- return false;
- }
- }
- catch (e) {
- debug.log("displayStorage", e, debug.exception);
- }
-}
-
-function removeLocalItem(key) {
- try {
- localStorage.removeItem(key);
- displayStorage();
- }
- catch (e) {
- debug.log("removeLocalItem", e, debug.exception);
- }
-}
-function removeSessionItem(key) {
- try {
- sessionStorage.removeItem(key);
- displayStorage();
- }
- catch (e) {
- debug.log("removeSessionItem", e, debug.exception);
- }
-}
-
-function removeAllLocal() {
- try {
- prependContent("output", "Clearing local storage<br/>");
- if (window.localStorage) {
- localStorage.clear();
- }
- displayStorage();
- }
- catch (e) {
- debug.log("removeAllLocal", e, debug.exception);
- }
-}
-function removeAllSession() {
- try {
- prependContent("output", "Clearing session storage<br/>");
- if (window.sessionStorage) {
- sessionStorage.clear();
- }
- displayStorage();
- }
- catch (e) {
- debug.log("removeAllSession", e, debug.exception);
- }
-}
-
-
-
-function addItem() {
- var key = document.getElementById("txtKey").value;
- var value = document.getElementById("txtValue").value;
- var localRadio = document.getElementById("localRadio").checked;
-
- if ((key !== "") && (value !== "")) {
- if (localRadio) {
- if (window.localStorage) {
- window.localStorage.setItem(key, value);
- prependContent("output", "adding [" + key + "] to local storage.<br/>");
- } else {
- //Local storage is not supported - save the key/value in a cookie instead?
- alert("window.localStorage API is not supported.");
- return false;
- }
- }
- else {
- if (window.sessionStorage) {
- window.sessionStorage.setItem(key, value);
- prependContent("output", "adding [" + key + "] to session storage.<br/>");
- }
- else {
- alert("window.sessionStorage API is not supported.");
- }
- }
- displayStorage();
- }
- else {
- prependContent("output", "Blank key or value entered<br/>");
- }
-}
-
-/**
- * The storage event is fired on the same window object whenever stored data changes as a result of calling setItem(), removeItem() or clear().
- */
-function handleStorageEvent(storage) {
- try {
- var key = storage.key;
- var oldValue = storage.oldValue;
- var newValue = storage.newValue;
- var url = storage.url;
- prependContent("output", "handleStorageEvent: changing '" + oldValue + "' to '" + newValue + "' for key '" + key + "' (" + url + ")<br/>");
-
- debug.log("handleStorageEvent", "Complete", debug.info);
- }
- catch (e) {
- debug.log("handleStorageEvent", e, debug.exception);
- }
-}
-
-function doPageLoad() {
- try {
- if (!window.localStorage) {
- prependContent("output", "window.localStorage API not supported<br/>");
- document.getElementById("localRadio").setAttribute("disabled", "true");
- document.getElementById("btnClearLocal").setAttribute("disabled", "true");
- }
- hide("btnClearLocal");
-
- if (!window.sessionStorage) {
- prependContent("output", "window.sessionStorage API not supported<br/>");
- document.getElementById("sessionRadio").setAttribute("disabled", "true");
- document.getElementById("btnClearSession").setAttribute("disabled", "true");
- }
- hide("btnClearSession");
-
- displayStorage();
-
- //don't think this is doing anything
- if (window.addEventListener) {
- window.addEventListener("storage", handleStorageEvent, false);
- }
- else {
- window.attachEvent("onstorage", handleStorageEvent);
- }
-
- }
- catch (e) {
- debug.log("initPage", e.message, debug.exception);
- }
-}
-
-
-window.addEventListener("load", doPageLoad, false);
View
314 bbUI-localStorage/intro/styles.css
@@ -1,314 +0,0 @@
-/*
- * Copyright 2011 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.
- * Y