Instead of building a fully responsive website, I am thinking that this is possible. I want to create 2 different websites, 1 for phone (small screen only) and for other tablets and desktops.
Now, in the mobile version of the website, I will release large files and videos.
I am thinking that is this possible?
$ (document) .onload (function () {if (screen) {\\ load mobile.html} and {\\ load desktop.HTML}}); Or maybe if there is a better way, then I would rather be willing to leave some elements entirely on the mobile devices instead of hiding with CMS. Thank you
You can change the document location. More about location objects.
I do not wait for the document to load as your code, run it immediately instead.
if (window.matchMedia "(minimum-width: 600px)"). Matches) {document.location.pathname = "desktop.html"; } And {document.location.pathname = "mobile.html"; }
No comments:
Post a Comment