Web前端开发网

fly63.com

首页 资源 工具 文章 教程 栏目
  • 在线搜索
  • 文章标签
  • 广告合作
  • 赞助一下
  • 关于我们
资源推荐
趣网商城
私密生活好物,隐私配送,无痕购物
扣子Coze
职场AI,就用扣子
fly63工具箱
简单、易用、便捷的在线工具
星月写作
人工智能写作助手
免费资源下载中心
一站式解决工作学习需求的宝藏网站
爱派AiPy
一款可本地部署的AI智能体,帮你操作电脑、手机、服务器设备
Seedance 2.0
字节跳动新一代AI视频生成模型全面解析
SpeedAI
一键去重、降AIGC率、数据可视化、论文写作
豆包AI
字节跳动旗下 AI 智能助手
AiPPT
全智能AI一键生成 PPT

资源分类

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的资源
Capo.js
用于评估HTML文档 <head> 部分质量的工具
官网
GitHub
Tippy.js
一款轻量级的纯js tooltip工具提示插件
官网
GitHub
spop.js
一款纯js toast消息提示通知插件
官网
GitHub
qrious
纯Js使用Canvas生成QR代码
官网
GitHub
Switch.js
一款可以将任意CheckBox控件转换为iOS样式滑动开关按钮的JS插件
官网
GitHub
heatmap.js
强大的Web热力图插件
官网
jsPDF
将HTML转为PDF文件
官网
GitHub
vim.js
支持 Vim 的 JavaScript 接口
点击进入
GitHub
目录

手机扫一扫预览

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

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