42 lines
1003 B
JavaScript
42 lines
1003 B
JavaScript
Template.checkout.helpers({
|
|
chromebooks: function() {
|
|
return Chromebooks.find({}, {sort: {number: 1}});
|
|
}
|
|
});
|
|
Template.checkout.rendered = function() {
|
|
|
|
$(".chckChromebooks").mCustomScrollbar({
|
|
theme: 'dark',
|
|
scrollInertia: 10,
|
|
mouseWheel: { deltaFactor: 40 },
|
|
alwaysShowScrollbar: 2
|
|
});
|
|
}
|
|
Object.defineProperty(window, "console", {
|
|
value: console,
|
|
writable: false,
|
|
configurable: false
|
|
});
|
|
|
|
var i = 0;
|
|
function showWarningAndThrow() {
|
|
if (!i) {
|
|
setTimeout(function () {
|
|
console.log("%cWarning message", "font: 2em sans-serif; color: yellow; background-color: red;");
|
|
}, 1);
|
|
i = 1;
|
|
}
|
|
throw "Console is disabled";
|
|
}
|
|
|
|
var l, n = {
|
|
set: function (o) {
|
|
l = o;
|
|
},
|
|
get: function () {
|
|
showWarningAndThrow();
|
|
return l;
|
|
}
|
|
};
|
|
Object.defineProperty(console, "_commandLineAPI", n);
|
|
Object.defineProperty(console, "__commandLineAPI", n); |