javascript - mobile detection full site link -
when using js code mobile browser detection - http://detectmobilebrowsers.com how can add "view full site" button mobile page?
i found this:
[link on site: http://example.com?fullsite=true'>link full site]
then add end of detect mobile browsers js.
if (document.cookie.indexof('fullsite') > -1) { return; // skip redirect }
i pretty new js need bit of on how add this.
i found solution you:
what need:
- jquery 1.7+
- modernizr
get code this github repo. , ad website.
ad following button.
<div class="rwd-display-options"> <span id="view-full" class="rwd-display-option">view full site</span> </div>
you can more information , support the website of developer
Comments
Post a Comment