Ero sivun ”Widget:Snow situation graph” versioiden välillä
Järvi-meriwikistä
Rivi 35: | Rivi 35: | ||
function success(request) { | function success(request) { | ||
− | + | ||
var dataArr = new Array(); | var dataArr = new Array(); | ||
var imagesArr = new Array(); | var imagesArr = new Array(); | ||
Rivi 208: | Rivi 208: | ||
if (snowSit == 0) { snowNum = 0; } | if (snowSit == 0) { snowNum = 0; } | ||
− | else if (snowSit | + | else if (snowSit >= 50 && resultItem['Lumen paksuus'][0] != undefined) { snowNum = resultItem['Lumen paksuus'][0].value; } |
else { snowNum = -1; } | else { snowNum = -1; } | ||