diff --git a/expert.html b/expert.html index 816cf26..58d1092 100644 --- a/expert.html +++ b/expert.html @@ -85,14 +85,17 @@ $().ready(function(){ (metal) (protection) -
- - + + + + Animate during simulation: -   +
+
+ Link to this location
diff --git a/expertWires.js b/expertWires.js index 1a9ae80..db7f2e9 100644 --- a/expertWires.js +++ b/expertWires.js @@ -279,6 +279,39 @@ function recenter(){ document.getElementById('linkHere').href=location.pathname+"?"+whereAmIAsQuery(); } +var highlightThese; + +// flash some set of nodes according to user input +function hiliteNodeList(){ + var tmplist = document.getElementById('HighlightThese').value.split(/[\s,]+/); + if(tmplist.length==0){ + // request to highlight nothing, so switch off any signal highlighting + hiliteNode(-1); + return; + } + highlightThese = []; + for(var i=0;i