forked from GitHub/dbot
23 lines
698 B
JavaScript
23 lines
698 B
JavaScript
function search(q)
|
|
{
|
|
var quotes = document.getElementsByClassName('quotes');
|
|
for( var i in quotes )
|
|
{
|
|
if( quotes[i].innerHTML == undefined ) continue;
|
|
quotes[i].className = quotes[i].innerHTML.indexOf(q) == -1 ? 'quotes hidden' : 'quotes';
|
|
}
|
|
}
|
|
|
|
function searchNotifies(q) {
|
|
var notifies = document.getElementById('notifies');
|
|
for (var i=1, row; row=notifies.rows[i]; i++) {
|
|
if(row.cells[3].innerHTML.indexOf(q) == -1 &&
|
|
row.cells[2].innerHTML.indexOf(q) == -1 &&
|
|
row.cells[1].innerHTML.indexOf(q) == -1) {
|
|
row.style.display = 'none';
|
|
} else {
|
|
row.style.display = '';
|
|
}
|
|
}
|
|
}
|