</head>
<body>
<script>
- var location = window.location.toString();
+ var loc = window.location.toString();
var redirect = window.matchMedia('(min-device-width: 640px) and (min-device-height: 640px)').matches ? 'd' : 'mf';
- var current = location.indexOf('/mf/') >= 0 ? 'mf' : 'd';
+ var current = loc.indexOf('/mf/') >= 0 ? 'mf' : 'd';
- var redirection = current !== redirect ? location.replace('/' + current + '/', '/' + redirect + '/') : '../index.html$page';
- console.log(location, redirect, current, redirection);
- //window.location = redirection;
+ var redirection = current !== redirect ? loc.replace('/' + current + '/', '/' + redirect + '/') : '../index.html$page';
+ console.log(loc, redirect, current, redirection);
+ window.location = redirection;
</script>
$content
</body>