Web前端开发网

fly63.com

首页 资源 工具 文章 教程 栏目
  • 在线搜索
  • 文章标签
  • 广告合作
  • 赞助一下
  • 关于我们
资源推荐
堆友AI
零门槛,多风格AI绘画免费生成,电商海报设计神器
仙宫云
GPU算力租赁,云算力在线租赁平台
星月写作
人工智能写作助手
Seedance 2.0
字节跳动新一代AI视频生成模型全面解析
友情链接交易
为广大站长提供友情链接买卖、软文交易等服务
LiblibAI
一站式AI内容创作生成平台,原创AI模型分享社区
Trae
字节跳动推出的 AI原生编程工具
奇绘馆AI视频
新一代AI视频创作平台
AiPPT
全智能AI一键生成 PPT
任推邦
APP推广项目分发和流量变现平台

资源分类

AI智能 酷站推荐 招聘/兼职 框架/库 模块/管理 移动端UI框架 Web-UI框架 Js插件 Jquery插件 CSS相关 IDE环境 在线工具 图形动效 游戏框架 node相关 调试/测试 在线学习 社区/论坛 博客/团队 前端素材 图标/图库 建站资源 设计/灵感 IT资讯
网站收录 / 问题反馈

iNotify

分享
复制链接
新浪微博
QQ 好友

扫一扫分享

网站地址:https://git.io/iNotify
GitHub:https://github.com/jaywcjlove/iNotify
网站描述:实现浏览器的 title 闪烁、滚动、声音提示等系统通知
访问官网
GitHub

JS实现浏览器标题的闪烁,滚动,语音提示,Chrome / Safari / FireFox / IE通知。没有依赖关系。它不会干扰任何JavaScript库或框架。具有合理的占用空间5.05kb(压缩后:1.75kb) 


安装

您将需要在系统上安装Node.js。

# v2.x
$ npm install @ wcjiang / notify --save
# v1.x  
$ npm install title-notify --save


使用

import Notify from '@wcjiang/notify';

const notify = new Notify({
  message: 'There is message.', // page title.
  effect: 'flash', // flash | scroll, Flashing or scrolling
  openurl:'https://github.com/jaywcjlove/iNotify', // Click on the pop-up window to open the connection address
  onclick: () => { // Click on the pop-up window trip event
    // Programmatically closes a notification.
    notify.close();
    console.log('---')
  },
  // Optional playback sound
  audio:{
    // You can use arrays to pass sound files in multiple formats.
    file: ['msg.mp4','msg.mp3','msg.wav']
    // The following is also work.
    // file: 'msg.mp4'
  },
  // Title flashing, or scrolling speed
  interval: 1000,
  // Optional, default green background white text. Favicon
  updateFavicon:{
    // favicon font color
    textColor: '#fff',
    // Background color, set the background color to be transparent, set the value to "transparent"
    backgroundColor: '#2F9A00' 
  },
  // Optional chrome browser notifications,
  // The default is not to fill in the following content
  notification:{
    title:'Notification!', // Set notification title
    icon:'', // Set notification icon, The default is Favicon
    body:'You have a new message!', // Set message content
  }
});
 
notify.player();


仅供个人学习参考/导航指引使用,具体请以第三方网站说明为准,本站不提供任何专业建议。如果地址失效或描述有误,请联系站长反馈~感谢您的理解与支持!

链接: https://fly63.com/nav/3151

更多»
热门资源
swiper
目前应用较广泛的移动端网页触摸内容滑动js插件
官网
GitHub
layer
layer是一款口碑极佳的web弹层组件
点击进入
GitHub
iScroll.js
IScroll是移动页面上被使用的一款仿系统滚动插件。
官网
GitHub
wangEditor
基于javascript和css开发的 Web富文本编辑器
官网
GitHub
ueditor
由百度web前端研发部开发所见即所得富文本web编辑器
官网
GitHub
highlight
Highlight.js 是一个用 JavaScript 写的代码高亮插件,在客户端和服务端都能工作。
官网
GitHub
UglifyJS
一个js 解释器、最小化器、压缩器、美化器工具集
官网
GitHub
lozad.js
高性能,轻量级,可配置的懒加载图片工具
官网
GitHub
Sortable.js
简单灵活的 JavaScript 拖放排序插件
官网
GitHub
validate.js
表单提供了强大的验证功能,让客户端表单验证变得更简单
官网
GitHub
Draggin.js
一款兼容移动手机的js拖拽插件
官网
GitHub
lazysizes.js
响应式图像延迟加载JS插件【懒加载】
官网
GitHub
类似于iNotify的资源
AlloyFinger
一款非常轻量的开源手势库
官网
GitHub
vue-tour
一款轻量级,简单且可定制的用户引导Vue.js插件
官网
GitHub
ExpandingGridItemAnimation
一款js和CSS3炫酷图片网格缩放动画特效
官网
GitHub
Fitty
自动调整文本大小以适应其父容器的 Js库
官网
GitHub
co.js
avaScript 异步解决方案的库,用于让异步的代码同步化
官网
GitHub
Keypress.js
一款强大的键盘输入,可捕获侧重于游戏输入的Javascript
官网
GitHub
vue-virtual-scroller
带任意数目数据的顺畅的滚动
官网
GitHub
onfire.js
一个迷你版(~ 500b)的事件订阅和发布的库
官网
GitHub
目录

手机扫一扫预览

》
分享组件加载中...
首页 技术导航 在线工具 技术文章 教程资源 前端标签 AI工具集 前端库/框架 实用工具箱 广告合作 关于我们

Copyright © 2018 Web前端开发网 All Rights Reserved. 提供免费在线工具、编程学习资源(教程/框架/库),内容以学习参考为主,助您解决各类实际问题,快速提升专业能力。