Sha256: b58cabb18f5fefefb1f28475c0c0c4c3b1e49b0c650a596e519a89cc569b5af7

Contents?: true

Size: 1.61 KB

Versions: 22

Compression:

Stored size: 1.61 KB

Contents

(function(){
  'use strict';

  var moj = {

    Modules: {},

    Helpers: {},

    Events: $({}),

    init: function () {
      for (var x in moj.Modules) {
        if (typeof moj.Modules[x].init === 'function') {
          moj.Modules[x].init();
        }
      }
      // trigger initial render event
      moj.Events.trigger('render');
    },

    // safe logging
    log: function (msg) {
      if (window && window.console) {
        window.console.log(msg);
      }
    },
    dir: function (obj) {
      if (window && window.console) {
        window.console.dir(obj);
      }
    }

  };

  window.moj = moj;
}());

(function () {
  'use strict';

  // Invite interested developers to join us
  moj.Modules.devs = {
    init: function () {
      var m = '      ___          ___       ___\n     /__/\\        /  /\\     /  /\\\n    |  |::\\      /  /::\\   /  /:/\n    |  |:|:\\    /  /:/\\:\\ /__/::\\\n  __|__|:|\\:\\  /  /:/  \\:\\\\__\\/\\:\\\n /__/::::| \\:\\/__/:/ \\__\\:\\  \\  \\:\\\n \\  \\:\\~~\\__\\/\\  \\:\\ /  /:/   \\__\\:\\\n  \\  \\:\\       \\  \\:\\  /:/    /  /:/\n   \\  \\:\\       \\  \\:\\/:/    /__/:/\n    \\  \\:\\       \\  \\::/     \\__\\/\n     \\__\\/        \\__\\/',
      txt = '\n\nLike what you see? Want to make a difference?'+
            '\n\nFind out how we\'re making the Ministry Of Justice Digital by Default.'+
            '\nhttps://mojdigital.blog.gov.uk/.'+
            '\n\nGet in touch to see what positions are available and see what projects you could be working on.'+
            '\nhttps://twitter.com/MOJDigital/statuses/413340917509001216';
      moj.log(m+txt);
    }
  };
}());

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
moj_internal_template-0.1.9 app/assets/javascripts/moj.js
moj_internal_template-0.1.8 app/assets/javascripts/moj.js
moj_internal_template-0.1.7 app/assets/javascripts/moj.js
moj_internal_template-0.1.6 app/assets/javascripts/moj.js
moj_internal_template-0.1.5 app/assets/javascripts/moj.js
moj_internal_template-0.1.4 app/assets/javascripts/moj.js
moj_internal_template-0.1.2 app/assets/javascripts/moj.js
moj_internal_template-0.1.1 app/assets/javascripts/moj.js
moj_template-0.14.1 app/assets/javascripts/moj.js
moj_template-0.14.0 app/assets/javascripts/moj.js
moj_internal_template-0.1.0 app/assets/javascripts/moj.js
moj_template-0.13.0 app/assets/javascripts/moj.js
moj_template-0.12.0 app/assets/javascripts/moj.js
moj_template-0.11.1 app/assets/javascripts/moj.js
moj_template-0.11.0 app/assets/javascripts/moj.js
moj_template-0.10.3 app/assets/javascripts/moj.js
moj_template-0.10.2 app/assets/javascripts/moj.js
moj_template-0.10.1 app/assets/javascripts/moj.js
moj_template-0.10.0 app/assets/javascripts/moj.js
moj_template-0.9.0 app/assets/javascripts/moj.js