mirror of
https://github.com/halo-dev/docs.git
synced 2025-10-15 22:59:51 +00:00
feat: add wwads.
This commit is contained in:
@@ -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
7
static/js/wwads.js
Normal 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);
|
||||
};
|
Reference in New Issue
Block a user