Alertism
A Good Replacement For Default JavaScript Alerts Which Also Makes Good Pop-Ups
Install / Use
/learn @AssassinAguilar/AlertismREADME
Introduction
Alertism.js is a JavaScript Library which is used to make the default Alerts of JavaScript more beautiful and good-looking than original with some few lines of code. This is the V2.0.0 of Alertism.js by Assassin. Alertism.js is also used to make some nice Toasts means Pop-Ups. <br /><br />
Implementation
Let's talk about the easy implementation of Alertism.js V2.0.0 to your webpage. You just have to copy/paste the following CDN of Alertism.js V2.0.0 to your webpage. This CDN will import the Alertism.js V2.0.0 Library from it's repository on Assassin's GitHub profile to your webpage.
<script src="https://cdn.jsdelivr.net/gh/AssassinAguilar/Alertism/dist/V2.0.0/main.js"></script>
or via npm
npm i alertism --save
then
import { Alertism, Toast } from "node_modules/alertism/alertism.js";
Usage
Alertism({
alertHeading: "Heading for Alert",
alertText: "Text for Alert."
})
That was the basic calling of the Alertism.js V2.0.0 Alerts.
WARNING:- 2 Alerts can't be used at same event listeners, So if you want to use 2 Alerts at same time. You have to use the other one in the onConfirmed like argumetns of the first one.
The main object is Alertism which contains all arguments in a form of array. Check out the following table and try to understand it carefully as you are only become able to use Alertism.js V2.0.0 after understanding the following table.
Arguments Table
<table> <thead> <tr> <th> Argument </th> <th> Argument Type </th> <th> Work </th> </tr> </thead> <tbody> <tr> <td> alertHeading </td> <td> String ( Text ) </td> <td> Heading For The Alert </td> </tr> <tr> <td> alertText </td> <td> String ( Text ) </td> <td> Text For The Alert </td> </tr> <tr> <td> alertHTML </td> <td> String ( HTML Code ) </td> <td> HTML Code For Alert </td> </tr> <tr> <td> btnText </td> <td> String ( Text ) </td> <td> Text for Right Side Button </td> </tr> <tr> <td> closeBtnText </td> <td> String ( Text ) </td> <td> Enable a Button on Left Side and Text for It </td> </tr> <tr> <td> alertFooter </td> <td> String ( HTML Code or Text ) </td> <td> HTML Code or Text For Footer </td> </tr> <tr> <td> enableIcon </td> <td> Boolean ( True or False ) </td> <td> Enables Icon For The Alert </td> </tr> <tr> <td> icon </td> <td> Array </td> <td> Colour, Position and Type for Icon </td> </tr> <tr> <td> enableInput </td> <td> Boolean ( True or False ) </td> <td> Enable Input for Alert </td> </tr> <tr> <td> input </td> <td> Array </td> <td> Type ( within textarea ), Value and PlaceHolder for Input </td> </tr> <tr> <td> enableCloseBtn </td> <td> Boolean ( True or False ) </td> <td> Enable a Button to Close the Alert </td> </tr> <tr> <td> backdrop </td> <td> String ( CSS Background Code ) </td> <td> Change the Backdrop of The Alert </td> </tr> <tr> <td> background </td> <td> String ( CSS Background Code ) </td> <td> Change the Background of The Alert </td> </tr> <tr> <td> theme </td> <td> String </td> <td> Theme for The Alert </td> </tr> <tr> <td> timer </td> <td> Int ( milliseconds ) </td> <td> Close the Alert automatically in the given time </td> </tr> <tr> <td> position </td> <td> String </td> <td> Open the Alert at the given position </td> </tr> <tr> <td> animation </td> <td> String </td> <td> Sets animation for the Alert </td> </tr> <tr> <td> animationIn </td> <td> String </td> <td> Sets animation for the Alert Coming </td> </tr> <tr> <td> animationOut </td> <td> String </td> <td> Sets animation for the Alert Going </td> </tr> <tr> <td> onConfirmed </td> <td> Function </td> <td> A function which will work after closing the alert with confirming the following situation </td> </tr> <tr> <td> onDenied </td> <td> Function </td> <td> A function which will work after closing the alert with dening the following situation </td> </tr> <tr> <td> onCanceled </td> <td> Function </td> <td> A function which will work after closing the alert with canceling the following situation </td> </tr> <tr> <td> onAutoClose </td> <td> FunctiRelated Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
