[Phphtmllib-devel] SF.net SVN: phphtmllib:[3283] trunk/open2300/htdocs/js/main.js
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2009-11-24 05:20:20
|
Revision: 3283 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3283&view=rev Author: hemna Date: 2009-11-24 05:20:11 +0000 (Tue, 24 Nov 2009) Log Message: ----------- added periodical executor for the cam image Modified Paths: -------------- trunk/open2300/htdocs/js/main.js Modified: trunk/open2300/htdocs/js/main.js =================================================================== --- trunk/open2300/htdocs/js/main.js 2009-11-24 05:19:32 UTC (rev 3282) +++ trunk/open2300/htdocs/js/main.js 2009-11-24 05:20:11 UTC (rev 3283) @@ -70,9 +70,9 @@ Effect.Appear('idWindSpeedLineGraph', {duration: 0.7}); }}); - Effect.Fade('idRadarImg', {duration: 0.3, afterFinish: function() { + Effect.Fade('idRadarImg', {duration: 0.7, afterFinish: function() { img = new Image(); - img.src = "http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=DAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=0.326&noclutter=0&t=1235942643&lat=38.81977081&lon=-121.02596283&label=Pilot+Hill%2C+CA&showstorms=0&map.x=400&map.y=240¢erx=145¢ery=359&transx=-255&transy=119&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0"; + img.src = "http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=DAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=0.326&noclutter=0&t=1235942643&lat=38.81977081&lon=-121.02596283&label=Pilot+Hill%2C+CA&showstorms=0&map.x=400&map.y=240¢erx=145¢ery=359&transx=-255&transy=119&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0&junk="+d.getTime(); img.id='idRadarImg'; img.width=480; img.height=320; @@ -114,6 +114,13 @@ } + new PeriodicalExecuter(function(pe) { + d = new Date(); + img = $('idCam'); + img.src="http://wx.hemna.com/cam/cam.jpg?junk="+d.getSeconds(); + }, + 30); + function set_orig_time(new_time) { orig_time = new_time; orig_ts =Math.round(orig_time.getTime()/1000); @@ -146,4 +153,4 @@ } return newHTML; -} \ No newline at end of file +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |