Ero sivun ”Widget:Test” versioiden välillä
Järvi-meriwikistä
Rivi 28: | Rivi 28: | ||
for ( var s in jw.site ) { | for ( var s in jw.site ) { | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | id = 'jw_' + s; | |
+ | |||
+ | sites[ id ].name = jw.obs[ jw.site[s].obses[0] ].printouts.SiteName[0].fulltext; | ||
+ | sites[ id ].url = jw.obs[ jw.site[s].obses[0] ].printouts.SiteName[0].fullurl; | ||
} | } | ||
− | for ( var o in co. | + | for ( var o in co.requestList ) { |
− | + | id = 'co_' + co.requestList[ o ]; | |
+ | |||
+ | sites[ id ].name = 'Vesi.fi havainto'; | ||
+ | sites[ id ].url = ''; | ||
+ | |||
+ | } | ||
− | + | console.log( sites ); | |
} | } |