MCPcopy Create free account
hub / github.com/adobe/Marinus / doSearch

Function doSearch

web_server/public/javascripts/cert_graph.js:809–823  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

807}
808
809function 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
825function createCertLink(id, source) {
826 let returnHTML = '<a href="';

Callers 1

cert_graph.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected