Redirect to mobile version

Mobile Version – Allows to redirect to mobile version

<script type="text/javascript">		var getStr = window.location.search.substr(1);        var getArray = getStr.split ("&");        var get = {};        for ( var i = 0; i < getArray.length; i++) {        var tmpArray = getArray[i].split("=");        get[tmpArray[0]] = tmpArray[1];        }		if (screen.width <= 800 && get.m != 'no') {			window.location = "http://vip.org.il/m";		  }
   	    </script>

Attached files:

max

One thought on “Redirect to mobile version

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>