Skip to content
Alistair Smith edited this page Feb 12, 2019 · 4 revisions

Welcome to the jInfo wiki!

Create simple, customizable popups for users.

Firstly, include jInfo in your project. I recommend using JsDelivr:

<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/aabbccsmith/jInfo/src/jinfo.min.js"></script>

Next, create a jInfo:

var myInformation = new jInfo(position, style, primaryFont, content, parent, callback);

Now add settings:

Positions: bottomLeft bottomRight topLeft topRight

Styles: orange purple mint pink

Primary Font: any font that is either downloaded or installed on to the end user's device.

Content: Any string that will be written into the jInfo when it is created.

Parent: (optional) the parent that the element will be appended to.

Callback: the function to call once the jInfo has been created. Replies with one argument with the value true.

Next Steps...

Clone this wiki locally