aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV.Krishn <vkrishn@insteps.net>2022-12-11 04:39:32 +0530
committerV.Krishn <vkrishn@insteps.net>2022-12-11 04:39:32 +0530
commitd2badd9c781184fee2dcb399b9a59a990d90e1cc (patch)
tree68d2c37ee5fe4daa943a96777be8101137c6a46a
parentd9e3e608b15894341310e003ea2c445651582f82 (diff)
downloadscripts-d2badd9c781184fee2dcb399b9a59a990d90e1cc.tar.bz2
add search code, but disabled by default in get-irclog.sh
-rw-r--r--alpine/irc/log/get-irclog.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/alpine/irc/log/get-irclog.sh b/alpine/irc/log/get-irclog.sh
index f1eab91..0bd94e5 100644
--- a/alpine/irc/log/get-irclog.sh
+++ b/alpine/irc/log/get-irclog.sh
@@ -98,6 +98,23 @@ body='
<body><div id="ircchat"><ul class="list">
';
footer='</ul>'
+search='
+ <div class="searchwrap"><input class="search" />
+ <span class="sort" data-sort="ts">[TimeStamp]</span>
+ <span class="sort" data-sort="n">[Name]</span>
+ <span class="sort" data-sort="tx">[Text]</span></div>
+<script src="list.min.js"></script>
+<script type="text/javascript">
+/*<![CDATA[*/
+setTimeout(function() {
+var options = {
+ valueNames: [ "ts", "n", "tx" ]
+};
+var ircchat = new List("ircchat", options);
+}, 1000);
+/*]]>*/
+</script>
+';
htmlend='</div></body></html>'
al_get_irclog() {
@@ -153,6 +170,7 @@ al_irclog2html() {
echo ${body} >> ${_outf}
cat ${_tmpf} >> ${_outf}
echo $footer >> ${_outf}
+ # echo $search >> ${_outf}
echo $htmlend >> ${_outf}
}