Script correct?

72 views
Skip to first unread message

Dd Dd

unread,
Feb 11, 2018, 4:38:09 PM2/11/18
to Met Office DataPoint
Hello 

I have created an Api still figuring out how to incorporate it in my web page 

i did come across the metoffice widget 
i followed the wizard to create the code but cant get it to display anything

 i created a basic html document

it will not display the widget 

Could you help anybody help me and explain what i am doing wrong

thanks



<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>



<script type="text/javascript"> moWWidgetParams="moAllowUserLocation:true~moBackgroundColour:white~moColourScheme:grey~moDays:7~moDomain:www.metoffice.gov.uk~moFSSI:350633~moListStyle:vertical~moMapDisplay:none~moShowFeelsLike:true~moShowUV:true~moShowWind:true~moSpecificHeight:460~moSpecificWidth:310~moSpeedUnits:M~moStartupLanguage:en~moTemperatureUnits:C~moTextColour:black~moGridParams:weather,temperature,feelslike,wind,uv~"; </script><script type="text/javascript" src="https://www.metoffice.gov.uk/public/pws/components/yoursite/loader.js"> </script><p>This <a href='https://www.metoffice.gov.uk/public/weather/forecast/?tab=map' target='_blank' >weather forecast</a> is generated by the <a href='https://www.metoffice.gov.uk/public/weather/components'>Met Office Weather Widget</a></p>


<p>My first paragraph.</p>

</body>
</html>
Reply all
Reply to author
Forward
0 new messages