All Projects → any86 → be-full

any86 / be-full

Licence: MIT License
🍔 任意元素全屏显示, 远小于1kb.

Programming Languages

typescript
32286 projects
HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to be-full

osu-cs-class-explorer
Angular-based web app allows OSU eCampus CS students to view candid class reviews from past students. Data scraped from OSU subreddit survey.
Stars: ✭ 24 (-77.78%)
Mutual labels:  full
django-serializable-model
Django classes to make your models, managers, and querysets serializable, with built-in support for related objects in ~150 LoC
Stars: ✭ 15 (-86.11%)
Mutual labels:  full

be-full NPM Version Size

全屏显示, 支持PC/移动端, 不到1kb. 🚀在线演示

安装

npm i -S be-full

快速开始

网页全屏
import {beFull} from 'be-full';
beFull();
元素全屏
const el = document.getElementById('video');
beFull(el);

🔥 API

exitFull(退出全屏)
exitFull();
toggleFull(切换全屏/退出)

使用方法同beFull, 只是第二次点击会执行exitFull

toggleFull();

// 切换指定元素全屏/退出
toggleFull(document.getElementById('video'));
isFull(元素是否全屏)
isFull(document.getElementById('video')); // true或者false
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].