Changeset 588 in tmcsimulator for branches/realtime_VDS/cptms
- Timestamp:
- 03/10/2020 10:13:15 AM (6 years ago)
- Location:
- branches/realtime_VDS/cptms
- Files:
-
- 2 edited
-
index.html (modified) (1 diff)
-
js/vdsLayer.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/realtime_VDS/cptms/index.html
r587 r588 150 150 var kHARfile = "data_layers/har_locations_D12.gjson"; // CMS locations 151 151 var lastFetchFile = "../dynamicdata/last_fetch_time.txt"; 152 var fetchInterval = 60;152 var liveThreshold = 15; // minutes to be considerd "live" data 153 153 var liveImage = "images/live.svg" 154 154 var iconCMSactive = "images/icon_cms_active.png"; -
branches/realtime_VDS/cptms/js/vdsLayer.js
r587 r588 168 168 live.width = 50 ; 169 169 live.height= 40 ; 170 notLive.src ="images/fetchError.jpg"; 171 notLive.width = 50 ; 172 notLive.height= 50 ; 170 notLive.src ="images/offline.jpg"; 173 171 // if fetch is a success, display live img 174 172 if (success) { … … 214 212 msec -= ss * 1000; 215 213 // display icon if less than 15 216 if (days === 0 && hh === 0 && mm < fetchInterval)214 if (days === 0 && hh === 0 && mm < liveThreshold) 217 215 initLiveIcon(1) 218 216 else
Note: See TracChangeset
for help on using the changeset viewer.
