mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-04 20:19:53 +08:00
代码风格微调
This commit is contained in:
parent
5184b51224
commit
bd065d5949
2 changed files with 14 additions and 28 deletions
|
@ -7,27 +7,17 @@
|
|||
*/
|
||||
$plugin_url = plugin_dir_url(__FILE__);
|
||||
echo <<<ETO
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
<link rel="stylesheet" type="text/css" href="{$plugin_url}css/global.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="{$plugin_url}css/global.css"/>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<div id="sponsor-container"></div>
|
||||
<div class="url-container">
|
||||
<a class="url-item" target="_blank" href="https://www.ibadboy.net/archives/3204.html">项目主页</a>
|
||||
<a href="#" class="url-item addGroup">入群交流</a>
|
||||
<a class="url-item" target="_blank" href="https://www.ibadboy.net/archives/3204.html#%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98">常见问题</a>
|
||||
<div class="close">不再显示</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<div id="sponsor-container"></div>
|
||||
<div class="url-container">
|
||||
<a class="url-item" target="_blank" href="https://www.ibadboy.net/archives/3204.html">项目主页</a>
|
||||
<a href="#" class="url-item addGroup">入群交流</a>
|
||||
<a class="url-item" target="_blank" href="https://www.ibadboy.net/archives/3204.html#%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98">常见问题</a>
|
||||
<div class="close">不再显示</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
jQuery.ajax({
|
||||
url: "https://wp-mirror-dev.ibadboy.net/api/v1/donors",
|
||||
type: "GET",
|
||||
|
@ -61,8 +51,8 @@ function getIcon(type) {
|
|||
}
|
||||
|
||||
function getSubsidize(mode) {
|
||||
var data = mode.split(',')
|
||||
var _html = '';
|
||||
const data = mode.split(',');
|
||||
let _html = '';
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
_html += '<div class="sponsor-item-content">' + data[i] + '</div>';
|
||||
}
|
||||
|
@ -70,14 +60,11 @@ function getSubsidize(mode) {
|
|||
}
|
||||
|
||||
jQuery('.addGroup').on('click', function () {
|
||||
alert('加入WP中国仓库源建设计划QQ交流群:1046115671')
|
||||
})
|
||||
alert('加入WP中国仓库源建设计划QQ交流群:1046115671');
|
||||
});
|
||||
|
||||
jQuery('.close').on('click', function () {
|
||||
window.open("https://www.ibadboy.net/archives/3683.html");
|
||||
})
|
||||
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
|
||||
ETO;
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1585982352556" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11980" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M512 69.818182c-257.070545 0-465.454545 208.384-465.454545 465.454545 0 257.070545 208.384 465.454545 465.454545 465.454545 257.070545 0 465.454545-208.384 465.454545-465.454545C977.454545 278.202182 769.070545 69.818182 512 69.818182zM512 954.181818c-231.377455 0-418.909091-187.531636-418.909091-418.909091 0-231.377455 187.531636-418.909091 418.909091-418.909091 231.377455 0 418.909091 187.531636 418.909091 418.909091C930.909091 766.650182 743.377455 954.181818 512 954.181818zM725.922909 321.349818c-9.076364-9.076364-23.831273-9.076364-32.907636 0L512 502.365091 330.984727 321.349818c-9.076364-9.076364-23.831273-9.076364-32.907636 0-9.076364 9.076364-9.076364 23.831273 0 32.907636l181.015273 181.015273-181.015273 181.015273c-9.076364 9.076364-9.076364 23.831273 0 32.907636 9.076364 9.076364 23.831273 9.076364 32.907636 0L512 568.180364l181.015273 181.015273c9.076364 9.076364 23.831273 9.076364 32.907636 0 9.076364-9.076364 9.076364-23.831273 0-32.907636L544.907636 535.272727l181.015273-181.015273C734.999273 345.181091 734.999273 330.426182 725.922909 321.349818z" p-id="11981"></path></svg>
|
Before Width: | Height: | Size: 1.5 KiB |
Loading…
Add table
Add a link
Reference in a new issue