Post by quamosity on Aug 28, 2013 18:56:19 GMT
How about a few code samples to start off?!
The National Weather Service has great glossary of terms that you can search to find out definitions to words used in forecasting. For those of you creating weather-related websites, like myself, this glossary could be a useful way to provide additional education to your readers.
I have compiled the glossary into a text file and javascript that can be added to any web page running HTML or PHP. The Javascript files are used for HTML pages and the PHP can be used on Apache systems with PHP enabled.
National Weather Service (NWS) Glossary of Terms Randomizer
forecast.weather.gov/glossary.php
Created by Mark Lang (mark.lang@stonybrook.edu) at the School of Marine and Atmospheric Sciences at Stony Brook University
Viewable demo on the web at somas.stonybrook.edu/~RTDS/pages/WXGlossary.php or
view on the Stony Brook Meteorology Club website (at the bottom of the page): sbwx.blogspot.com/
Source code available here: somas.stonybrook.edu/~RTDS/downloads/NWSGlossary.zip
About:
This page will load a random term from the NWS Glossary to help you learn the vocabulary used in NWS forecasts. Very useful for additional weather knowledge for your website traffic.
The glossary contains all vocabulary from forecast.weather.gov/glossary.php in a single file (WXGlossary.js for Javascript/HTML or NWSGlossary.txt for PHP)
System Requirements:
Current web browser capable of Java Script for HTML file. Google Chrome or Mozilla Firefox recommended. Deployment to Internet requires web server with java script or PHP enabled.
Installation Instructions:
To use, extract the contents of the zip file to a directory. Double-click on the NWSGlossary.html file to open the web page in your browser. This file uses javascript to display a single entry from the WXGlossary.js file.
To install to your web server, simply upload the files to a directory on your website. NWSGlossary.html will load the javascript file WXGlossary.js contained within the same folder. NWSGlossary.php will use NWSGlossary.txt contained within the same folder. Each file, when loaded, will display a random entry from the glossary. When the page is refreshed, a new term will be loaded.
This page can be included with server-side includes (if enabled) or the code copied to your existing web page. The web page can be styled using Cascading Style Sheets (CSS) or you can freely modify the HTML code.
The National Weather Service has great glossary of terms that you can search to find out definitions to words used in forecasting. For those of you creating weather-related websites, like myself, this glossary could be a useful way to provide additional education to your readers.
I have compiled the glossary into a text file and javascript that can be added to any web page running HTML or PHP. The Javascript files are used for HTML pages and the PHP can be used on Apache systems with PHP enabled.
National Weather Service (NWS) Glossary of Terms Randomizer
forecast.weather.gov/glossary.php
Created by Mark Lang (mark.lang@stonybrook.edu) at the School of Marine and Atmospheric Sciences at Stony Brook University
Viewable demo on the web at somas.stonybrook.edu/~RTDS/pages/WXGlossary.php or
view on the Stony Brook Meteorology Club website (at the bottom of the page): sbwx.blogspot.com/
Source code available here: somas.stonybrook.edu/~RTDS/downloads/NWSGlossary.zip
About:
This page will load a random term from the NWS Glossary to help you learn the vocabulary used in NWS forecasts. Very useful for additional weather knowledge for your website traffic.
The glossary contains all vocabulary from forecast.weather.gov/glossary.php in a single file (WXGlossary.js for Javascript/HTML or NWSGlossary.txt for PHP)
System Requirements:
Current web browser capable of Java Script for HTML file. Google Chrome or Mozilla Firefox recommended. Deployment to Internet requires web server with java script or PHP enabled.
Installation Instructions:
To use, extract the contents of the zip file to a directory. Double-click on the NWSGlossary.html file to open the web page in your browser. This file uses javascript to display a single entry from the WXGlossary.js file.
To install to your web server, simply upload the files to a directory on your website. NWSGlossary.html will load the javascript file WXGlossary.js contained within the same folder. NWSGlossary.php will use NWSGlossary.txt contained within the same folder. Each file, when loaded, will display a random entry from the glossary. When the page is refreshed, a new term will be loaded.
This page can be included with server-side includes (if enabled) or the code copied to your existing web page. The web page can be styled using Cascading Style Sheets (CSS) or you can freely modify the HTML code.