- Place the below script tag under the head section in your HTML webpage.
<script src="https://cdn.jsdelivr.net/gh/cosmogicofficial/quantumalert@latest/minfile/quantumalert.js" charset="utf-8"></script>
- Add the
QuantumAlertlibrary. It improves the performance of library and your webpage.
<script src="example.js" charset="utf-8" defer async></script>
Here replace the
example.js with the name of your
For alert with
Qual.success("Hello Heading", "Helllo content");
Qual.error("Oops!", "Something went wrong!", err);
alert box with Heading:
Qual.swh("Hello Cosmogic", "We are here to make coding fun!");
confimation alert box where you can change
icon and also attach a function to the buttons :
Qual.confirm( "Submitted Successfully", "Your File has been uploaded successfully", war, "Ok", "Cancel", "hello", "max", );
A prompt modal, with an
input field where user can enter
Qual.confirm( "Are you sure you want to continue", "Click Ok button to continue and Cancel to Close", succ, "OK", "Cancel", "yes_btn_fun", "no_btn_fun", "text", "Enter your age in this field" );
If you're changing the core library:
- Move to the
- Submit pull request.
Follow us on
You can contribute also if you wish to do so.