![]() ![]() Units defines the units of measure as either "e" for english/imperial (☏, mph, in.) or "m" for metric (☌, km/h, cm.). Theme defines the default color theme for the widgets ("dark-gray","light-gray","blue"). Standalone="true" loads the widget in an iFrame. Longitude defines the longitude of the default location. Latitude defines the latitude of the default location. Language defines the language for the widgets. Possible values are "png", "svg", "jpg", "gif". Iconsext is the file extension for the custom icons in the iconsURL folder. Do not include the filename or extension in the IconsURL. This will replace the default weather icon path in the widget. Iconsurl is the path to an external folder of custom weather icons. Group="true" tells the widget to change locations and toggle units based on the actions of other page widgets. This is useful for keeping global arguments in one place when there are many Max Web widget tags on the page. ![]() The optional tag applies global settings to every tag on the page. Try our configuration tool to generate widget code. If embedding more than one widget on the page, you can also use the tag to define global attributes that apply to all widgets. Each type of widget and map has a defined set of arguments used for customizing the display. When the page loads, the TWC JavaScript will locate all widget and map tags on the page and replace them with the specified weather content. Use the script below to implement the long-term stable environment code on your website. The long-term stable code will be updated to match the standard version during the following months: February, May, August, October.Īll other changes to long-term stable code are restricted to emergency patches and bug fixes. The long-term stable environment will receive updates less frequently than the standard environment. Use the script below to implement the standard environment code on your website. Improvements to this environment can occur as frequently as every two weeks. The standard environment always receives the latest widget features and other updates as soon as they are released. Use only one of the following scripts on the web page. There are two production widget environments standard and long-term stable. Copying and serving this code from a local file is prohibited. The web page must always use a Weather Company URL as the script src. In the or of your HTML page, reference the one of the JavaScript files below with your unique cid value appended as a query parameter. The TWC Support team will setup your account for the specified web domains and send a return email with the IDs required for your code.Ī unique account identifier required to load the widgets on allowed domains. The widgets and map will only work on domains that are provisioned by TWC. After licensing Max Web - Weather Widgets for your website, please send an email to a list of all web domains on which the widgets will be embedded. ![]()
0 Comments
Leave a Reply. |