当使用JS代码进行手机浏览器检测- http://detectmobilebrowsers.com时,我如何在手机页面上添加“查看完整站点”按钮?
我发现了这个:
站点上的链接:指向完整站点的http://example.com?fullsite=true'>Link
然后将其添加到检测移动浏览器js的末尾。
if (document.cookie.indexOf('fullsite') > -1) {
return; // skip redirect
}我是JS的新手,所以需要一些关于如何添加这个的帮助。
发布于 2015-04-30 00:50:56
我为你找到了一个解决方案:
您需要的内容:
的
从this Github repo获取代码。并把它放到你的网站上。
按下下面的按钮。
<div class="rwd-display-options">
<span id="view-full" class="rwd-display-option">View Full Site</span>
</div>您可以从the website of the developer获得更多信息和支持
https://stackoverflow.com/questions/29948844
复制相似问题