Sha256: b57e52c06439a0afd54d081bdd01394aea6d7d120ce7e9bb728d25ffc347c3ec

Contents?: true

Size: 517 Bytes

Versions: 2

Compression:

Stored size: 517 Bytes

Contents

$(document).ready(function () {
    var playground = new PlayGround(".area");
    var renderMatrix = function (days) {
        $.get('/data/' + days, function (data, status) {
            if (status == 'success') {
                playground.load(JSON.parse(data));

            } else {
                console.log(data);
                alert('error occurred!')
            }
        })
    };

    $('#visualize').on('click', function () {
        renderMatrix($('#days').val())
    });

    renderMatrix(10);
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pairing_matrix-0.1.1 lib/pairing_matrix/server/public/index.js
pairing_matrix-0.1 lib/pairing_matrix/server/public/index.js