diff --git a/static/script.js b/static/script.js
index 9f5660b..0071be2 100644
--- a/static/script.js
+++ b/static/script.js
@@ -148,11 +148,24 @@ $(document).ready(function() {
newResults += '';
}
newResults += '';
+ if(data.length == 0) {
+ newResults = '
';
+ newResults += '
No results.
';
+ newResults += '';
+ }
$('.results').replaceWith(newResults);
}).fail(function() {
- console.log( "Query failed" );
+ var newResults = '';
+ newResults += '
No results.
';
+ newResults += '';
+ $('.results').replaceWith(newResults);
+ console.log( "Query failed" );
});
});
+ $('.toggle-btn').on('change', function() {
+ // Re-perform query
+ });
+
//$('.results-row').on('click', );
});
diff --git a/static/style.css b/static/style.css
index 29cea13..2939b0e 100644
--- a/static/style.css
+++ b/static/style.css
@@ -16,6 +16,13 @@ h1 {
background-color: #013A3A;
}
+h3 {
+ color: #5E9292;
+ text-align: center;
+ padding: 12pt;
+ font-size: 20pt;
+}
+
p {
text-align: center;
}