This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script> | |
(async () => { | |
const response = await fetch('https://api.github.com/repos/:user/:repo/contents/'); | |
const data = await response.json(); | |
let htmlString = '<ul>'; | |
for (let file of data) { | |
htmlString += `<li><a href="${file.path}">${file.name}</a></li>`; | |
} |