| 807 | } |
| 808 | |
| 809 | function doSearch() { |
| 810 | var item = document.getElementById('searchField').value; |
| 811 | /* eslint-disable-next-line no-unused-vars */ |
| 812 | var selected = graph.svg.selectAll('.node').filter(function (d, i) { |
| 813 | return d.id.toLowerCase().search(item.toLowerCase()) === -1; |
| 814 | }); |
| 815 | selected.style('opacity', '0'); |
| 816 | var link = graph.svg.selectAll('.link'); |
| 817 | link.style('stroke-opacity', '0'); |
| 818 | d3.selectAll('.node').transition() |
| 819 | .duration(5000) |
| 820 | .style('opacity', '1'); |
| 821 | d3.selectAll('.link').transition().duration(5000).style('stroke-opacity', '0.6'); |
| 822 | return false; |
| 823 | } |
| 824 | |
| 825 | function createCertLink(id, source) { |
| 826 | let returnHTML = '<a href="'; |