* Graham * Weezy This is a complete page code add it to a blank text file named index
it will redirect to web/mobile/touch.html
<!DOCTYPE html>
<html>
<head>
  <title>redirect</title>
  <!--parser:xtscript-->
  var $device=<xt:get_device_template />
  <!--/parser:xtscript-->
  <script type="text/javascript">
    window.location.assign("/{_$$device|}.html");
  </script>
  <noscript>
    <meta http-equiv="refresh" content="0;url=/{_$$device|}.html" />
  </noscript>
</head>
  <body style="display:none">
</body>
</html>

Copy code

Alternatively you do not need to redirect at all !
if you are using xtgem_template.css to hold your css
any .xt_touch class only applies to web and smart devices
ie:
.myclass {background:red} all devices
.xt_touch .myclass {background:green} smart and web devices
2014-03-09 03:11 · (0)

Online: Guests: 1