LogPanel = {
	day: 0,
	messages: [],
	clear: function(){this.messages = []},
	hide: function(){
		$('#main_content').toggleClass('main_content80 main_content100');
	}
};

function LogMessage(filter, text) {
	this.filter = filter;
	this.text = text;
};

LogPanel.filters = ["Badge", "Not enough", "Paid", "Gained", "Reward", "Max", "lecturer", "Lecturer"];

var check_html ="";
LogPanel.filters.forEach(function (filter) {
	check_html += '<input type="checkbox" name="log_filter" checked="checked" value="'+filter+'">'+filter;
});

document.addEventListener("DOMContentLoaded", function() {
	document.getElementById("log_panel_filters").insertAdjacentHTML('beforeend', check_html);
});

function FilterLogs(){
	var check = document.getElementsByName("log_filter");
	check.forEach(function(item){
		if(item.checked==true){
			LogPanel.messages.forEach(function(logMessage){
				if(logMessage.text.includes(item.value)){
					logMessage.filter = true;
				}
			});
		}else{
			LogPanel.messages.forEach(function(logMessage){
				if(logMessage.text.includes(item.value)){
					logMessage.filter = false;
				}
			});
		}
	});
};
@@ -243,17 +243,16 @@
  text;%0A%7D
-;
 %0A%0ALogPan
@@ -760,38 +760,67 @@
 %22);%0A
-%09check.forEach(function(item)%7B
+    for (var key in check) %7B%0A        var item = check%5Bkey%5D;
 %0A%09%09i
@@ -1144,9 +1144,6 @@
 %7D%0A%09%7D
-);
 %0A%7D
-;

Fix browsers issue