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

platforn

parent 9a3d076a
......@@ -9,7 +9,7 @@ $(document).ready ->
#version
$.get '/mycard/download.url', (data)->
if matched = data.match(/mycard-(.*)-(.*)\.7z/)
$('#download_version').html "#{matched[1]} #{matched[2]}"
$('#download_version').html matched[1]
else
$('#download_version').html '读取失败'
......
......@@ -10,7 +10,7 @@
$.get('/mycard/download.url', function(data) {
var matched;
if (matched = data.match(/mycard-(.*)-(.*)\.7z/)) {
return $('#download_version').html("" + matched[1] + " " + matched[2]);
return $('#download_version').html(matched[1]);
} else {
return $('#download_version').html('读取失败');
}
......
......@@ -305,3 +305,13 @@ footer h2 {
#links a {
margin: 5px 3px 3px 5px;
}
.platform {
font-size: 12px;
color: #2a2a2a;
text-shadow: 1px 1px 1px #dedede;
text-align: center;
}
.platform a{
text-shadow: 1px 1px 1px #dedede;
}
\ No newline at end of file
......@@ -98,6 +98,7 @@
<div id="download">
<a id="download_url" href="http://my-card.in/mycard/download" class="download_active">立即下载</a>
<a class="download_information">最新版本: <span id="download_version">Loading...</span></a>
<p class="platform">支持的平台: <a href="http://my-card.in/mycard/download?platform=win32">Windows</a>, <a href="https://github.com/zh99998/mycard/wiki/linux">Linux</p>
</div>
<div id="download_sublist">
<a href="http://my-card.in/mycard/updates">更新补丁</a></br>
......@@ -105,6 +106,7 @@
<a href="https://plus.google.com/communities/112748610591305626436/stream/e0224372-0474-4624-be73-56f76bad7a8e">更新记录</a>
</div>
</div>
</div>
</div>
<div id="slider">
......
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