Multifunctional Audio / System /Favicon / Title Notification Library – iNotify.js
Import the iNotify.js into the webpage.
<script src="iNotify.js"></script>
The basic usage:
var iNotify = new iNotify({
message: 'Title Message',
effect: 'flash', // flash | scroll
openurl:"http://www.bing.com", // URL
disableFavicon: false,
onclick:function(){
console.log("---")
},
//audio
audio:{
file: ['msg.mp4','msg.mp3','msg.wav']
},
//interval in ms
interval: 1000,
//update favicon
updateFavicon:{
textColor: "#fff",
backgroundColor: "#2F9A00"
},
//desktop notification
notification:{
title:"Title",
icon:"",
body:'Message'
}
}) API methods.
// play audio
iNotify.player()
// close
iNotify.close();
// autoplay
iNotify.loopPlay()
// stop audio
iNotify.stopPlay()
// set path to audio files
iNotify.setURL('msg.mp3')
iNotify.setURL(['msg.mp3','msg.ogg','msg.mp4'])
// for title notification
iNotify.setTitle(true)
iNotify.setTitle('New title')
iNotify.setTitle()
iNotify.setInterval(2000)
iNotify.addTimer()
iNotify.clearTimer()
// for desktop notification
iNotify.notify({
title:"Tigle",
body:"Message",
openurl:"http://www.bing.com",
onclick:function(){
console.log("---")
}
});
// for favicon notification
iNotify.setFavicon(10)
iNotify.faviconClear()
// get title
iNotify.init().title; v2.1.4 (2025-10-11)
v2.1.3 (2023-11-26)
v2.1.1/2 (2023-11-25)
v2.1.0 (2022-03-25)
2022-03-24
v2.0.12 (2018-12-05)
v2.0.12 (2018-12-05)
v2.0.11 (2018-10-25)
v2.0.8 (2018-07-29)
v2.0.7 (2018-07-17)
The post Multifunctional Audio / System /Favicon / Title Notification Library – iNotify.js appeared first on CSS Script.
A short scene featuring Sydney Sweeney has reportedly been left out of the final cut…
A short scene featuring Sydney Sweeney has reportedly been left out of the final cut…
Mobile Swipe Menu is a vanilla JavaScript library that creates touch-enabled off-canvas side menus for…
tiks is a JavaScript sound effect library that generates iOS-like UI audio feedback at runtime…
LANSING, MI (WOWO) A broad coalition of business groups, housing advocates and environmental organizations is…
LANSING, MI (WOWO) Michigan lawmakers are advancing a series of proposals aimed at reforming the…
This website uses cookies.