el
gadget.xml: Código HTML:
<?xml version="1.0" encoding="utf-16"?>
<gadget>
<name>El Tiempo</name>
<namespace><!--_locComment_text="{Locked}"-->microsoft.windows</namespace>
<version><!--_locComment_text="{Locked}"-->1.1.0.0</version>
<author name="Microsoft Corporation">
<info url="http://go.microsoft.com/fwlink/?LinkId=124093" text="www.gallery.microsoft.com"/>
<logo src="logo.png"/>
</author>
<copyright>
<!--_locComment_text="{Locked}"-->© 2009</copyright>
<description>Consulte previsiones del tiempo en todo el mundo.</description>
<icons>
<icon width="130" height="67" src="icon.png"/>
</icons>
<hosts>
<host name="sidebar">
<autoscaleDPI><!--_locComment_text="{Locked}"-->true</autoscaleDPI>
<base type="HTML" apiVersion="1.0.0" src="Weather.html"/>
<permissions><!--_locComment_text="{Locked}"-->Full</permissions>
<platform minPlatformVersion="1.0"/>
<defaultImage src="drag.png"/>
</host>
</hosts>
</gadget>
y el
setting.html: Código HTML:
<!--//
////////////////////////////////////////////////////////////////////////////////
//
// 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 Settings</title>
<link href="css/settings.css" rel="stylesheet" type="text/css" />
<link href="css/localizedSettings.css" rel="stylesheet" type="text/css" />
<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/settings.js" type="text/javascript" language="javascript"></script>
</head>
<body onLoad="setup();">
<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.onAPIStatusChange( status );
}
</script>
<span id='PleaseWaitLoadingSpinner'></span>
<div id="PlaceTitle" class="SettingsTitle">
</div>
<div id="PlaceCurrent" class="SettingsTitle">
</div>
<div>
<div id="LabelSelectLocation" class="SettingsTitle">
</div>
<input id="radioManually" type="radio" name="radioAutomaticallySelected" value="F"
checked="checked" onFocus="reConfigManual()" />
<label id="radioManuallyAccName" style="display:none" for="radioManually"></label>
<div id="textBoxBackground">
</div>
<input type="text" id="txtInputPlace" class="TextInputInactiveDefaultText" onKeyDown="return textBoxSearch();"
onmousedown="doBeginInput()" onBlur="doBlurInputBox();" onFocus="doFocusInputBox()"
onmouseover="doSetHelperText()" />
<label id="txtInputPlaceAccName" style="display:none" for="txtInputPlace"></label>
<a href="javascript:doMouseUpSearchButton();" id="btnSearchForPlace" class="btnSearch"
onmousedown="doMouseDownSearchButton();" onMouseUp="" onMouseOver="doMouseOverSearchButton();"
onmouseout="doMouseOutSearchButton();" onKeyDown="if ( event.keyCode == 13 || event.keyCode == 32 ) { return textBoxSearch(); }">
</a>
<input id="radioAutomatically" type="radio" name="radioAutomaticallySelected" value="T" onFocus="reConfigAuto()" />
<label id="LabelAutomatically" class="radioAutomaticallySelected" for="radioAutomatically"></label>
<div id="PlacePossibilities">
</div>
</div>
<div id="privacyLinkDiv">
<a id="privacyArticleLink" href="#" target="_blank"></a>
</div>
<input type="hidden" id="WeatherLocationCode" />
<input type="hidden" id="WeatherLocation" />
<div id="DisplayDegreesRadioSetDiv">
<table id="DegreesRadioSet" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2">
<span id="lgdDisplayTemperatureIn" class="SettingsTitle"></span>
</td>
</tr>
<tr>
<td>
<input id="radioFahrenheit" type="radio" name="radioDegrees" value="F" /><label id="lblFahrenheit"
class="RadioDegree" for="radioFahrenheit"></label>
</td>
</tr>
<tr>
<td>
<input id="radioCelsius" type="radio" name="radioDegrees" value="C" /><label id="lblCelsius"
class="RadioDegree" for="radioCelsius"></label>
</td>
</tr>
</table>
<div id="txtSearchedLocationFoundOnDialogDismiss">
</div>
</div>
</body>
</html>