open-index/open-npm huggingface dataset:
npm package: @qwertycpl/message.js
Description: A simple message html message shower
Latest version: 1.1.4
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

<center>
    <h1>message.js</h1>
    <h3>A simple message html message shower</h3>
</center>

## Installation

Add this line **BEFORE** writing a script

``` HTML
<script src="https://unpkg.com/@qwertycpl/message.js@1.1.3/message.min.js"></script>
```

## Usage

Now you can use ``` showMessage() ``` in your code

Usage:
``` JS
showMessage('Hello world!', '#fff')
// *arg1: Message to show
// arg2: Background color of the message
// * - required
```

Example:

``` HTML
<!DOCTYPE html>
<html>
    <head>
        <title>message.js Example</title>
        <style>body { background-color: #000 }</style>
    </head>

    <body>
        <button onclick="helloWorld()">Click for message!</button>
        <script src="https://unpkg.com/@qwertycpl/message.js@1.1.4/message.min.js"></script>
        <script>
            function helloWorld() {
                showMessage('Hello world!', 'blue'); // you can also use css colors like blue, red, rgb(255, 0, 0)
            };
        </script>
    </body>
</html>
```