Skip to content

Commit

Permalink
update maixvision home page
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed May 14, 2024
1 parent 73d623e commit fb84c92
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pages/index/en/maixvision.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ title: MaixVision Workstation Official Website

<script>
async function getLatestVersion(filename) {
const response = await fetch('https://cdn.sipeed.com/maixvision/' + filename + '.json');
const timestamp = new Date().getTime();
const url = `https://cdn.sipeed.com/maixvision/${filename}.json?t=${timestamp}`;

const response = await fetch(url);
const data = await response.json();
if(data.error) {
showMsgInfo("load data failed: " + data.error);
Expand All @@ -107,6 +110,7 @@ async function getLatestVersion(filename) {
return data;
}


var win_download = document.getElementById('win_download');
var linux_download = document.getElementById('linux_download');
var macos_download = document.getElementById('macos_download');
Expand Down
5 changes: 4 additions & 1 deletion pages/index/zh/maixvision.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ title: MaixVision 工作站官网

<script>
async function getLatestVersion(filename) {
const response = await fetch('https://cdn.sipeed.com/maixvision/' + filename + '.json');
const timestamp = new Date().getTime();
const url = `https://cdn.sipeed.com/maixvision/${filename}.json?t=${timestamp}`;

const response = await fetch(url);
const data = await response.json();
if(data.error) {
showMsgInfo("load data failed: " + data.error);
Expand Down

0 comments on commit fb84c92

Please sign in to comment.