Update index.html
This commit is contained in:
@@ -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" /> <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" /> <img src="https://camo.githubusercontent.com/cdd9212da6fa5f588cee15ca9f7e750928031f73/687474703a2f2f686974732e6477796c2e696f2f5472616e73706172656e744c432f5765636861744d6f6d656e7453637265656e73686f742e737667" style="border-radius: 2px;" /></a>
|
||||
<br />
|
||||
<span class="mdui-typo-caption-opacity">© 2019 ✨小透明・宸✨</span>
|
||||
</div>
|
||||
@@ -713,7 +713,7 @@
|
||||
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';
|
||||
|
||||
@@ -729,6 +729,9 @@
|
||||
document.getElementById('requestResultContent').innerHTML = '输入的链接是否为微信公众号文章?<br />(链接通常以 <code>https://mp.weixin.qq.com/</code> 作为开头)';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
document.getElementById('requestResult').innerText = '获取失败!( ´_っ`)';
|
||||
document.getElementById('requestResultContent').innerHTML = '无法连接到服务器。';
|
||||
}
|
||||
requestDialog.handleUpdate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user