From 69d14c2189fbef6880487d9dec94d835f0ab988d Mon Sep 17 00:00:00 2001 From: Manu Sporny Date: Fri, 30 Aug 2024 13:08:37 -0400 Subject: [PATCH] Rename to DID Extensions and migrate common.js into index.html. --- common.js | 40 ---------------------------- index.html | 77 ++++++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 58 insertions(+), 59 deletions(-) delete mode 100644 common.js diff --git a/common.js b/common.js deleted file mode 100644 index 087a939a..00000000 --- a/common.js +++ /dev/null @@ -1,40 +0,0 @@ -/* Build DID Method table using JSON data */ -async function buildDidMethodTables(config) { - const {document} = window; - const response = await fetch('methods/index.json'); - if(response.status !== 200) { - throw new Error('Failed retrieve DID Method index.json file.'); - } - const allMethods = await response.json(); - - // set up the API summary table headers - const table = document.getElementById('did-method-table'); - const tableHeader = document.createElement('thead'); - tableHeader.innerHTML = 'DID MethodRegistry' + - 'Contact'; - table.appendChild(tableHeader); - - // summarize each API endpoint - const tableBody = document.createElement('tbody'); - for(const method of allMethods) { - const tableRow = document.createElement('tr'); - const {name, verifiableDataRegistry, contactEmail, contactName, - contactWebsite, specification} = method; - let contactInfo = contactName; - if(contactEmail) { - contactInfo += ` (email)`; - } - if(contactWebsite) { - contactInfo += ` (website)`; - } - tableRow.innerHTML = - `${name}` + - `${verifiableDataRegistry}` + - `${contactInfo}`; - tableBody.appendChild(tableRow); - } - table.appendChild(tableBody); - -} - -window.buildDidMethodTables = buildDidMethodTables; diff --git a/index.html b/index.html index c82e4262..4b6d7c3e 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ -DID Specification Registries +Decentralized Identifier Extensions