Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #16 from astanley/master

Adding BlackBerry Jam Asia folder
  • Loading branch information...
commit 0b8c14b499968fabaf93c70581f4c1988d9afb79 2 parents fbf3660 + 103abf2
Eduardo Pelegri-Llopart authored November 18, 2012

Showing 67 changed files with 15,317 additions and 0 deletions. Show diff stats Hide diff stats

  1. 39  2012-BlackBerryJam-Asia/JAM843/README.md
  2. BIN  2012-BlackBerryJam-Asia/JAM843/app/device/wic.bar
  3. BIN  2012-BlackBerryJam-Asia/JAM843/app/simulator/wic.bar
  4. 17  2012-BlackBerryJam-Asia/JAM843/load.bat
  5. 18  2012-BlackBerryJam-Asia/JAM843/load.sh
  6. 44  2012-BlackBerryJam-Asia/JAM843/source/advanced.html
  7. 42  2012-BlackBerryJam-Asia/JAM843/source/config.xml
  8. 47  2012-BlackBerryJam-Asia/JAM843/source/console.html
  9. 5,126  2012-BlackBerryJam-Asia/JAM843/source/css/bbui-0.9.4.css
  10. 36  2012-BlackBerryJam-Asia/JAM843/source/css/elements.css
  11. 46  2012-BlackBerryJam-Asia/JAM843/source/elements.html
  12. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/actionBar/cog_dark_theme.png
  13. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/background.png
  14. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/button/dropDownRight.png
  15. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/button/pillButtonRight.png
  16. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/hippo.png
  17. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icon.png
  18. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon1.png
  19. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon10.png
  20. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon11.png
  21. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon12.png
  22. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon13.png
  23. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon14.png
  24. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon15.png
  25. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon16.png
  26. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon17.png
  27. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon18.png
  28. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon19.png
  29. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon2.png
  30. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon20.png
  31. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon21.png
  32. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon22.png
  33. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon23.png
  34. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon24.png
  35. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon25.png
  36. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon3.png
  37. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon4.png
  38. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon5.png
  39. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon6.png
  40. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon7.png
  41. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon8.png
  42. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon9.png
  43. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/loading1.gif
  44. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/menu_icons/icon1.png
  45. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/menu_icons/icon2.png
  46. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/menu_icons/icon3.png
  47. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/tabs/address.png
  48. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/tabs/contact.png
  49. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/tabs/phone.png
  50. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/tabs/tab.png
  51. BIN  2012-BlackBerryJam-Asia/JAM843/source/images/tabs/tabRight.png
  52. 95  2012-BlackBerryJam-Asia/JAM843/source/index.html
  53. 68  2012-BlackBerryJam-Asia/JAM843/source/js/advanced.js
  54. 7,830  2012-BlackBerryJam-Asia/JAM843/source/js/bbui-0.9.4.js
  55. 52  2012-BlackBerryJam-Asia/JAM843/source/js/console.js
  56. 40  2012-BlackBerryJam-Asia/JAM843/source/js/elements.js
  57. 60  2012-BlackBerryJam-Asia/JAM843/source/js/profiles.js
  58. 213  2012-BlackBerryJam-Asia/JAM843/source/js/resources.js
  59. 60  2012-BlackBerryJam-Asia/JAM843/source/js/sources.js
  60. 1,258  2012-BlackBerryJam-Asia/JAM843/source/js/webworks.js
  61. 28  2012-BlackBerryJam-Asia/JAM843/source/main.html
  62. 36  2012-BlackBerryJam-Asia/JAM843/source/profiles.html
  63. 74  2012-BlackBerryJam-Asia/JAM843/source/resources.html
  64. BIN  2012-BlackBerryJam-Asia/JAM843/source/settings.png
  65. 37  2012-BlackBerryJam-Asia/JAM843/source/sources.html
  66. 43  2012-BlackBerryJam-Asia/JAM843/source/timelinenetwork.html
  67. 8  2012-BlackBerryJam-Asia/README.md
39  2012-BlackBerryJam-Asia/JAM843/README.md
Source Rendered
... ...
@@ -0,0 +1,39 @@
  1
+# JAM843 Hands-on Lab
  2
+
  3
+## Session
  4
+Optimization and Performance for Web Developers
  5
+
  6
+## Description
  7
+Get some kick out of your web apps. This lab will walk you through BlackBerry® 10 web application samples, showing tips and tricks for debugging and optimizing for performance. Follow along as you learn more about remote web inspector including such profiling and debugging features as: timeline, live editing and setting XHR breakpoints. This session is ideal for developers who want to refine their skills in app development to speed up development cycles and get the best performance from their web apps.
  8
+
  9
+## Key-Takeaways
  10
+Learn coding and debugging tips and tricks to improve performance in your web apps
  11
+
  12
+## Presented at
  13
+[BlackBerry Jam Asia](http://www.blackberryjamconference.com/asia) (Nov 29-30, 2012)
  14
+
  15
+## Created and Presented By
  16
+* [Adam Stanley](https://twitter.com/#!/n_adam_stanley)
  17
+* [Justin Lee](https://twitter.com/#!/triplez82)
  18
+
  19
+## Agenda and format (2 hrs)
  20
+All content for this presentation was made available as a PDF and **sample code** for attendees to download at the start of the session.
  21
+Attendees are encouraged to complete tasks in order but can do so at their own pace. Each task has beginner, intermediate and advanced materials.
  22
+Speakers are available to assist attendees understand the requirements of the lab and guide them through completing each step if they get stuck.
  23
+
  24
+## Lab Setup
  25
+This lab requires that attendees have the following development tools available:
  26
+* [Chrome desktop browser](https://www.google.com/chrome)
  27
+* [BlackBerry 10 WebWorks SDK](https://developer.blackberry.com/html5/download/)
  28
+* BlackBerry 10 Dev Alpha A or B, running OS version 10.0.9.388 or higher.
  29
+
  30
+Load the wic.bar sample, located within the /app folder, onto your BlackBerry 10 Dev Alpha device:
  31
+```
  32
+1) Enable development mode on your device (Settings --> Security --> Development Mode)
  33
+2) Connect your BlackBerry Dev Alpha device to your computer via USB
  34
+3) Clone or download this repo to a local folder such as C:\JAM843
  35
+4) Open a command prompt (Start --> Run ... --> cmd)
  36
+5) cd C:\JAM843
  37
+6) Load the app by running the following script:  load_win.bat <device IP address> <device password> (e.g. load_win.bat 169.254.0.1 pass)
  38
+7) Confirm the wic.bar app was successfully loaded.
  39
+```
BIN  2012-BlackBerryJam-Asia/JAM843/app/device/wic.bar
Binary file not shown
BIN  2012-BlackBerryJam-Asia/JAM843/app/simulator/wic.bar
Binary file not shown
17  2012-BlackBerryJam-Asia/JAM843/load.bat
... ...
@@ -0,0 +1,17 @@
  1
+@echo off
  2
+REM This script can be used to sideload a BAR file
  3
+REM Dependencies: BlackBerry 10 WebWorks SDK
  4
+REM   Change the SDK variable to match the path of the WebWorks SDK installed on your machine:
  5
+
  6
+SET SDK=C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.2.9\dependencies\tools\bin
  7
+
  8
+IF "%1" == "" GOTO MISSINGPARAMS
  9
+IF "%2" == "" GOTO MISSINGPARAMS
  10
+
  11
+"%SDK%\blackberry-deploy.bat" -package app\device\wic.bar -device %1 -installApp -password %2
  12
+GOTO END
  13
+
  14
+:MISSINGPARAMS
  15
+ECHO Missing parameters.  Correct usage: load_win.bat [device ip] [device password]
  16
+
  17
+:END
18  2012-BlackBerryJam-Asia/JAM843/load.sh
... ...
@@ -0,0 +1,18 @@
  1
+# This script can be used to sideload a BAR file
  2
+# Dependencies: BlackBerry 10 WebWorks SDK
  3
+#   Change the tools variable to match the path of the WebWorks SDK installed on your machine:
  4
+#
  5
+tools=/Developer/SDKs/Research\ In\ Motion/BlackBerry\ 10\ WebWorks\ SDK\ 1.0.2.9/dependencies/tools/bin
  6
+echo $tools
  7
+device=$1
  8
+password=$2
  9
+if [[ $device == '' ]]; then
  10
+    echo Missing parameters.  Correct usage: load.sh device-ip device-pwd
  11
+    exit
  12
+fi
  13
+if [[ $password == '' ]]; then
  14
+    echo Missing parameters.  Correct usage: load.sh device-ip device-pwd
  15
+    exit
  16
+fi
  17
+
  18
+blackberry-deploy -installApp -launchApp -package app/device/wic.bar -device $1  -password $2
44  2012-BlackBerryJam-Asia/JAM843/source/advanced.html
... ...
@@ -0,0 +1,44 @@
  1
+<!--
  2
+* Copyright 2012 Research In Motion Limited.
  3
+*
  4
+* Licensed under the Apache License, Version 2.0 (the "License");
  5
+* you may not use this file except in compliance with the License.
  6
+* You may obtain a copy of the License at
  7
+*
  8
+* http://www.apache.org/licenses/LICENSE-2.0
  9
+*
  10
+* Unless required by applicable law or agreed to in writing, software
  11
+* distributed under the License is distributed on an "AS IS" BASIS,
  12
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+* See the License for the specific language governing permissions and
  14
+* limitations under the License.
  15
+-->
  16
+<div data-bb-type="screen" data-bb-title="Advanced Features" data-bb-effect="fade">
  17
+	<div data-bb-type="title" data-bb-caption="Advanced Features" data-bb-back-caption="Back"></div>
  18
+
  19
+	<script id="advancedJS"  src="js/advanced.js"></script>
  20
+
  21
+	<div data-bb-type="round-panel">
  22
+
  23
+		<div data-bb-type="panel-header">Customize Your Web Inspector</div>
  24
+		<div>Define various options for Web Inspector as well as allows the developer to mimic the user agent of another browser. You can access the settings through the <img src="settings.png" /> icon in the bottom right corner of Web Inspector.</div>
  25
+		<br/>
  26
+		<div>Ripple will need to be reloaded if the User Agent changes. Try <b>window.location.reload()</b> from the console!</div>
  27
+		<div data-bb-type="row">
  28
+			<div data-bb-type="button" id="btnDisplayUserAgent" onclick="showUA();">Display User Agent</div>
  29
+			<div data-bb-type="label" id="useragent"></div>
  30
+		</div>
  31
+	</div>
  32
+
  33
+	<div data-bb-type="round-panel">
  34
+		<div data-bb-type="panel-header">Experiments</div>
  35
+		<div>Use experimental Web Inspector features to test advanced application features.  Example: override GPS values with your own input.</div>
  36
+		<br/>
  37
+		<div>Experiments must be enabled when first connecting to remote Web inspector. </div>
  38
+		<div data-bb-type="row">
  39
+			<div data-bb-type="button" id="btnDisplayGPS" onclick="showGPS()">Display GPS</div>
  40
+			<div data-bb-type="label" id="gps"></div>
  41
+		</div>
  42
+
  43
+	</div>
  44
+</div>
42  2012-BlackBerryJam-Asia/JAM843/source/config.xml
... ...
@@ -0,0 +1,42 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<!--
  3
+  Copyright 2012 Research In Motion Limited.
  4
+
  5
+  Licensed under the Apache License, Version 2.0 (the "License");
  6
+  you may not use this file except in compliance with the License.
  7
+  You may obtain a copy of the License at
  8
+ 
  9
+  http://www.apache.org/licenses/LICENSE-2.0
  10
+ 
  11
+  Unless required by applicable law or agreed to in writing, software
  12
+  distributed under the License is distributed on an "AS IS" BASIS,
  13
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14
+  See the License for the specific language governing permissions and
  15
+  limitations under the License.
  16
+-->
  17
+<widget xmlns="http://www.w3.org/ns/widgets"
  18
+        xmlns:rim="http://www.blackberry.com/ns/widgets"
  19
+        version="1.0.0.0" id="wic" xml:lang="en">
  20
+
  21
+	<name>WIC</name>
  22
+	<description>The Web inspector companion application. Used to demonstrate the various capabilities of BlackBerry Remote Web inspector.</description>
  23
+	<author>Erik Oros, Adam Stanley</author>
  24
+
  25
+	<content src="index.html"/>
  26
+	<icon src="images/icon.png"/>
  27
+
  28
+	<rim:navigation mode="focus" />
  29
+	<feature id="blackberry.app" />
  30
+	<feature id="blackberry.ui.dialog" />
  31
+
  32
+	<feature id="blackberry.invoke"/>
  33
+
  34
+	<access subdomains="true" uri="http://www.joelambert.co.uk"/>
  35
+	<access subdomains="true" uri="https://developer.blackberry.com"/>
  36
+	<access subdomains="true" uri="http://developer.blackberry.com"/>
  37
+
  38
+	<rim:permissions>
  39
+		<rim:permit>read_geolocation</rim:permit>
  40
+	</rim:permissions>
  41
+
  42
+</widget>
47  2012-BlackBerryJam-Asia/JAM843/source/console.html
... ...
@@ -0,0 +1,47 @@
  1
+<!--
  2
+* Copyright 2012 Research In Motion Limited.
  3
+*
  4
+* Licensed under the Apache License, Version 2.0 (the "License");
  5
+* you may not use this file except in compliance with the License.
  6
+* You may obtain a copy of the License at
  7
+*
  8
+* http://www.apache.org/licenses/LICENSE-2.0
  9
+*
  10
+* Unless required by applicable law or agreed to in writing, software
  11
+* distributed under the License is distributed on an "AS IS" BASIS,
  12
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+* See the License for the specific language governing permissions and
  14
+* limitations under the License.
  15
+-->
  16
+<div data-bb-type="screen" data-bb-title="Console" data-bb-effect="fade">
  17
+	<div data-bb-type="title" data-bb-caption="Console" data-bb-back-caption="Back"></div>
  18
+
  19
+	<script id="consoleJS"  src="js/console.js"></script>
  20
+
  21
+	<div data-bb-type="round-panel">
  22
+
  23
+		<div data-bb-type="panel-header">Custom Logging</div>
  24
+		<div>Log your own messages to the console via <b>console.log()</b>.</div>
  25
+		<div data-bb-type="button" id="btnLogMessage" onclick="logMsg()" >Log Message</div>
  26
+
  27
+		<div data-bb-type="panel-header">Warnings</div>
  28
+		<div>Log warning messages to the console via <b>console.warn()</b>.</div>
  29
+		<div data-bb-type="button" id="btnLogWarning" onclick="logWarning()" >Log Warning</div>
  30
+
  31
+		<div data-bb-type="panel-header">Error Logging</div>
  32
+		<div>Notice your page is not behaving correctly? First thing you should do is open the console and check to see if there are any runtime errors.</div>
  33
+		<div data-bb-type="button" id="btnLogError" onclick="generateError()" >blackberry.doesntexist.doSomething();</div>
  34
+	</div>
  35
+
  36
+	<div data-bb-type="round-panel">
  37
+		<div data-bb-type="panel-header">Open Browser</div>
  38
+		<div>Notice your page is not behaving correctly? First thing you should do is open the console and check to see if there are any runtime errors.</div>
  39
+		<div data-bb-type="button" id="btnOpenBrowser" onclick="openBrowserBad()">Open Browser</div>
  40
+	</div>
  41
+
  42
+	<div data-bb-type="round-panel">
  43
+		<div data-bb-type="panel-header">Command Line</div>
  44
+		<div>Need to reload the current page? Type <b>window.location.reload()</b> from the console command line. Executing <b>$0</b> in the console will give you reference to the currently selected element in the elements panel.</div>
  45
+	</div>
  46
+
  47
+</div>
5,126  2012-BlackBerryJam-Asia/JAM843/source/css/bbui-0.9.4.css
5126 additions, 0 deletions not shown
36  2012-BlackBerryJam-Asia/JAM843/source/css/elements.css
... ...
@@ -0,0 +1,36 @@
  1
+/*
  2
+* Copyright 2012 Research In Motion Limited.
  3
+*
  4
+* Licensed under the Apache License, Version 2.0 (the "License");
  5
+* you may not use this file except in compliance with the License.
  6
+* You may obtain a copy of the License at
  7
+*
  8
+* http://www.apache.org/licenses/LICENSE-2.0
  9
+*
  10
+* Unless required by applicable law or agreed to in writing, software
  11
+* distributed under the License is distributed on an "AS IS" BASIS,
  12
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+* See the License for the specific language governing permissions and
  14
+* limitations under the License.
  15
+*/
  16
+
  17
+h2 {
  18
+	font-weight: bold;
  19
+	margin: 0 0;
  20
+}
  21
+ul {
  22
+	list-style: none;
  23
+}
  24
+li {
  25
+	padding-bottom: 1em;
  26
+	float: left;
  27
+	width: 45%;
  28
+}
  29
+div {
  30
+	clear: both;
  31
+}
  32
+#layoutIssue {
  33
+	padding: 0.5em;
  34
+	margin: 0 5em 1em -5em;
  35
+	border: 3px dashed black;
  36
+}
46  2012-BlackBerryJam-Asia/JAM843/source/elements.html
... ...
@@ -0,0 +1,46 @@
  1
+<!--
  2
+* Copyright 2012 Research In Motion Limited.
  3
+*
  4
+* Licensed under the Apache License, Version 2.0 (the "License");
  5
+* you may not use this file except in compliance with the License.
  6
+* You may obtain a copy of the License at
  7
+*
  8
+* http://www.apache.org/licenses/LICENSE-2.0
  9
+*
  10
+* Unless required by applicable law or agreed to in writing, software
  11
+* distributed under the License is distributed on an "AS IS" BASIS,
  12
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+* See the License for the specific language governing permissions and
  14
+* limitations under the License.
  15
+-->
  16
+<div data-bb-type="screen" data-bb-title="Elements" data-bb-effect="fade">
  17
+	<div data-bb-type="title" data-bb-back-caption="Back"></div>
  18
+
  19
+	<script id="elementsJS"  src="js/elements.js"></script>
  20
+	<link   id="elementsCSS" href="css/elements.css" rel="stylesheet"/>
  21
+
  22
+	<div data-bb-type="round-panel">
  23
+		<div data-bb-type="panel-header">Live DOM editing</div>
  24
+		<div>Want to see what adding an extra character of text to an element does to the layout? Double click on target element and change its value.</div>
  25
+		<h2>Elements panel</h2>
  26
+		<ul>
  27
+			<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse non arcu ligula. Ut aliquet vestibulum enim.</li>
  28
+			<li>Duis iaculis nulla pulvinar dolor tempus a ullamcorper enim dapibus. Nam sem elit, vestibulum eget dignissim vel.</li>
  29
+		</ul>
  30
+	</div>
  31
+
  32
+	<div data-bb-type="round-panel">
  33
+		<div data-bb-type="panel-header">Event Listeners</div>
  34
+		<div>Button isn't working? Check to see if a button has an event handler correctly assigned to it.</div>
  35
+		<div data-bb-type="button" id="noaction">No Action</div>
  36
+		<div data-bb-type="button" id="cantaction" data-bb-disabled="true" onclick="alert('Clicked!');">Can't Action</div>
  37
+		<div data-bb-type="button" id="fullaction">Full Action</div>
  38
+	</div>
  39
+
  40
+	<div data-bb-type="round-panel">
  41
+		<div data-bb-type="panel-header">DOM Properties</div>
  42
+		<div>Element looking too wide or incorrect? Confirm the layout properties and dimension values.</div>
  43
+		<p id="layoutIssue"> Fusce mattis magna mattis sem faucibus gravida. In id felis in tellus vulputate tincidunt. Phasellus mauris metus, interdum vel tempor eget, pellentesque quis dolor. Phasellus quis dapibus lectus. </p>
  44
+	</div>
  45
+
  46
+</div>
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/actionBar/cog_dark_theme.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/background.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/button/dropDownRight.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/button/pillButtonRight.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/hippo.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icon.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon1.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon10.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon11.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon12.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon13.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon14.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon15.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon16.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon17.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon18.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon19.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon2.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon20.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon21.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon22.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon23.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon24.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon25.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon3.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon4.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon5.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon6.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon7.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon8.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/icons/icon9.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/loading1.gif
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/menu_icons/icon1.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/menu_icons/icon2.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/menu_icons/icon3.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/tabs/address.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/tabs/contact.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/tabs/phone.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/tabs/tab.png
BIN  2012-BlackBerryJam-Asia/JAM843/source/images/tabs/tabRight.png
95  2012-BlackBerryJam-Asia/JAM843/source/index.html
... ...
@@ -0,0 +1,95 @@
  1
+<!DOCTYPE html>
  2
+<!--
  3
+* Copyright 2012 Research In Motion Limited.
  4
+*
  5
+* Licensed under the Apache License, Version 2.0 (the "License");
  6
+* you may not use this file except in compliance with the License.
  7
+* You may obtain a copy of the License at
  8
+*
  9
+* http://www.apache.org/licenses/LICENSE-2.0
  10
+*
  11
+* Unless required by applicable law or agreed to in writing, software
  12
+* distributed under the License is distributed on an "AS IS" BASIS,
  13
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14
+* See the License for the specific language governing permissions and
  15
+* limitations under the License.
  16
+-->
  17
+<html>
  18
+	<head>
  19
+		<title>Web Inspector Companion</title>
  20
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  21
+		<link  rel="stylesheet" type="text/css" href="css/bbui-0.9.4.css"><link />
  22
+		<script type="text/javascript" src="js/bbui-0.9.4.js"></script>
  23
+		<script type="text/javascript" src="js/webworks.js"></script>
  24
+	</head>
  25
+	<body>
  26
+		<script type="text/javascript">
  27
+			/*global window, document, console, XMLHttpRequest, bb, onscreenready, ondomready */
  28
+
  29
+			function webworksready() {
  30
+				"use strict";
  31
+				try {
  32
+					console.log("webworksready.");
  33
+					document.removeEventListener("webworksready", webworksready, false);
  34
+
  35
+					bb.init({
  36
+						onscreenready: function (element, id) {
  37
+							try {
  38
+								console.log("onscreenready - routing id selected to page");
  39
+								if (id === "main") {
  40
+									element.querySelector("#elements").onclick = function () {
  41
+										bb.pushScreen('elements.html', 'elements');
  42
+									};
  43
+									element.querySelector("#resources").onclick = function () {
  44
+										bb.pushScreen('resources.html', 'resources');
  45
+									};
  46
+									element.querySelector("#timelinenetwork").onclick = function () {
  47
+										bb.pushScreen('timelinenetwork.html', 'timelinenetwork');
  48
+									};
  49
+									element.querySelector("#sources").onclick = function () {
  50
+										bb.pushScreen('sources.html', 'sources');
  51
+									};
  52
+									element.querySelector("#console").onclick = function () {
  53
+										bb.pushScreen('console.html', 'console');
  54
+									};
  55
+									element.querySelector("#profiles").onclick = function () {
  56
+										bb.pushScreen('profiles.html', 'profiles');
  57
+									};
  58
+									element.querySelector("#advanced").onclick = function () {
  59
+										bb.pushScreen('advanced.html', 'advanced');
  60
+									};
  61
+								}
  62
+							} catch (err) {
  63
+								console.log("onscreenready: " + err);
  64
+							}
  65
+						},
  66
+						ondomready: function (element, id) {
  67
+							try {
  68
+								console.log("ondomready");
  69
+								console.log(id);
  70
+							} catch (err) {
  71
+								console.log("ondomready: " + err);
  72
+							}
  73
+						}
  74
+					});
  75
+					bb.pushScreen('main.html', 'main');
  76
+				} catch (err) {
  77
+					console.log("webworksready: " + err);
  78
+				}
  79
+			}
  80
+
  81
+			function load() {
  82
+				"use strict";
  83
+				try {
  84
+					console.log("load");
  85
+					window.removeEventListener("load", load, false);
  86
+					document.addEventListener("webworksready", webworksready, false);
  87
+				} catch (err) {
  88
+					console.log("load: " + err);
  89
+				}
  90
+			}
  91
+
  92
+			window.addEventListener("load", load, false);
  93
+		</script>
  94
+	</body>
  95
+</html>
68  2012-BlackBerryJam-Asia/JAM843/source/js/advanced.js
... ...
@@ -0,0 +1,68 @@
  1
+/*
  2
+* Copyright 2012 Research In Motion Limited.
  3
+*
  4
+* Licensed under the Apache License, Version 2.0 (the "License");
  5
+* you may not use this file except in compliance with the License.
  6
+* You may obtain a copy of the License at
  7
+*
  8
+* http://www.apache.org/licenses/LICENSE-2.0
  9
+*
  10
+* Unless required by applicable law or agreed to in writing, software
  11
+* distributed under the License is distributed on an "AS IS" BASIS,
  12
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+* See the License for the specific language governing permissions and
  14
+* limitations under the License.
  15
+*/
  16
+
  17
+function showUA() {
  18
+	document.getElementById("useragent").innerHTML = navigator.userAgent;
  19
+}
  20
+
  21
+function showGPS() {
  22
+	navigator.geolocation.getCurrentPosition(geolocationSuccess, geolocationError);
  23
+}
  24
+
  25
+function geolocationSuccess(position) {
  26
+
  27
+		var lat, lon, alt, acc, altAcc, head, speed, sb;
  28
+
  29
+		lat = position.coords.latitude;
  30
+		lon = position.coords.longitude;
  31
+		alt = position.coords.altitude;
  32
+		acc = position.coords.accuracy;
  33
+		altAcc = position.coords.altitudeAccuracy;
  34
+		head = position.coords.heading;
  35
+		speed = position.coords.speed;
  36
+
  37
+		var sb = [];
  38
+
  39
+		sb.push("<h3>Current Location:</h3>");
  40
+		sb.push("<b>Latitude:</b> " + position.coords.latitude + "<br/>");
  41
+		sb.push("<b>Longitude:</b> " + position.coords.longitude + "<br/>");
  42
+		sb.push("<b>Altitude:</b> " + position.coords.altitude + "<br/>");
  43
+		sb.push("<b>Accuracy:</b> " + position.coords.accuracy + "<br/>");
  44
+		sb.push("<b>Altitude Accuracy:</b> " + position.coords.altitudeAccuracy + "<br/>");
  45
+		sb.push("<b>Heading:</b> " + position.coords.heading + "<br/>");
  46
+		sb.push("<b>Speed:</b> " + position.coords.speed + "<br/>");
  47
+
  48
+		document.getElementById("gps").innerHTML = sb.join("");
  49
+}
  50
+
  51
+function geolocationError(posError) {
  52
+	if (posError) {
  53
+		switch(posError.code) {
  54
+			case posError.TIMEOUT:
  55
+				console.warn("TIMEOUT: " + posError.message);
  56
+				break;
  57
+			case posError.PERMISSION_DENIED:
  58
+				console.warn("PERMISSION DENIED: " + posError.message);
  59
+				break;
  60
+			case posError.POSITION_UNAVAILABLE:
  61
+				console.warn("POSITION UNAVAILABLE: " + posError.message);
  62
+				break;
  63
+			default:
  64
+				console.warn("UNHANDLED MESSAGE CODE (" + posError.code + "): " + posError.message);
  65
+				break;
  66
+		}
  67
+	}
  68
+}
7,830  2012-BlackBerryJam-Asia/JAM843/source/js/bbui-0.9.4.js
7830 additions, 0 deletions not shown
52  2012-BlackBerryJam-Asia/JAM843/source/js/console.js
... ...
@@ -0,0 +1,52 @@
  1
+/*
  2
+* Copyright 2012 Research In Motion Limited.
  3
+*
  4
+* Licensed under the Apache License, Version 2.0 (the "License");
  5
+* you may not use this file except in compliance with the License.
  6
+* You may obtain a copy of the License at
  7
+*
  8
+* http://www.apache.org/licenses/LICENSE-2.0
  9
+*
  10
+* Unless required by applicable law or agreed to in writing, software
  11
+* distributed under the License is distributed on an "AS IS" BASIS,
  12
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+* See the License for the specific language governing permissions and
  14
+* limitations under the License.
  15
+*/
  16
+
  17
+/*global window, document, console, blackberry */
  18
+
  19
+function generateError() {
  20
+	"use strict";
  21
+	blackberry.doesntexist.doSomething();
  22
+}
  23
+
  24
+function logMsg() {
  25
+	"use strict";
  26
+	console.log("This is a message from your application.");
  27
+}
  28
+
  29
+function logWarning() {
  30
+	"use strict";
  31
+	console.warn("Danger, Will Robertson. Danger!");
  32
+}
  33
+
  34
+function onSuccess() {
  35
+	console.log("Invocation successful.")
  36
+}
  37
+function onError() {
  38
+	console.warn("Invocation failed.")
  39
+}
  40
+function openBrowserBad() {
  41
+	blackberry.wrong.api.name({
  42
+		target: "sys.browser",
  43
+		uri: "http://www.blackberry.com"
  44
+	}, onSuccess, onError);
  45
+}
  46
+
  47
+function openBrowser() {
  48
+	blackberry.invoke.invoke({
  49
+		target: "sys.browser",
  50
+		uri: "http://www.blackberry.com"
  51
+	}, onSuccess, onError);
  52
+}
40  2012-BlackBerryJam-Asia/JAM843/source/js/elements.js
... ...
@@ -0,0 +1,40 @@
  1
+/*
  2
+* Copyright 2012 Research In Motion Limited.
  3
+*
  4
+* Licensed under the Apache License, Version 2.0 (the "License");
  5
+* you may not use this file except in compliance with the License.
  6
+* You may obtain a copy of the License at
  7
+*
  8
+* http://www.apache.org/licenses/LICENSE-2.0
  9
+*
  10
+* Unless required by applicable law or agreed to in writing, software
  11
+* distributed under the License is distributed on an "AS IS" BASIS,
  12
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+* See the License for the specific language governing permissions and
  14
+* limitations under the License.
  15
+*/
  16
+
  17
+function clickHandler(e) {
  18
+	console.log("click");
  19
+	alert('Clicked!');
  20
+}
  21
+function touchStartHandler(e) {
  22
+	console.log("touch start");
  23
+}
  24
+function touchEndHandler(e) {
  25
+	console.log("touch end");
  26
+}
  27
+
  28
+function setButtonEvents() {
  29
+	var el = document.getElementById("fullaction");
  30
+	if (el) {
  31
+		console.log("setting button events for full action")
  32
+		el.addEventListener("click", clickHandler, false);
  33
+		el.addEventListener("touchstart", touchStartHandler, false);
  34
+		el.addEventListener("touchend", touchEndHandler, false);
  35
+	} else {
  36
+		console.log("fullaction element not found")
  37
+	}
  38
+}
  39
+
  40
+setTimeout(setButtonEvents, 200);
60  2012-BlackBerryJam-Asia/JAM843/source/js/profiles.js
... ...
@@ -0,0 +1,60 @@
  1
+/*
  2
+* Copyright 2012 Research In Motion Limited.
  3
+*
  4
+* Licensed under the Apache License, Version 2.0 (the "License");
  5
+* you may not use this file except in compliance with the License.
  6
+* You may obtain a copy of the License at
  7
+*
  8
+* http://www.apache.org/licenses/LICENSE-2.0
  9
+*
  10
+* Unless required by applicable law or agreed to in writing, software
  11
+* distributed under the License is distributed on an "AS IS" BASIS,
  12
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+* See the License for the specific language governing permissions and
  14
+* limitations under the License.
  15
+*/
  16
+
  17
+/*global window, document, console, alert, setTimeout */
  18
+
  19
+var running = true;
  20
+
  21
+function updatePhysics() {
  22
+	"use strict";
  23
+	var i = 0;
  24
+	for (i = 0; i < 1000; ++i) {
  25
+	}
  26
+}
  27
+
  28
+function updateGraphics() {
  29
+	"use strict";
  30
+	var i = 0;
  31
+	for (i = 0; i < 10000; ++i) {
  32
+	}
  33
+}
  34
+
  35
+function renderScene() {
  36
+	"use strict";
  37
+	var i = 0;
  38
+	for (i = 0; i < 100; ++i) {
  39
+	}
  40
+}
  41
+
  42
+function runSimulation() {
  43
+	"use strict";
  44
+
  45
+	var start = (new Date()).getTime();
  46
+	var now = (new Date()).getTime()
  47
+	while (now - start < 5000) {
  48
+		updatePhysics();
  49
+		updateGraphics();
  50
+		renderScene();
  51
+		now = (new Date()).getTime()
  52
+	}
  53
+	alert("Complete!");
  54
+}
  55
+
  56
+function autoProfile() {
  57
+	console.profile("runSimulation");
  58
+	runSimulation();
  59
+	console.profileEnd();
  60
+}
213  2012-BlackBerryJam-Asia/JAM843/source/js/resources.js
... ...
@@ -0,0 +1,213 @@
  1
+/*
  2
+* Copyright 2012 Research In Motion Limited.
  3
+*
  4
+* Licensed under the Apache License, Version 2.0 (the "License");
  5
+* you may not use this file except in compliance with the License.
  6
+* You may obtain a copy of the License at
  7
+*
  8
+* http://www.apache.org/licenses/LICENSE-2.0
  9
+*
  10
+* Unless required by applicable law or agreed to in writing, software
  11
+* distributed under the License is distributed on an "AS IS" BASIS,
  12
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+* See the License for the specific language governing permissions and
  14
+* limitations under the License.
  15
+*/
  16
+
  17
+/*global window, document, console, mynamespace */
  18
+
  19
+
  20
+/* Web DB */
  21
+var App = {};
  22
+function onDBCreate(database) {
  23
+	App.db = database;
  24
+	database.transaction(
  25
+		function (tx) {
  26
+			tx.executeSql(
  27
+				'CREATE TABLE my_custom_table (uid int unique, name text, created text);',
  28
+				[],
  29
+				function (tx, res) {
  30
+					console.log("table: OK!");
  31
+				},
  32
+				function (tx, err) {
  33
+					console.log("table (" + err.code + "): " + err.message);
  34
+				}
  35
+			);
  36
+		}
  37
+	);
  38
+}
  39
+function initWebDB() {
  40
+	App.db = window.openDatabase('MyDatabase', '1.0', 'Description.', 5 * 1024 * 1024, onDBCreate);
  41
+}
  42
+function displayWebDBCount() {
  43
+	App.db.transaction(
  44
+		function (tx) {
  45
+			tx.executeSql(
  46
+				'SELECT uid, name, created FROM my_custom_table;',
  47
+				[],
  48
+				function (tx, res) {
  49
+					console.log("SELECT: OK!");
  50
+					var num = res.rows.length;
  51
+					var message = "There are " + num + " item(s) saved in Web DB.";
  52
+					document.getElementById("webDBCount").innerHTML = message;
  53
+				},
  54
+				function (tx, err) {
  55
+					console.log("SELECT (" + err.code + "): " + err.message);
  56
+				}
  57
+			);
  58
+		}
  59
+	);
  60
+
  61
+}
  62
+function clearWebDB() {
  63
+	App.db.transaction(
  64
+		function (tx) {
  65
+			tx.executeSql(
  66
+				'DELETE FROM my_custom_table;',
  67
+				[],
  68
+				function (tx, res) {
  69
+					console.log("DELETE: OK!");
  70
+				},
  71
+				function (tx, err) {
  72
+					console.log("DELETE (" + err.code + "): " + err.message);
  73
+				}
  74
+			);
  75
+		}
  76
+	);
  77
+
  78
+	displayWebDBCount();
  79
+}
  80
+function addWebDBItem() {
  81
+	var key = (new Date()).getTime();
  82
+	var val = document.getElementById("txtWebDBValue").value;
  83
+
  84
+	App.db.transaction(
  85
+		function (tx) {
  86
+			tx.executeSql(
  87
+				'INSERT INTO my_custom_table (uid, name, created) VALUES(' + key + ', "' + val + '", "' + new Date().toString() + '");',
  88
+				[],
  89
+				function (tx, res) {
  90
+					console.log("table: OK!");
  91
+				},
  92
+				function (tx, err) {
  93
+					console.log("table (" + err.code + "): " + err.message);
  94
+				}
  95
+			);
  96
+		}
  97
+	);
  98
+	displayWebDBCount();
  99
+}
  100
+
  101
+
  102
+ /* Local Storage */
  103
+function displayLocalStorageCount() {
  104
+	var num	= window.localStorage.length;
  105
+	var message = "There are " + num + " item(s) saved in Local Storage.";
  106
+	document.getElementById("localStorageCount").innerHTML = message;
  107
+}
  108
+function clearLocalStorage() {
  109
+	localStorage.clear();
  110
+	displayLocalStorageCount();
  111
+}
  112
+function addLocalStorageItem() {
  113
+	var key = (new Date()).getTime();
  114
+	var val = document.getElementById("txtLocalStorageValue").value;
  115
+	window.localStorage.setItem(key, val);
  116
+	displayLocalStorageCount();
  117
+}
  118
+
  119
+/* Cookies */
  120
+function displayCookiesCount() {
  121
+	var cookies = document.cookie.split(";");
  122
+	var num = ((document.cookie == "") ? 0 : cookies.length);
  123
+	var message = "There are " + num + " cookie(s).";
  124
+	document.getElementById("cookieCount").innerHTML = message;
  125
+}
  126
+function clearCookies() {
  127
+	if (document.cookie != "") {
  128
+		var cookies = document.cookie.split(";");
  129
+		for (var i = 0; i < cookies.length; i++) {
  130
+			console.log("erasing " + cookies[i].split("=")[0] + " cookies");
  131
+
  132
+			var expiry = new Date();
  133
+			expiry.setDate(expiry.getDate() - 1);
  134
+			setCookie(cookies[i].split("=")[0], cookies[i].split("=")[1], expiry.toUTCString());
  135
+		}
  136
+	}
  137
+  	displayCookiesCount();
  138
+}
  139
+function setCookie(name, val, expires) {
  140
+	document.cookie = name + "=" + val + "; expires=" + expires;
  141
+}
  142
+function addCookie() {
  143
+	var key = (new Date()).getTime();
  144
+	var val = document.getElementById("txtCookieValue").value;
  145
+	var expiry = new Date();
  146
+	expiry.setDate(expiry.getDate() + 1);
  147
+
  148
+	setCookie(key, escape(val), expiry.toUTCString());
  149
+	displayCookiesCount();
  150
+}
  151
+
  152
+
  153
+function initResources() {
  154
+	initWebDB();
  155
+	displayWebDBCount();
  156
+	displayLocalStorageCount();
  157
+	displayCookiesCount();
  158
+}
  159
+setTimeout(initResources, 200);
  160
+
  161
+
  162
+
  163
+/*
  164
+//Create a namespace to hold our database variable
  165
+if (typeof mynamespace === 'undefined') {
  166
+    mynamespace = {};
  167
+}
  168
+
  169
+function insertIntoDB() {
  170
+	"use strict";
  171
+	mynamespace.db.transaction(
  172
+		function (tx) {
  173
+			tx.executeSql(
  174
+				'INSERT INTO my_custom_table (key, name) VALUES(' + new Date().getTime() + ', "Database Tester");',
  175
+				[],
  176
+				function (tx, res) {
  177
+					console.log("table: OK!");
  178
+				},
  179
+				function (tx, err) {
  180
+					console.log("table (" + err.code + "): " + err.message);
  181
+				}
  182
+			);
  183
+		}
  184
+	);
  185
+}
  186
+
  187
+(function () {
  188
+	"use strict";
  189
+    function onDBCreate(database) {
  190
+        mynamespace.db = database;
  191
+        database.transaction(
  192
+            function (tx) {
  193
+				tx.executeSql(
  194
+					'CREATE TABLE my_custom_table (key int unique, name text);',
  195
+					[],
  196
+					function (tx, res) {
  197
+						console.log("table: OK!");
  198
+					},
  199
+					function (tx, err) {
  200
+						console.log("table (" + err.code + "): " + err.message);
  201
+					}
  202
+				);
  203
+            }
  204
+        );
  205
+    }
  206
+
  207
+    if (window.openDatabase) {
  208
+        mynamespace.db = window.openDatabase('MyDatabase', '1.0', 'Database description.', 5 * 1024 * 1024, onDBCreate);
  209
+    } else {
  210
+        console.log("This device does not have HTML5 Database support");
  211
+    }
  212
+}());
  213
+*/
60  2012-BlackBerryJam-Asia/JAM843/source/js/sources.js
... ...
@@ -0,0 +1,60 @@
  1
+/*
  2
+* Copyright 2012 Research In Motion Limited.
  3
+*
  4
+* Licensed under the Apache License, Version 2.0 (the "License");
  5
+* you may not use this file except in compliance with the License.
  6
+* You may obtain a copy of the License at
  7
+*
  8
+* http://www.apache.org/licenses/LICENSE-2.0
  9
+*
  10
+* Unless required by applicable law or agreed to in writing, software
  11
+* distributed under the License is distributed on an "AS IS" BASIS,
  12
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+* See the License for the specific language governing permissions and
  14
+* limitations under the License.
  15
+*/
  16
+
  17
+/*global window, document, console */
  18
+
  19
+/**
  20
+ * This sample will run through the numbers from 2 to 50 and check whether each number is divisible by a value between 2 and 9.
  21
+ *
  22
+ * We use the variable log to keep track of the divisible numbers. For instance, the number 2 is divisible by 2, 3 is divisible by 3, and 4 is divisible by 2.
  23
+ * For those three numbers, the sequence will then be:
  24
+ * 232
  25
+ *
  26
+ * For any numbers that we encounter which are not divisible by 2 to 9, we record a # symbol.
  27
+ *
  28
+ * This can be used to help outline setting break points and stepping through an application.
  29
+ */
  30
+
  31
+function seeMeGo() {
  32
+	"use strict";
  33
+	var log = "", i = 0;
  34
+
  35
+	//50 iterations of the Mod operator
  36
+	for (i = 2; i < 50; ++i) {
  37
+
  38
+		if (i % 2 === 0) {
  39
+			log = log + "2";
  40
+		} else if (i % 3 === 0) {
  41
+			log = log + "3";
  42
+		} else if (i % 4 === 0) {
  43
+			log = log + "4";
  44
+		} else if (i % 5 === 0) {
  45
+			log = log + "5";
  46
+		} else if (i % 6 === 0) {
  47
+			log = log + "6";
  48
+		} else if (i % 7 === 0) {
  49
+			log = log + "7";
  50
+		} else if (i % 8 === 0) {
  51
+			log = log + "8";
  52
+		} else if (i % 9 === 0) {
  53
+			log = log + "9";
  54
+		} else {
  55
+			log = log + "#";
  56
+		}
  57
+
  58
+	}
  59
+	alert(log);
  60
+}
1,258  2012-BlackBerryJam-Asia/JAM843/source/js/webworks.js
... ...
@@ -0,0 +1,1258 @@
  1
+/*
  2
+ *  Copyright 2012 Research In Motion Limited.
  3
+ *
  4
+ * Licensed under the Apache License, Version 2.0 (the "License");
  5
+ * you may not use this file except in compliance with the License.
  6
+ * You may obtain a copy of the License at
  7
+ *
  8
+ * http://www.apache.org/licenses/LICENSE-2.0
  9
+ *
  10
+ * Unless required by applicable law or agreed to in writing, software
  11
+ * distributed under the License is distributed on an "AS IS" BASIS,
  12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13
+ * See the License for the specific language governing permissions and
  14
+ * limitations under the License.
  15
+ */
  16
+
  17
+(function () { 
  18
+/*
  19
+ *  Copyright 2012 Research In Motion Limited.
  20
+ *
  21
+ * Licensed under the Apache License, Version 2.0 (the "License");
  22
+ * you may not use this file except in compliance with the License.
  23
+ * You may obtain a copy of the License at
  24
+ *
  25
+ * http://www.apache.org/licenses/LICENSE-2.0
  26
+ *
  27
+ * Unless required by applicable law or agreed to in writing, software
  28
+ * distributed under the License is distributed on an "AS IS" BASIS,
  29
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  30
+ * See the License for the specific language governing permissions and
  31
+ * limitations under the License.
  32
+ */
  33
+
  34
+var define,
  35
+    require;
  36
+
  37
+(function () {
  38
+    var unpreparedModules = {},
  39</