Web前端开发网

fly63.com

首页 资源 工具 文章 教程 栏目
  • 在线搜索
  • 文章标签
  • 广告合作
  • 赞助一下
  • 关于我们
资源推荐
腾讯云优惠券
云服务器,云数据库,CDN,域名注册等多种云计算服务
硅云优惠券
领先的基础云计算服务提供商,PHP云虚拟主机第一品牌
蜂小推
不扣量的项目推广平台
宝塔服务器面板
简单好用的服务器运维面板
阿里云优惠券
卓越的云计算技术和服务提供商
Trae
字节跳动推出的 AI原生编程工具
扣子Coze
职场AI,就用扣子
LiblibAI
一站式AI内容创作生成平台,原创AI模型分享社区
豆包AI
字节跳动旗下 AI 智能助手
fly63工具箱
简单、易用、便捷的在线工具

资源分类

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的资源
soundmanager2.js
一个非常优秀的web端音效播放库
官网
GitHub
labella.js
Twitter 开源的时间轴标签放置工具
官网
GitHub
postcss-pxtorem
一款转换px为rem的插件
官网
GitHub
TinyMCE
一个轻量级的基于浏览器的所见即所得编辑器
官网
GitHub
lib-flexible
实现移动端H5页面适配
官网
GitHub
sentinel.js
使用 CSS 选择器检测新的 DOM 节点的js库
官网
GitHub
Proton
一个 JavaScript 粒子引擎
官网
GitHub
react-native-masonry
用于渲染一个图像masonry~ish布局react-native组件
点击进入
GitHub
目录

手机扫一扫预览

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

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