Skip to content

Instantly share code, notes, and snippets.

@mpj
Created December 8, 2009 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpj/251543 to your computer and use it in GitHub Desktop.
Save mpj/251543 to your computer and use it in GitHub Desktop.
<script type="text/javascript" src="http://golfweather.systeamhalmstad.se/GolfWeather.mvc/RenderScript"></script>
<script type="text/javascript">
// Required: weather_golf_club_id
// The GIT id of the golf club that you want weather for.
// The golf club must have the weather module enabled.
var weather_golf_club_id = "1285a58f-cae3-4654-84cf-4f687febef3d";
// Optional: Custom Images
// Any url can be inserted here.
// For IE6, the .png extension will be replaced with .gif. So use alpha transparent PNGs
// and create a .GIF variant for IE6 in the same directory.
// The example url points to new, nice icons. If this is not provided, GolfWeather2009 will default back to YR.NO-hosted icons.
var custom_weather_image_url = "http://golfweather.systeamhalmstad.se/Content/Images/weather_{0}.png";
var custom_wind_direction_image_url = "http://golfweather.systeamhalmstad.se/Content/Images/wind_{0}.png";
var custom_temperature_image_url = "http://golfweather.systeamhalmstad.se/Content/Images/thermometer.png";
// Custom ajax loader
var custom_loading_image_url = "http://golfweather.systeamhalmstad.se/Content/Images/ajax-loader-lightgray.gif"
$(initializeWeather);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment