mirror of
https://github.com/evilhero/mylar
synced 2024-12-27 01:57:01 +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;
|
|
}
|
|
} |