From 2ac258db1331c8e431f0a05cc5e4ca0a09e1519c Mon Sep 17 00:00:00 2001 From: Tor-Einar Skog <tor-einar.skog@nibio.no> Date: Fri, 28 Jun 2019 11:03:29 +0200 Subject: [PATCH] Info text update --- .../public/nordic_septoria_whs/nordic_septoria_whs.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/public/nordic_septoria_whs/nordic_septoria_whs.js b/src/main/webapp/public/nordic_septoria_whs/nordic_septoria_whs.js index 309c6996..7ed8f658 100644 --- a/src/main/webapp/public/nordic_septoria_whs/nordic_septoria_whs.js +++ b/src/main/webapp/public/nordic_septoria_whs/nordic_septoria_whs.js @@ -170,7 +170,9 @@ var showModelInfo = function() ajax(hostName + "/rest/model/GRIDZYMOSE", function(e){ var modelInfo = JSON.parse(e.target.responseText); 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"; }); @@ -322,4 +324,7 @@ var dict = { var geti18nText = function(keyword) { 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 -- GitLab