te')); return $arr; } /* 遍历用户所有主题 * @param $uid 用户ID * @param int $page 页数 * @param int $pagesize 每页记录条数 * @param bool $desc 排序方式 TRUE降序 FALSE升序 * @param string $key 返回的数组用那一列的值作为 key * @param array $col 查询哪些列 */ function thread_tid_find_by_uid($uid, $page = 1, $pagesize = 1000, $desc = TRUE, $key = 'tid', $col = array()) { if (empty($uid)) return array(); $orderby = TRUE == $desc ? -1 : 1; $arr = thread_tid__find($cond = array('uid' => $uid), array('tid' => $orderby), $page, $pagesize, $key, $col); return $arr; } // 遍历栏目下tid 支持数组 $fid = array(1,2,3) function thread_tid_find_by_fid($fid, $page = 1, $pagesize = 1000, $desc = TRUE) { if (empty($fid)) return array(); $orderby = TRUE == $desc ? -1 : 1; $arr = thread_tid__find($cond = array('fid' => $fid), array('tid' => $orderby), $page, $pagesize, 'tid', array('tid', 'verify_date')); return $arr; } function thread_tid_delete($tid) { if (empty($tid)) return FALSE; $r = thread_tid__delete(array('tid' => $tid)); return $r; } function thread_tid_count() { $n = thread_tid__count(); return $n; } // 统计用户主题数 大数量下严谨使用非主键统计 function thread_uid_count($uid) { $n = thread_tid__count(array('uid' => $uid)); return $n; } // 统计栏目主题数 大数量下严谨使用非主键统计 function thread_fid_count($fid) { $n = thread_tid__count(array('fid' => $fid)); return $n; } ?>javascript - Magnific Popup not working on mobile - Stack Overflow
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Magnific Popup not working on mobile - Stack Overflow

programmeradmin4浏览0评论

Magnific popup seems to be working fine on desktop AND even Android phone but on an iPhone it shows the messsage "A problem occurred with this webpage so it was reloaded" and doesn't play the Vimeo video.

update: Just tried it on Chrome on my iPhone and it works fine. Looks like it's just Safari?

This is the HTML code:

<ul id="page1-slider7" class="bxslider">
    <li>
        <div class="c c1"><a href="" target="_blank" class="portfolio-link video">Watch Video</a><img src="images/sidecar/video/SmuinXXmas.jpg" /></div>
    </li>
    <li>
        <div class="c c2"><a href="" target="_blank" class="portfolio-link video">Watch Video</a><img src="images/sidecar/video/SunrunBrilliant.jpg" /></div>
    </li>
    <li>
        <div class="c c3"><a href="" target="_blank" class="portfolio-link video">Watch Video</a><img src="images/sidecar/video/PIER_BOGO_Video.jpg" /></div>
    </li>
</ul>

The js file

var initPopup = function(){
    $('.portfolio-link.video').magnificPopup({
        disableOn: 400,
        type: 'iframe',
        mainClass: 'mfp-fade',
        removalDelay: 160,
        preloader: false,
        fixedContentPos: true
    });
}

Anyone have this issue? Thanks in advance!

Magnific popup seems to be working fine on desktop AND even Android phone but on an iPhone it shows the messsage "A problem occurred with this webpage so it was reloaded" and doesn't play the Vimeo video.

update: Just tried it on Chrome on my iPhone and it works fine. Looks like it's just Safari?

This is the HTML code:

<ul id="page1-slider7" class="bxslider">
    <li>
        <div class="c c1"><a href="http://vimeo./80951188" target="_blank" class="portfolio-link video">Watch Video</a><img src="images/sidecar/video/SmuinXXmas.jpg" /></div>
    </li>
    <li>
        <div class="c c2"><a href="http://vimeo./119386830" target="_blank" class="portfolio-link video">Watch Video</a><img src="images/sidecar/video/SunrunBrilliant.jpg" /></div>
    </li>
    <li>
        <div class="c c3"><a href="http://vimeo./151719496" target="_blank" class="portfolio-link video">Watch Video</a><img src="images/sidecar/video/PIER_BOGO_Video.jpg" /></div>
    </li>
</ul>

The js file

var initPopup = function(){
    $('.portfolio-link.video').magnificPopup({
        disableOn: 400,
        type: 'iframe',
        mainClass: 'mfp-fade',
        removalDelay: 160,
        preloader: false,
        fixedContentPos: true
    });
}

Anyone have this issue? Thanks in advance!

Share Improve this question edited Jan 21, 2016 at 18:52 Ken Ryan asked Jan 21, 2016 at 18:20 Ken RyanKen Ryan 5491 gold badge12 silver badges35 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 16

Remove this attributes "disableOn: 400"

Keep only below code.

jQuery('.portfolio-link.video').magnificPopup({
    type: 'iframe',
    mainClass: 'mfp-fade',
    removalDelay: 160,
    preloader: false,
    fixedContentPos: true
});

I have faced same issue like you. I think issue is not in coding.

There are lots of reason for facing such type of issue.

Try to follow below Procedure. Trial 1)

1-Close all open apps by double pressing the Home button then swipe up on all open apps.

2-Clear your browser’s history and web site data by going to Settings > Safari > Clear History and Website Data.

3-Restart your device.

4-Reset your iPad or iPhone by  pressing and holding the Sleep/Wake and Home buttons at the same time for about 5-10 seconds until you see the Apple logo.

Trial 2)

Method 1: Resetting Network Setting.

Most of the time there is a network issue so we will start with Resetting network settings. So to do so, Just Navigate to Settings > General > Reset Network Settings.

Method 2: Clear Browser Cache & History.

If you figure out that Your network is not the issue, then your next step is to fix issues with your browser. So better you Clear your Browser Cache & History.

In Safari go to Settings > Safari > Clear Website Data. Now close the Browser and restart it to check whether the error still persists.

Tip: Close all the unused tabs in your browser.

Method 3: Resetting your iPAD

Most of the time 2 methods mentioned above should work to Fix A Problem Occurred with this Webpage so it was Reloaded error but if you still can't get rid of it, then You need to Reset your iPad.

Press and keep holding Home and Sleep Button for about 15 Seconds. Let it Reboot on its own. This should fix any further issues. if not then Try Method 4.

Method 4: Reinstalling JAVA

Finally, uninstall and then reinstall JAVA again. If Java is the issue then this Method will fix this error for you.

And 3 rd try)

Read the solution in Apple's Forums and try Solution as said by Users in Thread.

A problem occurred with this web page so it was reloaded

发布评论

评论列表(0)

  1. 暂无评论