ÿþ<!--// //////////////////////////////////////////////////////////////////////////////// // // THIS CODE IS NOT APPROVED FOR USE IN/ON ANY OTHER UI ELEMENT OR PRODUCT COMPONENT. // Copyright (c) 2009 Microsoft Corporation. All rights reserved. // //////////////////////////////////////////////////////////////////////////////// //--> <html dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Weather</title> <link href="css/weather.css" rel="stylesheet" type="text/css"/> <script src="js/highDpiImageSwap.js" type="text/javascript" language="javascript"></script> <script src="js/localizedStrings.js" type="text/javascript" language="javascript"></script> <script src="js/library.js" type="text/javascript" language="javascript"></script> <script src="js/weather.js" type="text/javascript" language="javascript"></script> </head> <body id="WeatherGadget" onload="setup();" onunload="cleanup();" scroll="no" UNSELECTABLE="on"> <g:background id="WeatherBG" style="z-index:-1" /> <object id="factory" classid="clsid:9DCC3CC8-8609-4863-BAD4-03601F4C65E8" width="0" height="0" border="0" type="application/x-oleobject"> </object> <script language="javascript" for="factory"> function factory::StatusChanged( status ) { System.Debug.outputString("Received Status Change Event"); System.Debug.outputString("Status: " + status); MicrosoftGadget.APIStatusChanged( status ); } function factory::NewLatLongReport( report ) { System.Debug.outputString("Received Location Change Event"); if ( !LOCATION_SENSING_AUTO_STATES_ARRAY.exists( MicrosoftGadget.currentState ) ) { System.Debug.outputString("Location Change Event ignored"); return; } try { System.Debug.outputString("Latitude: " + report.Latitude); System.Debug.outputString("Longitude: " + report.Longitude); if ( ( (report.Latitude >= -90) && (report.Latitude <= 90) && (report.Longitude <= 180) && (report.Longitude >= -180) ) ) { MicrosoftGadget.onLocationEventFired( report ); } else { System.Debug.outputString( "Invalid Location Data" ); } } catch(err) { System.Debug.outputString( "Error in location packet recieved" ); System.Debug.outputString( "Error Description: " + err.description + ""); } } </script> <div id="DockedModeDisplayArea"> <label id="AgeStampTextDockedMode"></label> <div id="DockedModeCurrentConditionsText"> <div id="TemperatureCurrent"></div> <div id="PlaceDockedMode"> <a href=# id="PlaceHrefDockedMode" target="_blank"></a> </div> <div id="LocationAPIStatusDockedMode"> <img id="SensorIconDockedMode" src="images/grayStateIcon.png" alt="" /> </div> </div> <img id="DockedModeAccessibilityInformation" alt="" src="images/1px.gif" border="0" /> </div> <div id="UnDockedModeDisplayArea"> <div id="UnDockedModeCurrentConditionsText"> <div id="PlaceUnDockedMode"> <a href=# id="PlaceHrefUnDockedMode" target="_blank"></a> </div> <div id="LocationAPIStatusUndockedMode"> <img id="SensorIconUndockedMode" src="images/grayStateIcon.png" alt="" /> </div> <span id="ConditionCurrentUnDockedMode"></span> <div id="TemperatureCurrentUnDockedMode"></div> <div id="Today"> <table cellpadding="0" cellspacing="0"> <tr> <td id="TemperatureHigh0" class="TemperatureHigh"></td> <td id="TemperatureSeparator"></td> <td id="TemperatureLow0" class="TemperatureLow"></td> </tr> </table> </div> </div> <div id="UnDockedModeForecasts"> <table id="Forecasts" cellpadding="0" cellspacing="0" summary="Weather Forecast"> <colgroup> <col width="28" align="right"/> <col width="47" align="center"/> </colgroup> <colgroup width="0*"></colgroup> <colgroup> <col width="28" align="right"/> <col width="47" align="center"/> </colgroup> <colgroup width="0*"></colgroup> <colgroup> <col width="28" align="right"/> <col width="47" align="center"/> </colgroup> <thead valign="baseline"> <tr> <th id="Forecast1" class="ForecastDay" colspan="2" rowspan="2" scope="colgroup"> <a href="#" id="DayOfWeek1" class="DayOfWeek" target="_blank"></a> </th> <th class="ForecastSeparatorHeaderSection" abbr="" scope="col"><div></div></th> <th id="Forecast2" class="ForecastDay" colspan="2" rowspan="2" scope="colgroup"> <a href="#" id="DayOfWeek2" class="DayOfWeek" target="_blank"></a> </th> <th class="ForecastSeparatorHeaderSection" abbr="" scope="col"><div></div></th> <th id="Forecast3" class="ForecastDay" colspan="2" rowspan="2" scope="colgroup"> <a href="#" id="DayOfWeek3" class="DayOfWeek" target="_blank"></a> </th> </tr> </thead> <tfoot> <tr> <td id="Separator" colspan="8"><div></div></td> </tr> <tr> <td colspan="8"> <label id="Attribution"></label> <label id="AgeStampTextUndockedMode"></label> </td> </tr> </tfoot> <tbody> <tr> <td class="TemperatureRange" headers="Forecast1"> <label id="TemperatureHigh1" class="TemperatureHigh"></label> <label id="TemperatureLow1" class="TemperatureLow"></label> </td> <td class="SkyCodeImage" headers="Forecast1"> <img id="SkyCodeImage1" alt="" src="images/1px.gif" width="42" height="34" /> </td> <td class="ForecastSeparator"></td> <td class="TemperatureRange" headers="Forecast2"> <label id="TemperatureHigh2" class="TemperatureHigh"></label> <label id="TemperatureLow2" class="TemperatureLow"></label> </td> <td class="SkyCodeImage" headers="Forecast2"> <img id="SkyCodeImage2" alt="" src="images/1px.gif" width="42" height="34" /> </td> <td class="ForecastSeparator"></td> <td class="TemperatureRange" headers="Forecast3"> <label id="TemperatureHigh3" class="TemperatureHigh"></label> <label id="TemperatureLow3" class="TemperatureLow"></label> </td> <td class="SkyCodeImage" headers="Forecast3"> <img id="SkyCodeImage3" alt="" src="images/1px.gif" width="42" height="34" /> </td> </tr> </tbody> </table> </div> <img id="UnDockedModeAccessibilityInformation" alt="" src="images/1px.gif" border="0" /> </div> <div id="WeatherMessage"> <table cellpadding="3" cellspacing="0"> <tr> <td> <div id='PleaseWaitLoadingSpinner'></div> <div id='WeatherMessageIcon'></div> <span id="message"></span> </td> </tr> </table> </div> </body> <script language="VBscript"> Function vbsGetLocale() vbsGetLocale = GetLocale() End Function </script> </html>