From: Wolfram Schneider Date: Fri, 28 Jun 2013 14:28:12 +0000 (+0000) Subject: copy termlist on small screens to the end of the page X-Git-Tag: 0.9.1~407 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=221a1559700915ff8e678a987ee6ca65a0b78c47 copy termlist on small screens to the end of the page resize after documented loaded (first time) --- diff --git a/experiments/spclient/index-mobile.html b/experiments/spclient/index-mobile.html index 0bcd4dc..c20edcf 100644 --- a/experiments/spclient/index-mobile.html +++ b/experiments/spclient/index-mobile.html @@ -28,20 +28,26 @@ clearTimeout(timeout); timeout = setTimeout(function () { mobile_resize() }, 100); }); + $(document).ready(function() { mobile_resize() }); function mobile_resize () { debug("resize width: " + $(window).height() + ", width: " + $(window).width()); var list = ["mkwsSwitch"]; + var obj; if ($(window).width() <= 600) { for(var i = 0; i < list.length; i++) { $("#" + list[i]).hide(); } + $("#termlist").parent().hide(); + obj = $("#termlist").parent().html(); + $("#mkwsTermlist").html(obj); } else { for(var i = 0; i < list.length; i++) { $("#" + list[i]).show(); } $("#termlist").parent().show(); + $("#mkwsTermlist").html(""); } };