Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
TransparentLC committed Aug 23, 2019
1 parent c22ecf9 commit 56d2303
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@
</div>

<div class="mdui-m-y-2" style="text-align: center; line-height: 1.5em;">
<a href="https://github.com/TransparentLC/WechatMomentScreenshot" target="_blank" style="text-decoration: none;"><img src="https://img.shields.io/github/stars/TransparentLC/WechatMomentScreenshot.svg?style=social" />&nbsp;<img src="http://hits.dwyl.io/TransparentLC/WechatMomentScreenshot.svg" style="border-radius: 2px;" /></a>
<a href="https://github.com/TransparentLC/WechatMomentScreenshot" target="_blank" style="text-decoration: none;"><img src="https://img.shields.io/github/stars/TransparentLC/WechatMomentScreenshot.svg?style=social" />&nbsp;<img src="https://camo.githubusercontent.com/cdd9212da6fa5f588cee15ca9f7e750928031f73/687474703a2f2f686974732e6477796c2e696f2f5472616e73706172656e744c432f5765636861744d6f6d656e7453637265656e73686f742e737667" style="border-radius: 2px;" /></a>
<br />
<span class="mdui-typo-caption-opacity">©&nbsp;2019&nbsp;✨小透明・宸✨</span>
</div>
Expand Down Expand Up @@ -713,7 +713,7 @@ <h4>开源就是好</h4>
var xhr = new XMLHttpRequest;
xhr.open('GET', 'https://i.akarin.dev/misc/get_article_info.php?url=' + encodeURIComponent(value)); //获取标题和封面的服务器
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if (xhr.readyState == 4 && xhr.status == 200) {
var result = JSON.parse(xhr.responseText);
document.getElementById('requestAction').innerText = 'OK';

Expand All @@ -729,6 +729,9 @@ <h4>开源就是好</h4>
document.getElementById('requestResultContent').innerHTML = '输入的链接是否为微信公众号文章?<br />(链接通常以 <code>https://mp.weixin.qq.com/</code> 作为开头)';
}
}
} else {
document.getElementById('requestResult').innerText = '获取失败!( ´_っ`)';
document.getElementById('requestResultContent').innerHTML = '无法连接到服务器。';
}
requestDialog.handleUpdate();
}
Expand Down

0 comments on commit 56d2303

Please sign in to comment.