This commit is contained in:
Alexandre Dulaunoy 2014-08-11 16:57:48 +02:00
commit 7d396b5649
3 changed files with 10 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 275 KiB

View file

@ -22,6 +22,7 @@ source.onmessage = function(event) {
function create_log_table(obj_json) { function create_log_table(obj_json) {
tableBody = document.getElementById("tab_body") tableBody = document.getElementById("tab_body")
var tr = document.createElement('TR') var tr = document.createElement('TR')
var time = document.createElement('TD')
var chan = document.createElement('TD') var chan = document.createElement('TD')
var level = document.createElement('TD') var level = document.createElement('TD')
var scrpt = document.createElement('TD') var scrpt = document.createElement('TD')
@ -56,15 +57,19 @@ function create_log_table(obj_json) {
src.appendChild(source_link); src.appendChild(source_link);
var now = new Date();
var timepaste = now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds();
time.appendChild(document.createTextNode(timepaste));
chan.appendChild(document.createTextNode(chansplit[0])); chan.appendChild(document.createTextNode(chansplit[0]));
level.appendChild(document.createTextNode(chansplit[1])); level.appendChild(document.createTextNode(chansplit[1]));
scrpt.appendChild(document.createTextNode(parsedmess[0])); scrpt.appendChild(document.createTextNode(parsedmess[0]));
//src.appendChild(document.createTextNode(parsedmess[1]));
pdate.appendChild(document.createTextNode(parsedmess[2])); pdate.appendChild(document.createTextNode(parsedmess[2]));
nam.appendChild(document.createTextNode(parsedmess[3])); nam.appendChild(document.createTextNode(parsedmess[3]));
msage.appendChild(document.createTextNode(parsedmess[4])); msage.appendChild(document.createTextNode(parsedmess[4]));
tr.appendChild(time)
tr.appendChild(chan); tr.appendChild(chan);
tr.appendChild(level); tr.appendChild(level);
tr.appendChild(scrpt); tr.appendChild(scrpt);

View file

@ -91,9 +91,9 @@
<option value="100">100</option> <option value="100">100</option>
</select> </select>
</label> </label>
<input id="checkbox_log_info" type="checkbox" value="info"> INFO <input id="checkbox_log_info" type="checkbox" value="info" checked="true"> INFO
<input id="checkbox_log_warning" type="checkbox" value="warning"> WARNING <input id="checkbox_log_warning" type="checkbox" value="warning" checked="true"> WARNING
<input id="checkbox_log_critical" type="checkbox" value="critical"> CRITICAL <input id="checkbox_log_critical" type="checkbox" value="critical" checked="true"> CRITICAL
</div> </div>
</div> </div>
@ -103,6 +103,7 @@
<table class="table table-bordered table-hover table-striped" id="table_log"> <table class="table table-bordered table-hover table-striped" id="table_log">
<thead> <thead>
<tr> <tr>
<th>Time</th>
<th>Channel</th> <th>Channel</th>
<th>Level</th> <th>Level</th>
<th>Script Name</th> <th>Script Name</th>