Small tuning for Ductivity forecast form on homepage
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Tue, 19 Apr 2011 13:03:47 +0000 (13:03 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Tue, 19 Apr 2011 13:03:47 +0000 (13:03 +0000)
www_templates/index.html

index fbcd8e3331b5cb52b4193190015ddf6b7a79d9bb..f9a3a281d833a6c758be60ab02fb6a60a10944b9 100644 (file)
@@ -1,11 +1,21 @@
 {% extends "base.html" %}
 
-{% block tab_active_news %} id=tabactive{% endblock %}
+{% block style_extra %}
+<script type="text/javascript">
+function ductivityFormHandler(selinput){
+       var URL = selinput.options[selinput.selectedIndex].value;
+       if (URL)
+               window.open('http://www.dxinfocentre.com/' + URL, '_blank', 'noreferer');
+}
+</script>
+{% endblock %}
 
 {% block title %}
 Welcome
 {% endblock %}
 
+{% block tab_active_news %} id=tabactive{% endblock %}
+
 {% block content %}
 
 <h3>Last changes</h3>
@@ -18,41 +28,33 @@ Welcome
 <div class='hr'><hr /></div>
 
 <h3>External links</h3>
-<script type="text/javascript">
-function ductivityFormHandler(selinput){
-       var URL = 'http://www.dxinfocentre.com/' + selinput.options[selinput.selectedIndex].value;
-       window.open(URL, '_blank');
-}
-</script>
-
 <ul>
-<li>Tropospheric Ducting Forecasts <form>
-<select size="1" onchange="javascript:ductivityFormHandler(this)">
-<option value="">Select region...
-</option><option value="tropo_enp.html">Eastern North Pacific
-</option><option value="tropo_esp.html">Eastern South Pacific
-</option><option value="tropo_wam.html">Western North America
-</option><option value="tropo.html">Eastern North America
-</option><option value="tropo_car.html">Gulf-Caribbean
-</option><option value="tropo_nsa.html">Northern South America
-</option><option value="tropo_sam.html">Central South America
-</option><option value="tropo_nat.html">North Atlantic
-</option><option value="tropo_sat.html">South Atlantic
-</option><option value="tropo_nwe.html">Northwestern Europe
-</option><option value="tropo_eur.html">Europe
-</option><option value="tropo_eeu.html">Eastern Europe
-
-</option><option value="tropo_afi.html">South Africa
-</option><option value="tropo_mid.html">Middle East
-</option><option value="tropo_nca.html">North Central Asia
-</option><option value="tropo_ino.html">Indian Ocean
-</option><option value="tropo_sea.html">Southeast Asia
-</option><option value="tropo_eas.html">Far East
-</option><option value="tropo_nea.html">Eastern Siberia
-</option><option value="tropo_aus.html">Australia &amp; New Zealand
-</option><option value="tropo_oce.html">Oceania
-</option><option value="tropo_wnp.html">Western North Pacific
-</option></select></form>
+<li>Tropospheric Ducting Forecasts
+       <form>select size='1' onchange='javascript:ductivityFormHandler(this)'>
+               <option value=''>Select region...</option>
+               <option value='tropo_enp.html'>Eastern North Pacific</option>
+               <option value='tropo_esp.html'>Eastern South Pacific</option>
+               <option value='tropo_wam.html'>Western North America</option>
+               <option value='tropo.html'>Eastern North America</option>
+               <option value='tropo_car.html'>Gulf-Caribbean</option>
+               <option value='tropo_nsa.html'>Northern South America</option>
+               <option value='tropo_sam.html'>Central South America</option>
+               <option value='tropo_nat.html'>North Atlantic</option>
+               <option value='tropo_sat.html'>South Atlantic</option>
+               <option value='tropo_nwe.html'>Northwestern Europe</option>
+               <option value='tropo_eur.html'>Europe</option>
+               <option value='tropo_eeu.html'>Eastern Europe</option>
+               <option value='tropo_afi.html'>South Africa</option>
+               <option value='tropo_mid.html'>Middle East</option>
+               <option value='tropo_nca.html'>North Central Asia</option>
+               <option value='tropo_ino.html'>Indian Ocean</option>
+               <option value='tropo_sea.html'>Southeast Asia</option>
+               <option value='tropo_eas.html'>Far East</option>
+               <option value='tropo_nea.html'>Eastern Siberia</option>
+               <option value='tropo_aus.html'>Australia &amp; New Zealand</option>
+               <option value='tropo_oce.html'>Oceania</option>
+               <option value='tropo_wnp.html'>Western North Pacific</option>
+       </select></form>
 <li><a href='http://en.wikipedia.org/wiki/Automatic_Identification_System' target=_blank noreferrer>AIS on Wikipedia</a>
 <li><a href='http://www.marinetraffic.com/' target=_blank noreferrer>Marine Traffic</a>
 <li><a href='http://www.seasearcher.com/' target=_blank noreferrer>Sea Searcher</a>