-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
180755b
commit 27f8c1f
Showing
5 changed files
with
58 additions
and
16 deletions.
There are no files selected for viewing
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
<html> | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="description" content="a QWERTY keyboard layout for French-speaking users" /> | ||
<title> QWERTY-Lafayette </title> | ||
<link type="text/css" rel="stylesheet" href="../css/layout.css" /> | ||
<link type="text/css" rel="stylesheet" href="../css/lafayette.css" /> | ||
<link type="image/svg+xml" rel="icon" href="../favicon.svg" sizes="any" /> | ||
</head> | ||
<body> | ||
<script> | ||
(async () => { | ||
const response = await fetch('https://api.github.com/repos/fabi1cazenave/qwerty-lafayette/contents/releases'); | ||
const data = await response.json(); | ||
let htmlString = '<ul>'; | ||
|
||
for (let file of data) { | ||
if (file.path != 'releases/index.html'){ | ||
htmlString += `<li><a href="${file.path.replace('releases/','')}">${file.name}</a></li>`; | ||
} | ||
} | ||
|
||
htmlString += '</ul>'; | ||
document.getElementsByTagName('body')[0].innerHTML = htmlString; | ||
document.querySelector('body').innerHTML = htmlString; | ||
})() | ||
</script> | ||
<body> | ||
</html> | ||
|