Skip to content

YSSF8/OnyxLibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

Onyx Library (v1.7)

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.

How to download and import:

  • 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.

How to use:

OnyxAlert

OnyxAlert('text');

OnyxPrompt

OnyxPrompt('text', 'value of text input');

OnyxConfirm

OnyxConfirm('text');

OnyxCreateElement

OnyxCreateElement('tag', 'parent', 'class', 'text', 'placeholder (if the tag is input tag)');

OnyxPrint (Replaced)

OnyxPrint('Text to view in the console', 'CSS Style');

OnyxToast

OnyxToast('text');

OnyxNotice

OnyxNotice('text');

OnyxSysNotif

OnyxSysNotif('text', 'content');

OnyxFollowPointer

OnyxFollowPointer('element, .class, #id');

Console messages

// Normale message box
log('Message', 'CSS style');

// Warning message
wrn('Message');

// Error message
err('Message')

Randomizers

// Random letter
OnyxLtrRandom('element, .class, or #id');

// Random number
OnyxNumRandom('element, .class, or #id');

Counter

OnyxCount('element, .class, or #id');

Screenshots:

About

A JavaScript library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published