内容简介:Make your notifications
Welcome to Alertia!
Make your notifications awesome
Visit a visual guide on
Source code Alertia on github
How it looks?
Want a replacement from old looking js alert ?
Then just don't worry! Alertia can do it for you, by just a one line of code you can get a beautifull alert messages!
Alertia is a JS library to get awesome instant alert!
Just use:
alertia("A simple alert");
and you get this:
much better , customizable than simple js alert
Getting started
Link alertia js script through JSdelivr
- Insert this script in
<head></head>
<script src="https://cdn.jsdelivr.net/gh/abhiprojectz/alertia/dist/alertia.js"></script>
- Now just call alertia
<script type="text/javascript">
alertia("a simple pop");
</script>
It also supports JSON type formatting to make it simple and easily customizable!
Installation
All you need is a script via CDN, rest it needs 0 installation
Syntax
Basic
The order is "msg" , "type" , "style" & "time"
for eg:
alertia("Hi! i'm on", "normal" , 3000);
Advanved
Use json object formatting as:
=> "msg": "a random msg",
"type":"normal",
"style":"slit",
"time":"3000"
for eg:
alertia({"msg": "a random msg",
"type":"normal",
"style":"slit",
"time":"3000"});
Features
Alertia have various features that a modern alert should have!
Different types of type, style etc
Type
it has 3 types
- normal just a normal noification etc
- Danger for error, break code etc
- success for finishing of task etc
Style
To change animations you need to use style , alertis has lots of animation including roll , fade , slit , bounce etc...
Timer
To access use time:
Preview
At last
If you found this helpfull then do give it a star/upvote etc.
Created with JS by @abhiprojectz
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
复杂网络理论及其应用
汪小帆、李翔、陈关荣 / 清华大学出版社 / 2006 / 45.00元
国内首部复杂网络专著 【图书目录】 第1章 引论 1.1 引言 1.2 复杂网络研究简史 1.3 基本概念 1.4 本书内容简介 参考文献 第2章 网络拓扑基本模型及其性质 2.1 引言 2.2 规则网络 2.3 随机图 2.4 小世界网络模型 2.5 无标度网络模型 ......一起来看看 《复杂网络理论及其应用》 这本书的介绍吧!