Skip to content

Commit d616da3

Browse files
committed
chore: update special sponsor
1 parent 0e4a7da commit d616da3

File tree

2 files changed

+5
-30
lines changed

2 files changed

+5
-30
lines changed

themes/vue/_config.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ platinum_sponsors:
2121
img: vehikl.png
2222

2323
platinum_sponsors_china:
24-
- url: https://xiaozhuanlan.com/
25-
img: xiaozhuanlan.png
2624
- url: https://www.geekbang.org/
2725
img: geekbang.png
26+
- url: https://www.bmqb.com/jobs
27+
img: bmqb.png
2828

2929
gold_sponsors:
3030
- url: https://laravel.com
@@ -51,8 +51,6 @@ gold_sponsors:
5151
img: vuejobs.png
5252
- url: https://leanpub.com/vuejs2
5353
img: tmvuejs2.png
54-
- url: https://www.bmqb.com/jobs
55-
img: bmqb.png
5654
- url: https://codepilot.ai
5755
img: codepilot.png
5856
- url: https://teamextension.io/

themes/vue/layout/partials/sponsors_sidebar.ejs

+3-26
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,10 @@
1818

1919
<div class="sidebar-sponsors">
2020
<div class="main-sponsor">
21-
<span>赞助者</span><br>
22-
<a id="main-sponsor-link" target="_blank" style="display: block; margin: 6px 0;">
23-
<img id="main-sponsor-image" style="border-radius: 3px;">
21+
<span>特别赞助</span><br>
22+
<a id="main-sponsor-link" target="_blank" style="display: block; margin: 15px 0;" href="https://www.bmqb.com/jobs">
23+
<img id="main-sponsor-image" src="<%- url_for(`/images/bmqb.png`) %>">
2424
</a>
25-
<script>
26-
(function () {
27-
var API = 'https://xiaozhuanlan.com/example/baner_settings'
28-
var req = new XMLHttpRequest()
29-
var data = {
30-
"link_url": "https://xiaozhuanlan.com",
31-
"img_url": "https://diycode.b0.upaiyun.com/photo/2017/15ebaae7745e70876cf20c0ee93bdc9e.png"
32-
}
33-
req.onreadystatechange = function () {
34-
if (req.readyState == 4) {
35-
if (req.status >= 200 && req.status < 300) {
36-
try {
37-
data = JSON.parse(req.responseText)
38-
} catch (e) {}
39-
}
40-
document.getElementById('main-sponsor-link').href = data.link_url
41-
document.getElementById('main-sponsor-image').src = data.img_url
42-
}
43-
}
44-
req.open('GET', API)
45-
req.send()
46-
})()
47-
</script>
4825
</div>
4926
<a class="become-backer" href="<%- url_for("/support-vuejs") %>">
5027
成为赞助者

0 commit comments

Comments
 (0)