Window.location mobile site - Forum
This discussion started in November 2014. EverWeb has changed a lot since then, so some answers may no longer apply.
Find up-to-date answers in the EverWeb help articles. Still stuck? Start a new thread or contact support.
Window.location mobile site
|
User: Raf P. 12 years ago
|
|
|
Hi, I created a website in EW: 960px width I created a mobile version of this site: 320px width In the Publishing Settings of the main site I gave in: if (screen.width <= 600) {window.location = "http://www.dierenartsfrankslegers.be/mobile"; } In the Publishing Settings of the mobile site I gave in: if (screen.width >= 600) {window.location = "http://www.dierenartsfrankslegers.be"; } Google found all of these pages. Depending on the device, it goes straight to the preferred page. Unfortunately, on a 600px device, it goes wrong. The browser don't know where to go and flashes between both versions with a white screen. Does anyone know a solution please? ------------------------------- Kind regards, Raphael Pairoux |
|
| Post Reply |
| You must login or signup to post. |
