Skip to content

Commit 44c609e

Browse files
committed
updating the ko info page
1 parent a493dad commit 44c609e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

index.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Computable Artifact Metadata</title>
8+
</head>
9+
10+
<body>
11+
<script>
12+
fetch('metadata.json')
13+
.then(response => response.json())
14+
.then(async (metadata) => {
15+
const metadataString = encodeURIComponent(JSON.stringify(metadata));
16+
const currentPageIRI = encodeURIComponent(window.location.href);
17+
window.location.href = `https://kgrid.org/python-sdk/kgrid_sdk/KOInfoPage.html?data=${metadataString}&base=${currentPageIRI}`;
18+
})
19+
.catch(error => console.error('Error fetching metadata:', error));
20+
</script>
21+
</body>
22+
23+
</html>

0 commit comments

Comments
 (0)