Onyx Library will not get updated again for some reason.
A JavaScript library allows the user to use more function. But there is a replacement for it.
- Download Onyx.min.js.
- Put it in the folder where your HTML is.
- Copy the code bellow.
<script src="./Onyx.min.js" type="text/javascript"></script>
- Paste the code at the end of the HTML, before the end of body.
OnyxAlert('text');
OnyxPrompt('text', 'value of text input');
OnyxConfirm('text');
OnyxCreateElement('tag', 'parent', 'class', 'text', 'placeholder (if the tag is input tag)');
OnyxPrint (Replaced)
OnyxPrint('Text to view in the console', 'CSS Style');
OnyxToast('text');
OnyxNotice('text');
OnyxSysNotif('text', 'content');
OnyxFollowPointer('element, .class, #id');
// Normale message box
log('Message', 'CSS style');
// Warning message
wrn('Message');
// Error message
err('Message')
// Random letter
OnyxLtrRandom('element, .class, or #id');
// Random number
OnyxNumRandom('element, .class, or #id');
OnyxCount('element, .class, or #id');