X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=experiments%2Fspclient%2Findex-mobile.html;fp=experiments%2Fspclient%2Findex-mobile.html;h=c20edcf3ae2888472ced9a89763709602dfbb7a2;hb=221a1559700915ff8e678a987ee6ca65a0b78c47;hp=0bcd4dce0989a74db8c19b0d5522ef229fc0e030;hpb=e7210a8430a590b528efd95dfb281ad26fb306ad;p=mkws-moved-to-github.git 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(""); } };