mirror of
https://github.com/evilhero/mylar
synced 2024-12-22 07:42:24 +00:00
17 lines
No EOL
414 B
JavaScript
17 lines
No EOL
414 B
JavaScript
window.log = function(){
|
|
log.history = log.history || [];
|
|
log.history.push(arguments);
|
|
arguments.callee = arguments.callee.caller;
|
|
|
|
if (this.console) {
|
|
console.log(Array.prototype.slice.call(arguments));
|
|
}
|
|
};
|
|
|
|
function toggle(source) {
|
|
checkboxes = document.getElementsByClassName('checkbox');
|
|
|
|
for (var i in checkboxes) {
|
|
checkboxes[i].checked = source.checked;
|
|
}
|
|
} |