Sha256: 0e08e61a36a44a431693bb6c352e18b61ca3a1aaaf548e474484767078c338f1

Contents?: true

Size: 833 Bytes

Versions: 1

Compression:

Stored size: 833 Bytes

Contents

window.Idecoder = function(options) {
    var _this = this;
    return _this.initialize(options);
};

$.extend(Idecoder.prototype, {
    settings: {
        theme: 'monokai',
        language: 'ruby',
        read_only: false,
        height: "300px",
        width: "90%",
        border: "1px solid lightgray",
    },
    initialize: function(options) {
        let sett = this.settings
        $.extend(jQuery.extend(sett, options));
        return this.create_canvas();
    },
    /*=========================
          BUILD CONTROLS
    =========================
    */

    create_canvas: function() {
        var _this = this;
        $('body').append("<div class=\"idecoder-js \">\n  <link rel=\"stylesheet\" href=\"/assets/idecoder.css\">\n</div>");
    },
    $: function(el) {
        return this.$el.find(el);
    },

});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
idecoder-0.1.2 app/assets/javascripts/idecoder.js