Author: andreasr
Date: Tue Oct  6 21:51:18 2015
New Revision: 30021

URL: http://svn.gna.org/viewcvs/freeciv?rev=30021&view=rev
Log:
fix search on mobile. scroll search box into view when window resized.

Modified:
    website/download.html
    website/index.html
    website/js/freeciv.js

Modified: website/download.html
URL: 
http://svn.gna.org/viewcvs/freeciv/website/download.html?rev=30021&r1=30020&r2=30021&view=diff
==============================================================================
--- website/download.html       (original)
+++ website/download.html       Tue Oct  6 21:51:18 2015
@@ -44,8 +44,8 @@
         </div>
         <div id="navbar" class="collapse navbar-collapse">
           <ul class="nav navbar-nav">
-            <li class="active"><a href="http://www.freeciv.org/";>Home</a></li>
-            <li><a href="download.html">Download</a></li>
+            <li><a href="http://www.freeciv.org/";>Home</a></li>
+            <li class="active"><a href="download.html">Download</a></li>
             <li><a href="https://play.freeciv.org/";>Freeciv-web</a></li>
             <li><a href="http://meta.freeciv.org/";>Metaserver</a></li>
             <li><a href="http://www.freeciv.org/wiki/";>Wiki</a></li>

Modified: website/index.html
URL: 
http://svn.gna.org/viewcvs/freeciv/website/index.html?rev=30021&r1=30020&r2=30021&view=diff
==============================================================================
--- website/index.html  (original)
+++ website/index.html  Tue Oct  6 21:51:18 2015
@@ -46,7 +46,7 @@
             <li><a href="http://www.freeciv.org/wiki/";>Wiki</a></li>
             <li><a href="http://forum.freeciv.org/";>Forum</a></li>
           </ul>
-         <form class="navbar-form navbar-right searchbox">
+         <form id="mysearchform" class="navbar-form navbar-right searchbox">
                <iframe 
src="https://duckduckgo.com/search.html?width=170&amp;site=www.freeciv.org,forum.freeciv.org,freeciv.wikia.com,play.freeciv.org&amp;prefill=Search
 Freeciv.org" 
style="overflow:hidden;margin:0;padding:0;width:228px;height:40px;" 
frameborder="0"></iframe>
           </form>
         </div>

Modified: website/js/freeciv.js
URL: 
http://svn.gna.org/viewcvs/freeciv/website/js/freeciv.js?rev=30021&r1=30020&r2=30021&view=diff
==============================================================================
--- website/js/freeciv.js       (original)
+++ website/js/freeciv.js       Tue Oct  6 21:51:18 2015
@@ -35,4 +35,7 @@
 
 });
 
+$( window ).resize(function() {
+  $("#mysearchform").get(0).scrollIntoView();
+});
 


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to