mirror of
https://github.com/L0w1y/JBKF.git
synced 2024-11-16 15:21:36 +00:00
Update readme
This commit is contained in:
parent
9f840595df
commit
a60e5130cc
22
README.md
22
README.md
|
@ -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>
|
Loading…
Reference in a new issue