fof/nightmode
最新稳定版本:1.6.0
Composer 安装命令:
composer require fof/nightmode
包简介
Add a Night Mode option for your users to use on your Flarum forum
README 文档
README
A Flarum extension. Add a Night Mode 🌙 for your users to use on your Flarum forum! (THE LIGHT 🌞, IT BUUUURNSSS!!!)
- A new "Night Mode" menu option will appear in your user options when you click on your avatar next to the notifications icon.
- A "Day Mode" option has been added as well to make the light appear again! (BEGONE, DANKESS!)
Installation
Install manually with composer:
composer require fof/nightmode:"*"
Updating
composer update fof/nightmode
Integrating with fof/nightmode from another extension
Each time the mode is switched from day to night (and vice versa), a fofnightmodechange event is dispatched. An extension can then listen to this event to react to this change, like so:
if (flarum.extensions['fof-nightmode']) { document.addEventListener('fofnightmodechange', (event) => { if (event.detail == 'day') { console.log('day mode'); } else { console.log('night mode'); } }); }
Links
An extension by FriendsOfFlarum.
统计信息
- 总下载量: 68.6k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 38
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 2
其他信息
- 授权协议: MIT
- 更新时间: 2019-09-28