Commit 286879f3 authored by Ian Dennis Miller's avatar Ian Dennis Miller

added marked button

parent 5f652cab
......@@ -140,3 +140,18 @@ var search_show_all = function() {
var search_show_marked = function() {
var re = new RegExp('\<mark\>', 'i');
var els = document.querySelectorAll(".card");
for (var i = 0; i < els.length; i++) {
if (els[i].innerHTML.match(re)) {
els[i].style.display = "block";
......@@ -21,7 +21,8 @@
<a href="#" id="ui-control" class="control expanded" onclick="toggle_ui(); return false;">&gt;</a>
<div id="ui-search">
<input id="ui-query" name="query" type="text" onchange="new_search();"></input>
<a href="#" id="ui-search-show-all" onclick="search_show_all(); return false;">[show all]</a>
<a href="#" id="ui-search-show-all" onclick="search_show_all(); return false;">[all]</a>
<a href="#" id="ui-search-show-all" onclick="search_show_marked(); return false;">[marked]</a>
<a href="#" id="ui-search-clear" onclick="search_clear_marks(); return false;">[clear]</a>
<div id="ui-content">
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment