3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-30 16:09:27 +01:00
dbot/public/script.js
Daniel Evans 53ad3f54ee New Theme
2011-11-25 14:44:18 +00:00

10 lines
253 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';
}
}