Skip to content

Instantly share code, notes, and snippets.

@gregdeane
Created June 5, 2020 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregdeane/ef4aa9650c5b5348561d2af5896202ea to your computer and use it in GitHub Desktop.
Save gregdeane/ef4aa9650c5b5348561d2af5896202ea to your computer and use it in GitHub Desktop.
vis-network / physics demo
// https://visjs.github.io/vis-network/examples/network/other/configuration.html

// run this in the console
let nodesRaw = document.querySelectorAll('.vis-config-item');
let nodesArray = Array.from(nodesRaw);

let physics = nodesArray.slice(0, nodesArray.length - 16);

physics.forEach(item => {
  item.style.display = 'none';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment