V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
MinonHeart

Fullscreen - 浏览器全屏包

  •  
  •   MinonHeart ·
    Aqours · Oct 11, 2017 · 2303 views
    This topic created in 3124 days ago, the information mentioned may be changed or developed.

    跨浏览器全屏 API 的二次封装

    支持跨 frame 调用,不需要在多个 frame 中加载相同的脚本

    没找到可以跨 frame 用的包,就动手写了个

    // 这两种方式都可以使用
    proxyDocument.onfullscreenchange
    proxyDocument.addEventListener('fullscreenchange', function() {});
    

    demo - http://git.hub.moe/Fullscreen/

    github (文档) - https://github.com/Aqours/Fullscreen

    2 replies    2017-10-14 07:42:56 +08:00
    dyxang
        1
    dyxang  
       Oct 11, 2017 via Android
    用手机浏览器试这个,结果崩溃了
    coderdusk
        2
    coderdusk  
       Oct 14, 2017
    好域名
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2383 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 11:40 · PVG 19:40 · LAX 04:40 · JFK 07:40
    ♥ Do have faith in what you're doing.