From 9dbe919609b6741eb9255850d5efbcd4f3889a66 Mon Sep 17 00:00:00 2001 From: Tor-Einar Skog <tor-einar.skog@nibio.no> Date: Thu, 22 Mar 2018 11:54:39 +0100 Subject: [PATCH] Added attribute data-language --- mock/templates/mock/zymogridmapclient.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mock/templates/mock/zymogridmapclient.html b/mock/templates/mock/zymogridmapclient.html index f6e8d36d..9d89a329 100644 --- a/mock/templates/mock/zymogridmapclient.html +++ b/mock/templates/mock/zymogridmapclient.html @@ -15,13 +15,14 @@ <h1>Let's say this is the EuroWheat web page</h1> <p>What you do is that you include the following code in your HTML</p> <code> - <div id="zymoGridMapContainer" style="width:800px;"></div><br/> + <div id="zymoGridMapContainer" style="width:800px;" data-language="dk"></div><br/> <script id="zymoGridMapScript" type="text/javascript" src="{{settings.VIPSLOGIC_PROTOCOL}}://{{settings.VIPSLOGIC_SERVER_NAME}}/public/nordic_septoria_whs/nordic_septoria_whs.js"/></script> </code> <p>Then the application will look like this</p> - <div id="zymoGridMapContainer" style="width:800px;"></div> + <div id="zymoGridMapContainer" style="width:800px;" data-language="dk"></div> <script id="zymoGridMapScript" type="text/javascript" src="{{settings.VIPSLOGIC_PROTOCOL}}://{{settings.VIPSLOGIC_SERVER_NAME}}/public/nordic_septoria_whs/nordic_septoria_whs.js"/></script> - <!-- script id="zymoGridMapScript" type="text/javascript" src="http://restclienthtml/public/nordic_septoria_whs/nordic_septoria_whs.js"/></script--> - <p>If you omit the style attribute, then the application will fill all available space</p> + <!--script id="zymoGridMapScript" type="text/javascript" src="http://restclienthtml/public/nordic_septoria_whs/nordic_septoria_whs.js"/></script--> + <p>If you omit the style attribute, the application will fill all available space</p> + <p>If you omit the data-language attribute, the default language (en) will be used. Currently supported languages are no, dk and en. </p> </body> </html> \ No newline at end of file -- GitLab