-
Rafael Ostertag authored
Gruntfile.js: concat and uglify for our javascript stuff. Added support for storing state of Bootstrap pills. Added jasmine tests.
Rafael Ostertag authoredGruntfile.js: concat and uglify for our javascript stuff. Added support for storing state of Bootstrap pills. Added jasmine tests.
Log.js 772 B
/**
* @author Rafael Ostertag <rafael.ostertag@math.uzh.ch>
*/
/* global console */
if (!QfqNS) {
var QfqNS = {};
}
(function (n) {
'use strict';
n.Log = {
level: 3,
message: function (msg) {
if (this.level <= 0) {
console.log('[message] ' + msg);
}
},
debug: function (msg) {
if (this.level <= 1) {
console.log('[debug] ' + msg);
}
},
warning: function (msg) {
if (this.level <= 2) {
console.log('[warning] ' + msg);
}
},
error: function (msg) {
if (this.level <= 3) {
console.log('[error] ' + msg);
}
}
};
})(QfqNS);