Skip to content
Snippets Groups Projects
Commit 2ac258db authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Info text update

parent 484cde5c
Branches
Tags
1 merge request!17Develop
...@@ -170,7 +170,9 @@ var showModelInfo = function() ...@@ -170,7 +170,9 @@ var showModelInfo = function()
ajax(hostName + "/rest/model/GRIDZYMOSE", function(e){ ajax(hostName + "/rest/model/GRIDZYMOSE", function(e){
var modelInfo = JSON.parse(e.target.responseText); var modelInfo = JSON.parse(e.target.responseText);
document.getElementById('popup').innerHTML= "<p><button type='button' onclick='hideModelInfo();'>" + geti18nText("close") + "</button></p>" document.getElementById('popup').innerHTML= "<p><button type='button' onclick='hideModelInfo();'>" + geti18nText("close") + "</button></p>"
+ modelInfo.defaultDescription.replace("\n","<br/><br/>"); + refHumidityModelMapExplanation;
//+ "<h3>Background</h3>"
//+ modelInfo.defaultDescription.replace("\n","<br/><br/>");
document.getElementById('popup').style.display="block"; document.getElementById('popup').style.display="block";
}); });
...@@ -322,4 +324,7 @@ var dict = { ...@@ -322,4 +324,7 @@ var dict = {
var geti18nText = function(keyword) var geti18nText = function(keyword)
{ {
return dict[keyword][language]; return dict[keyword][language];
}; };
\ No newline at end of file
var refHumidityModelMapExplanation = "<p>The map shows the risk for new infections of Septoria SPP. in wheat. The reference humidity model calculates the total number of humid hours as a running sum of 36 hours (Yesterday + today + tomorrow). 0 = no risk; 1-20= low risk; 21-40 is medium risk and >40 is high risk. A humid hour is calculated if: Rh>=88% or, Leaf wetness >=30 minutes per hour or rain >=0,2mm. Only hours where the temperature >=8°C </p>"
+ "<p>This risk index was developed as a supplement to the Humidity model. It should be considered as a weather based submodel for Septoria risk, easy to show on maps (risk across regions) as well as on a graph (curve) with risk across time. </p>";
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment