Commit 29105891 authored by 神楽坂玲奈's avatar 神楽坂玲奈

动态下载地址

parent e555ea2e
......@@ -28,7 +28,7 @@
<h1 class="display-3">萌卡<sup class="titileBeta">BETA</sup></h1>
<p>MyCard 同人游戏平台</p>
<p *ngIf="latest">
<a class="btn btn-primary btn-lg" [href]="latest.win32.url" role="button">立即安装</a>
<a class="btn btn-primary btn-lg" [href]="latest[platform].url" role="button">立即安装</a>
</p>
<p *ngIf="latest">
萌卡平台支持 <a [href]="latest.win32.url">Windows</a><a [href]="latest.darwin.url">Mac</a> 操作系统。
......@@ -116,7 +116,7 @@
<div class="row">
<div id="setup" class="col" *ngIf="latest">
<p>欢迎加入萌卡这个大家庭</p>
<a class="btn btn-primary btn-lg" [href]="latest.win32.url" role="button">立即安装</a>
<a class="btn btn-primary btn-lg" [href]="latest[platform].url" role="button">立即安装</a>
</div>
<div id="requirements" class="col">
<p>
......
......@@ -12,6 +12,7 @@ import * as yaml from 'js-yaml';
export class StoreComponent implements OnInit {
stats: {signups: number; online: number;};
latest: {win32: {version: string, url: string}, darwin: {version: string, url: string}};
platform = navigator.platform.match(/Mac/i) ? 'darwin' : 'win32';
constructor (private http: Http) {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment