Website for visualizing a persons github network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
564 B

  1. <html>
  2. <script>
  3. function downloadObjectAsJson(exportObj, exportName)
  4. {
  5. var dataStr = "data:text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(exportObj));
  6. var downloadAnchorNode = document.createElement('a');
  7. downloadAnchorNode.setAttribute("href", dataStr);
  8. downloadAnchorNode.setAttribute("download", exportName + ".json");
  9. document.body.appendChild(downloadAnchorNode); // required for firefox
  10. downloadAnchorNode.click();
  11. downloadAnchorNode.remove();
  12. }
  13. </script>
  14. </html>