This commit is contained in:
恍兮惚兮 2024-07-03 18:03:58 +08:00
parent 8ba59e348f
commit 9da3a3030c
3 changed files with 2 additions and 27 deletions

View File

@ -4,7 +4,7 @@
<a href="./LICENSE"><img src="https://img.shields.io/github/license/HIllya51/LunaTranslator"></a>
<a href="https://github.com/HIllya51/LunaTranslator/releases"><img src="https://img.shields.io/github/v/release/HIllya51/LunaTranslator?color=ffa"></a>
<a href="https://github.com/HIllya51/LunaTranslator/stargazers"><img src="https://img.shields.io/github/stars/HIllya51/LunaTranslator?color=ccf"></a>
<a href="https://hillya51.github.io/LunaTranslator/download.html" target="_blank"><img src="https://img.shields.io/badge/download-blue"/></a>
<a href="https://github.com/HIllya51/LunaTranslator/releases/latest/download/LunaTranslator.zip" target="_blank"><img src="https://img.shields.io/badge/download_64bit-blue"/></a> <a href="https://github.com/HIllya51/LunaTranslator/releases/latest/download/LunaTranslator_x86.zip" target="_blank"><img src="https://img.shields.io/badge/download_32bit-blue"/></a>
</p>
## 简体中文 | [Русский язык](README_ru.md) | [English](README_en.md) | [Other Language](otherlang.md)

View File

@ -1,25 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Download LunaTranslator</title>
</head>
<body>
<p id="download-link">Loading...</p>
<script>
fetch('https://api.github.com/repos/HIllya51/LunaTranslator/releases/latest')
.then(response => response.json())
.then(data => {
const asset = data.assets.find(asset => asset.name === 'LunaTranslator.zip');
const asset2 = data.assets.find(asset => asset.name === 'LunaTranslator_x86.zip');
const downloadLink = document.getElementById('download-link');
downloadLink.innerHTML = `<a href="${asset.browser_download_url}">LunaTranslator.zip(64bit)</a><br><a href="${asset2.browser_download_url}">LunaTranslator_x86.zip(32bit)</a>`;
})
.catch(error => {
console.error('Error:', error);
const downloadLink = document.getElementById('download-link');
downloadLink.innerHTML = 'Failed to load download link.';
});
</script>
</body>
</html>

View File

@ -5,7 +5,7 @@
<a href="./LICENSE"><img src="https://img.shields.io/github/license/HIllya51/LunaTranslator"></a>
<a href="https://github.com/HIllya51/LunaTranslator/releases"><img src="https://img.shields.io/github/v/release/HIllya51/LunaTranslator?color=ffa"></a>
<a href="https://github.com/HIllya51/LunaTranslator/stargazers"><img src="https://img.shields.io/github/stars/HIllya51/LunaTranslator?color=ccf"></a>
<a href="https://hillya51.github.io/LunaTranslator/download.html" target="_blank"><img src="https://img.shields.io/badge/download-blue"/></a>
<a href="https://github.com/HIllya51/LunaTranslator/releases/latest/download/LunaTranslator.zip" target="_blank"><img src="https://img.shields.io/badge/download_64bit-blue"/></a> <a href="https://github.com/HIllya51/LunaTranslator/releases/latest/download/LunaTranslator_x86.zip" target="_blank"><img src="https://img.shields.io/badge/download_32bit-blue"/></a>
</p>
## [文档地址](https://github.com/HIllya51/LunaTranslator)