/custom_lotteries

Simple lottery widget. Data retrieved from api, with custom filtering, settings/ plug and play functionality.

Primary LanguageJavaScript

Widget options:

    $('.dum-lotto').dumLottoModule({

        lotteryFilter: [2, 5, 7, 8, 21, 22, 23, 26],
        dataUrl: 'https://jsonblob.com/api/jsonBlob/f602cb33-b63c-11e6-871b-315e230c0a7c',
        handlebarsTemplate: '#lotto-template3',
        columns: 3, // items per row
        showSeconds: false, // boolean
        logoType: '', // "long", "square", empty

    });
  1. lotteryFilter: array of lottery indexes, filters out the selected lotteries;
  2. handlebarsTemplate: choose between 3 preset handebarsjs templates: '#lotto-template1', '#lotto-template2', '#lotto-template3';
  3. columns: integer for number of columns;
  4. showSeconds: boolean - show/hide seconds;
  5. logoType: select display type for logos: "long", "square", empty;

Widget main files:

/js/main.js index.html

To test functionality run local server first;