Get Started


You have to include CSS

https://www.iwinengine.it/_res/css/iwin/1.0/iwin.css


Two Javascripts. The first contains all the plugins used by the library to improve and speed-up programming, the latter is the library itself.

https://www.iwinengine.it/_res/js/iwin/1.0/iwin.plugins.min.js
https://www.iwinengine.it/_res/js/iwin/1.0/iwin.min.js


A configuration Javascript variables

var iWinConfig = {
    developmentStatus: false, // CHANGE TO true IF YOU WANT TO LOG VIA App.error.log(message);
    sweepstakeID: 'YOUR SWEEPSTAKE ID',
    sweepstakeApiKey: 'YOUR SWEEPSTAKE API KEY',
    extra_fields: {},
    ugc_fields: {},
    language: 'YOUR LANGUAGE',
    apiVersion: '1.0',
    baseUrl: 'https://www.iwinengine.it'
};


Finally... initialize

$(document).ready(function() {
    App = new iWin(iWinConfig.developmentStatus);
    App.init();
    App.language.init(iWinConfig.language);
    App.apis.init(iWinConfig.baseUrl, iWinConfig.apiVersion);
});