Reworked filters to be far simpler that before.
Filter state is stored in the dom instead of global variables. No time
is lost because these dom objects were retrieved or removed regardless.
Change-Id: I5a525c5ea1f8740d25ba5cad8f81a8a148c5e651
diff --git a/client/query/query.html b/client/query/query.html
index 828b37e..1f2af4a 100644
--- a/client/query/query.html
+++ b/client/query/query.html
@@ -4,14 +4,25 @@
<head>
<title>Atmospheric Query and Retrieval Tool</title>
+<script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-64984905-1', 'auto');
+ ga('send', 'pageview');
+
+</script>
+
<!-- Styles -->
<link rel="stylesheet"
- href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.4/yeti/bootstrap.min.css">
+ href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.5/yeti/bootstrap.min.css">
<link rel="stylesheet" href="query2.css">
<!-- Scripts -->
-<script
- src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="../ndn-js/build/ndn.min.js"></script>
<script src="query.js"></script>
@@ -43,7 +54,7 @@
<div class="panel panel-default">
<div class="panel-body">
- <div class="currentSelections"></div>
+ <div id="filters"></div>
<div class="autocomplete">
<div class="ui-widget">
<form class="form-inline" id="searchBar">