Permalink
Browse files

Initial Weather source commit

  • Loading branch information...
1 parent 4844e8a commit 27f0df90be5f5a784e9607af448830462e618abb Jeffrey Heifetz committed Oct 31, 2011
Showing with 8,487 additions and 0 deletions.
  1. +41 −0 Weather/config.xml
  2. BIN Weather/ext/uiexamples.jar
  3. BIN Weather/images/LBAI53_Cloudy.png
  4. BIN Weather/images/LBAI53_CloudyWindy.png
  5. BIN Weather/images/LBAI53_PartlyCloudy.png
  6. BIN Weather/images/LBAI53_PartlyCloudyWindy.png
  7. BIN Weather/images/LBAI53_Rain.png
  8. BIN Weather/images/LBAI53_RainWindy.png
  9. BIN Weather/images/LBAI53_Snow.png
  10. BIN Weather/images/LBAI53_SnowWindy.png
  11. BIN Weather/images/LBAI53_Sunny.png
  12. BIN Weather/images/LBAI53_SunnyWindy.png
  13. BIN Weather/images/LBAI53_Thunderstorms.png
  14. BIN Weather/images/LBAI53_ThunderstormsWindy.png
  15. BIN Weather/images/LBAI53_Tornado.png
  16. BIN Weather/images/LBWI100_ClearWindy_Night.png
  17. BIN Weather/images/LBWI100_Clear_Night.png
  18. BIN Weather/images/LBWI100_Cloudy.png
  19. BIN Weather/images/LBWI100_Cloudy_Night.png
  20. BIN Weather/images/LBWI100_FreezingRain.png
  21. BIN Weather/images/LBWI100_FreezingRain_Night.png
  22. BIN Weather/images/LBWI100_PartlyCloudy.png
  23. BIN Weather/images/LBWI100_PartlyCloudy_Night.png
  24. BIN Weather/images/LBWI100_Rain.png
  25. BIN Weather/images/LBWI100_Rain_Night.png
  26. BIN Weather/images/LBWI100_Snow.png
  27. BIN Weather/images/LBWI100_Snow_Night.png
  28. BIN Weather/images/LBWI100_Sunny.png
  29. BIN Weather/images/LBWI100_SunnyWindy.png
  30. BIN Weather/images/LBWI100_Thunderstorms.png
  31. BIN Weather/images/LBWI100_Thunderstorms_Night.png
  32. BIN Weather/images/LBWI100_Tornado.png
  33. BIN Weather/images/Loading.gif
  34. BIN Weather/images/NextPreviousBar.png
  35. BIN Weather/images/RIM_WW_7day_LightButton_Middle.png
  36. BIN Weather/images/RIM_WW_Arrow_Left.png
  37. BIN Weather/images/RIM_WW_Arrow_Right.png
  38. BIN Weather/images/RIM_WW_LightButton_Middle_120px.png
  39. BIN Weather/images/RIM_WW_LightButton_Middle_60px.png
  40. BIN Weather/images/RIM_WW_LightButton_Middle_Focus_60px.png
  41. BIN Weather/images/WW_Cityscape_add_EPR.png
  42. BIN Weather/images/WW_Interface_DarkGradient.png
  43. BIN Weather/images/btnRight.png
  44. BIN Weather/images/button.png
  45. BIN Weather/images/dropDownRight.png
  46. BIN Weather/images/no.png
  47. BIN Weather/images/noSel.png
  48. BIN Weather/images/pillButtonRight.png
  49. BIN Weather/images/yes.png
  50. BIN Weather/images/yesSel.png
  51. +225 −0 Weather/index.html
  52. +3,712 −0 Weather/javascript/Weather60.js
  53. +809 −0 Weather/javascript/WeatherDatabase60.js
  54. +69 −0 Weather/javascript/common.js
  55. +1,107 −0 Weather/javascript/html5_init.js
  56. +2,191 −0 Weather/javascript/stationsList.js
  57. +333 −0 Weather/stylesheet/Weather.css
View
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.2">
+ <name>Weather</name>
+ <description>Weather Widget</description>
+ <author rim:copyright="Research In Motion">Research In Motion</author>
+ <feature id="blackberry.io.file" required="true" version="1.0.0.0"/>
+ <feature id="blackberry.io.dir" required="true" version="1.0.0.0"/>
+ <feature id="blackberry.ui.menu" required="true" version="1.0.0.0"/>
+ <feature id="blackberry.system" required="true" version="1.0.0.0"/>
+ <feature id="blackberry.utils" required="true" version="1.0.0.0"/>
+ <feature id="blackberry.ui.dialog" required="true" version="1.0.0.0"/>
+ <feature id="blackberry.ui.menu" required="true" version="1.0.0.0"/>
+ <feature id="blackberry.app" required="true" version="1.0.0.0"/>
+ <feature id="blackberry.app.event" required="true" version="1.0.0.0"/>
+ <feature id="blackberry.invoke.MessageArguments" required="true" version="1.0.0.0"/>
+ <feature id="blackberry.invoke" required="true" version="1.0.0.0"/>
+ <feature id="blackberry.message" required="true" version="1.0.0.0"/>
+ <feature id="blackberry.invoke.BrowserArguments" required="true" version="1.0.0.0"/>
+ <feature id="sample.ui" required="false" version="1.0.0"/>
+ <access subdomains="true" uri="*"/>
+ <access subdomains="true" uri="http://code.google.com"/>
+ <icon rim:hover="false" src="images/LBAI53_Sunny.png"/>
+ <content src="index.html"/>
+ <rim:loadingScreen backgroundColor="#808080" backgroundImage="images/WW_Interface_DarkGradient.png" foregroundImage="images/Loading.gif" onFirstLaunch="true"/>
+ <rim:navigation mode="focus"/>
+</widget>
View
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
View
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
@@ -0,0 +1,225 @@
+<html>
+<head>
+<meta name="viewport" content="width=device-width; height=device-height; user-scalable=0; initial-scale=1.0; maximum-scale=1.0"/>
+<meta name="HandheldFriendly" content="True" />
+<meta name="x-blackberry-defaultHoverEffect" content="true" />
+<title>Blackberry Weather Widget</title>
+<link type="text/css" rel="stylesheet" href="stylesheet/Weather.css" />
+<script type="text/javascript" src="javascript/html5_init.js" id="html5_init"></script>
+<script type="text/javascript" src="javascript/stationsList.js"></script>
+<script type="text/javascript" src="javascript/Weather60.js"></script>
+<script type="text/javascript" src="javascript/WeatherDatabase60.js"></script>
+<script type="text/javascript" src="javascript/common.js"></script>
+</head>
+<body id="mainbody" onload="loadConfig();" marginwidth="3" >
+<div id="divMain">
+<div id="progressBar">
+ <br/>
+ <div id="progressBarBackground"><div id="progress"></div></div>
+ <br/>
+</div>
+<div id="divMenu" style="display:none;" class="buttonPanel" align="center">
+<div id="dummyDivMenu"></div>
+ <div id="buttons" class="buttonPanel">
+ <a id="btnToday" class="buttonLeft" onmouseover="doHover('btnToday')" onclick="activateTodayTab();" x-blackberry-focusable="true" ><span>&nbsp;Current&nbsp;</span></a>
+ <a id="btnShortTerm" class="buttonMiddle" onmouseover="doHover('btnShortTerm')" onclick="activateShortTermTab();" x-blackberry-focusable="true" ><span>48 Hours</span></a>
+ <a id="btn7Days" class="buttonRight" onmouseover="doHover('btn7Days')" onclick="activate7DaysTab();" x-blackberry-focusable="true" ><span>&nbsp;7 Days&nbsp;</span></a>
+ </div>
+ <table cellpadding="0" cellspacing="3" border="0" width="100%" align="center" style="clear:both;">
+ <tr>
+ <td valign='top'>
+ <table width='100%' cellpadding='0' cellspacing='0' border='0' class='csslocationbg'>
+ <tr>
+ <td>
+ <input type=hidden id='currentCityRowId' name='currentCityRowId'></input>
+ <img id='imgPreviousCity' onmouseover="doHover('imgPreviousCity')" src='./images/RIM_WW_Arrow_Left.png' onclick='swipeLeft();' style="display:none;" x-blackberry-focusable="true">
+ </td>
+ <td align='center'><span id = 'lblLocation' class='csslocationtext'></span></td>
+ <td align='right'><img id = 'imgNextCity' onmouseover="doHover('imgNextCity')" src='./images/RIM_WW_Arrow_Right.png' onclick='swipeRight();' style="display:none;" x-blackberry-focusable="true"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td align='center'><span id = 'lblLastUpdated' class='smalltext'></span></td>
+ </tr>
+ <tr>
+ <td class='smallrowspace' width='100%'><hr noshade size='1px' width='100%' style='color: white;' ></hr></td>
+ </tr>
+ </table>
+
+</div>
+<div id="divToday" style="display:none;">
+<div id="dummyDivToday"></div>
+</div>
+<div id="divSevenDays" style="display:none;">
+</div>
+<div id="divShortTerm" style="display:none;">
+</div>
+<div id="divSettings" style="display:none;">
+<div id="dummyDivSettings"></div>
+<table id='tblSettings' cellpadding="2" cellspacing="5" border="0" width="100%">
+ <tr>
+ <td valign='top'>
+ <table width='100%' cellpadding='0' cellspacing='0' border='0' class='csslocationbg'>
+ <tr>
+ <td align='center'><span class='csslocationtext'>Settings</span></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td class='settingsunitsrowbg'>
+ <table id='tblmeasureUnit' cellpadding="2" cellspacing="3" border="0" width="100%">
+ <tr>
+ <td class="settinglabels">&nbsp;Unit of Measure</td>
+ <td align="right">
+ <span style="text-align:left; float:right;">
+ <div style="padding:8px 0; text-align:left;" onclick="selectButton(this);" onmouseover="resetImages();"><input id="Fahrenheit" type=radio name=units value="Fahrenheit"/>Fahrenheit</div>
+ <div style="padding:8px 0; text-align:left;" onclick="selectButton(this);" onmouseover="resetImages();"><input id="Celsius" type=radio name=units value="Celsius"/>Celsius</div>
+ </span>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td class='rowbg7days'>
+ <table cellpadding="2" cellspacing="3" border="0" width="100%">
+ <tr>
+
+ <td class="settinglabels">&nbsp;Refresh Every</td>
+ <td align="right"><a id="refreshRate" class="dropDownButton" onclick="openRefreshRateDialog()" onmousedown="ddlDoSelect('refreshRate');" onmouseover="ddlDoSelect('refreshRate')" x-blackberry-focusable="true" ><span id='selectedRefreshRate'></span></a></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td class='rowbg7days'>
+ <table cellpadding="2" cellspacing="3" border="0" width="100%">
+ <tr>
+ <td class="settinglabels">&nbsp;Alert on Severe Weather</td>
+ <td align="right"><img id="severeweather" onmouseover="doYesNoSelect('severeweather')" onclick="doYesNoClick('severeweather')" x-blackberry-focusable="true"/></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td class='rowbg7days'>
+ <table cellpadding="2" cellspacing="3" border="0" width="100%">
+ <tr>
+ <td width="80%" class="settinglabels">&nbsp;Use My Location</td>
+ <td width="20%" align="right"><img id="UseMyLocation" onmouseover="doYesNoSelect('UseMyLocation')" onclick="doYesNoClick('UseMyLocation')" x-blackberry-focusable="true"/></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td align='center'>
+ <table cellpadding="2" cellspacing="3" border="0" width="100%" align='center'>
+ <tr>
+ <td align="center"><a id="btnSave" class="buttonFull" onmouseover="doSelect('btnSave')" onclick="miSaveSettings()" x-blackberry-focusable="true" ><span>&nbsp;Save&nbsp;</span></a></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+</div>
+<div id="divManageLocation" style="display:none;">
+<div id="dummyDivManageLocation"></div>
+<table id='tblManageLocation' cellpadding="2" cellspacing="5" border="0" width="100%">
+ <tr>
+ <td valign='top'>
+ <table width='100%' cellpadding='0' cellspacing='0' border='0' class='csslocationbg'>
+ <tr>
+ <td align='center'><span class='csslocationtext'>Manage Locations</span></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td width='100%'>
+ <table id="locationlist" cellpadding="0" cellspacing="4" border="0" width="100%">
+ <tr class='SelectedCityListRow' id='addLocationTR' onclick="miActivateAddLocationTab();" onmouseover="setSelectedIndex(null);" x-blackberry-focusable="true">
+ <td>
+ <table cellpadding="0" cellspacing="0" border="0" width="100%">
+ <tr>
+ <td width='10%' class='WICityListRow'><img src = './images/WW_Cityscape_add_EPR.png'></img></td>
+ <td width='90%'>
+ <table class="CityListRowCityName">
+ <tr><td align='center'><span>&nbsp;Add Location&nbsp;</span></td></tr>
+ <tr><td class="CityListRowTemp">&nbsp;</td></tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr class='CityListRow' id='cityTemplate' rowId='Template' cityName='Template' onclick="navigateToCity(this);" onmouseover="setSelectedIndex(this);" x-blackberry-focusable="true">
+ <td>
+ <table border="0" width="100%">
+ <tr>
+ <td width='2%' class='WICityListRow' align="center" valign="middle"><img class='WICityListRow' src='images/WW_Cityscape_add_EPR.png'></img></td>
+ <td width='98%'>
+ <table class="CityListRowCityName">
+ <tr><td><span class='CityListRowCityName'>Template, USA</span></td></tr>
+ <tr><td class="CityListRowTemp"><span class='CityListRowTemp'>&nbsp;</span></td></tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+</div>
+<div id="divAddLocation" style="display:none;">
+<div id="dummyDivAddLocation"></div>
+<table cellpadding="2" cellspacing="5" border="0" width="100%">
+ <tr>
+ <td valign='top'>
+ <table width='100%' cellpadding='0' cellspacing='0' border='0' class='csslocationbg'>
+ <tr>
+ <td align='center'><span class='csslocationtext'>Add Location</span></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <table id = 'tblGauge' cellpadding='2' cellspacing='3' border='0' width='100%' style="display:none;">
+ <tr class='rowbg7days'>
+ <td width='100%'>Please wait while setting up the application...</td>
+ </tr>
+ <tr>
+ <td>
+ <div class="gauge" style="height:20px;">
+ <div id="gauge0" style="background-color:Blue;width:0px;height:20px;"></div>
+ </div>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td width='100%'>
+ <table id = 'tblAddLocation' cellpadding='2' cellspacing='3' border='0' width='100%'>
+ <tr class='rowbg7days'>
+ <td colspan='2' width='100%'>Enter ZIP, City or Place</td>
+ </tr>
+ <tr>
+ <td colspan='2' width='100%'><input type="text" id="txtcityzip" onmouseover="unSelectButtons()" width='90%' x-blackberry-focusable="true"></input></td>
+ </tr>
+ <tr><td align="center" width='50%'><a id="btnAdd" class="buttonFull" onmouseover="doSelect('btnAdd')" onclick="miAddLocation();" x-blackberry-focusable="true"><span>&nbsp;Add&nbsp;</span></a></td>
+ <td align="center" width='50%'><a id="btnCancel" class="buttonFull" onmouseover="doSelect('btnCancel')" onclick="miCancelLocation();" x-blackberry-focusable="true"><span>&nbsp;Back&nbsp;</span></a></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+</div>
+</div>
+</body>
+</html>
Oops, something went wrong.

0 comments on commit 27f0df9

Please sign in to comment.