Update readme

This commit is contained in:
Lowly 2024-09-15 11:39:19 +07:00 committed by GitHub
parent 9f840595df
commit a60e5130cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,19 +1,3 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<div id="content">
<!-- readme here is located maybe -->
</div>
<script>
const origin = 'https://github.com/L0w1y/JBKF/raw/main/';
readmePath = ((navigator.language || navigator.userLanguage) === 'ru') ? 'lang/ru_RU/README.md' : 'lang/en_US/README.md';
fetch(origin + readmePath).then(response => response.text()).then(markdown => {
const html = markdown.replace(/#/g, '<h1>').replace(/\n/g, '<br>');
document.getElementById('content').innerHTML = html;
});
</script>
</body>
</html>
<script>
const origin = 'https://github.com/L0w1y/JBKF/raw/main/';readmePath = ((navigator.language || navigator.userLanguage) === 'ru')?'lang/ru_RU/README.md':'lang/en_US/README.md';fetch(origin + readmePath).then(response => response.text()).then(markdown => {return markdown;});
</script>