-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Alistair Smith edited this page Feb 12, 2019
·
4 revisions
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
.