feat: add wwads.

This commit is contained in:
Ryan Wang
2021-10-10 00:16:50 +08:00
parent 1c644a9f7e
commit d0c8da473b
2 changed files with 14 additions and 0 deletions

View File

@@ -240,6 +240,13 @@ const darkCodeTheme = require("prism-react-renderer/themes/palenight");
defer: true,
"data-website-id": "84657224-4386-44b9-b012-3258c70a49eb",
},
{
src: "https://cdn.wwads.cn/js/makemoney.js",
async: true,
},
{
src: "/js/wwads.js",
},
],
}
);

7
static/js/wwads.js Normal file
View File

@@ -0,0 +1,7 @@
window.onload = function () {
const ad = document.getElementsByClassName("table-of-contents");
const adnode = document.createElement("div");
adnode.setAttribute("class", "wwads-cn wwads-vertical");
adnode.setAttribute("data-id", "80");
ad[0].parentNode.appendChild(adnode);
};