diff --git a/css/styles.css b/css/styles.css
index 05d3e09..bc82526 100644
--- a/css/styles.css
+++ b/css/styles.css
@@ -74,11 +74,7 @@ a:active { color: red; }
Layout styles
------------------------*/
-.container
-{
- padding: 1em 1.25em;
- margin: 0 auto;
-}
+
.header
{
@@ -96,6 +92,46 @@ Layout styles
padding: 0;
}
+.container
+{
+ padding: 1em 1.25em;
+ margin: 0 auto;
+}
+
+.nav.container {
+ display: grid;
+ grid-template-rows: auto 15%;
+}
+
+.nav.inputs_container {
+ grid-row: 1 / 2;
+
+ display: grid;
+ grid-template-columns: auto auto auto auto;
+ grid-auto-flow: row;
+
+}
+
+.nav.input_unit_container {
+ padding: 5px;
+ align-self: center;
+}
+
+input[type="number"] {
+ display:block;
+}
+
+.nav.input_label {
+ white-space:nowrap;
+}
+
+.nav.controls {
+ grid-row: 2 / 3;
+ justify-self: center;
+ padding-top: 5px;
+}
+
+
.content
{
padding: 0em 0em;
diff --git a/graphexp.html b/graphexp.html
index 1c88fb2..e29da8e 100644
--- a/graphexp.html
+++ b/graphexp.html
@@ -49,23 +49,38 @@
-->
-
diff --git a/scripts/graphioGremlin.js b/scripts/graphioGremlin.js
index 2bf2e6f..8bef7e8 100644
--- a/scripts/graphioGremlin.js
+++ b/scripts/graphioGremlin.js
@@ -134,6 +134,7 @@ var graphioGremlin = (function(){
!isNaN(parseInt(value, 10));
}
function click_query(d) {
+ var edge_filter = $('#edge_filter').val();
// Gremlin query
//var gremlin_query = "g.V("+d.id+").bothE().bothV().path()"
// 'inject' is necessary in case of an isolated node ('both' would lead to an empty answer)
@@ -141,8 +142,8 @@ var graphioGremlin = (function(){
if(isNaN(id)){
id = '"'+id+'"';
}
- var gremlin_query_nodes = 'nodes = g.V('+id+').as("node").both().as("node").select(all,"node").inject(g.V('+id+')).unfold()'
- var gremlin_query_edges = 'edges = g.V('+id+').bothE()'
+ var gremlin_query_nodes = 'nodes = g.V('+id+').as("node").both('+(edge_filter?'"'+edge_filter+'"':'')+').as("node").select(all,"node").inject(g.V('+id+')).unfold()'
+ var gremlin_query_edges = "edges = g.V("+id+").bothE("+(edge_filter?"'"+edge_filter+"'":"")+")";
var gremlin_query = gremlin_query_nodes+'\n'+gremlin_query_edges+'\n'+'[nodes.toList(),edges.toList()]'
// while busy, show we're doing something in the messageArea.
$('#messageArea').html('
(loading)
');