Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 当作为移动应用程序查看时,色盒崩溃_Iphone_Mobile_Colorbox - Fatal编程技术网

Iphone 当作为移动应用程序查看时,色盒崩溃

Iphone 当作为移动应用程序查看时,色盒崩溃,iphone,mobile,colorbox,Iphone,Mobile,Colorbox,我已经在我的移动站点上安装并配置了Drupal的Colorbox模块。除了用户在iPhone中从主屏幕打开网站外,其他一切都正常工作。颜色框短暂打开,然后关闭。当用户在Safari中的iPhone上查看网站的移动版本时,不会出现这种情况。只有在他们将其添加到主屏幕并通过主屏幕查看后,才会发生此错误。结果是以下脚本导致了此错误。此脚本阻止在Mobile Safari中打开链接 (函数(a,b,c){if(c在b和b[c]){var d,e=a.location,f=/^(a | html)$/i;

我已经在我的移动站点上安装并配置了Drupal的Colorbox模块。除了用户在iPhone中从主屏幕打开网站外,其他一切都正常工作。颜色框短暂打开,然后关闭。当用户在Safari中的iPhone上查看网站的移动版本时,不会出现这种情况。只有在他们将其添加到主屏幕并通过主屏幕查看后,才会发生此错误。

结果是以下脚本导致了此错误。此脚本阻止在Mobile Safari中打开链接

(函数(a,b,c){if(c在b和b[c]){var d,e=a.location,f=/^(a | html)$/i;a.addEventListener(“单击”,函数(a){d=a.target;而(!f.test(d.nodeName))d=d.parentNode;“href”在d和(d.href.indexOf(“http”)| | ~d.href.indexOf(e.host))&(a.preventDefault(),e.href=d.href)},d.window)中的“href”;“href”;“href”;“独立文件导航器”),”窗口中的“href”)
<script>(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(d.href.indexOf("http")||~d.href.indexOf(e.host))&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone")</script>