Skip to content

Commit 038a080

Browse files
committed
refactor: edit support banner
1 parent bc0ba76 commit 038a080

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/ditto.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ function li_create_linkage(li_tag, header_level) {
243243
}
244244

245245
function create_banner(element) {
246-
// 2020年11月1日
247-
var deadline = new Date(2020, 10, 1);
246+
// 2021年1月1日
247+
var deadline = new Date(2021, 0, 1);
248248
if (deadline - (new Date()) < 0) return;
249249

250250
var styleStr = [
@@ -259,7 +259,7 @@ function create_banner(element) {
259259
].join(';');
260260

261261
var text = '【免费课程】' +
262-
'开始学习<span style="color: #4682BE;">《ES6 实战教程》</span>,一线大厂前端必备技能。';
262+
'<span style="color: #4682BE;">《Vue进阶攻略》</span>领取,Vue 3.0 新知识点讲解。';
263263

264264
var banner = $('<a href="https://datayi.cn/w/a9BLv2LP" style="color: #333333;" target="_blank"><div style="' + styleStr + '">' + text + '</div></a>')
265265
.insertAfter(element);

0 commit comments

Comments
 (0)