|
@ -40,6 +40,9 @@ var maxEntries = 0; |
|
|
var noTabId = ''; |
|
|
var noTabId = ''; |
|
|
var allTabIds = {}; |
|
|
var allTabIds = {}; |
|
|
|
|
|
|
|
|
|
|
|
var emphasizeTemplate = document.querySelector('#emphasizeTemplate > span'); |
|
|
|
|
|
var hiddenTemplate = document.querySelector('#hiddenTemplate > span'); |
|
|
|
|
|
|
|
|
var prettyRequestTypes = { |
|
|
var prettyRequestTypes = { |
|
|
'main_frame': 'doc', |
|
|
'main_frame': 'doc', |
|
|
'stylesheet': 'css', |
|
|
'stylesheet': 'css', |
|
@ -127,8 +130,6 @@ var emphasizeHostname = function(url) { |
|
|
return node; |
|
|
return node; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
var emphasizeTemplate = document.querySelector('#emphasizeTemplate > span'); |
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/ |
|
|
/******************************************************************************/ |
|
|
|
|
|
|
|
|
var createCellAt = function(tr, index) { |
|
|
var createCellAt = function(tr, index) { |
|
@ -190,6 +191,14 @@ var createRow = function(layout) { |
|
|
|
|
|
|
|
|
/******************************************************************************/ |
|
|
/******************************************************************************/ |
|
|
|
|
|
|
|
|
|
|
|
var createHiddenTextNode = function(text) { |
|
|
|
|
|
var node = hiddenTemplate.cloneNode(true); |
|
|
|
|
|
node.textContent = text; |
|
|
|
|
|
return node; |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/ |
|
|
|
|
|
|
|
|
var createGap = function(tabId, url) { |
|
|
var createGap = function(tabId, url) { |
|
|
var tr = createRow('1'); |
|
|
var tr = createRow('1'); |
|
|
tr.classList.add('doc'); |
|
|
tr.classList.add('doc'); |
|
@ -254,6 +263,7 @@ var renderLogEntry = function(entry) { |
|
|
tr.classList.add('tab'); |
|
|
tr.classList.add('tab'); |
|
|
if ( entry.tab === noTabId ) { |
|
|
if ( entry.tab === noTabId ) { |
|
|
tr.classList.add('tab_bts'); |
|
|
tr.classList.add('tab_bts'); |
|
|
|
|
|
tr.cells[1].appendChild(createHiddenTextNode('bts')); |
|
|
} else if ( entry.tab !== '' ) { |
|
|
} else if ( entry.tab !== '' ) { |
|
|
tr.classList.add('tab_' + entry.tab); |
|
|
tr.classList.add('tab_' + entry.tab); |
|
|
} |
|
|
} |
|
|