You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
596 B
21 lines
596 B
import ExecutionEnvironment from "@docusaurus/ExecutionEnvironment";
|
|
|
|
export default (function () {
|
|
if (!ExecutionEnvironment.canUseDOM) {
|
|
return null;
|
|
}
|
|
|
|
return {
|
|
onRouteUpdate() {
|
|
setTimeout(() => {
|
|
const ad = document.getElementsByClassName("table-of-contents");
|
|
const adnode = document.createElement("div");
|
|
adnode.setAttribute("class", "wwads-cn wwads-vertical");
|
|
adnode.setAttribute("data-id", "80");
|
|
adnode.setAttribute("style", "max-width:200px");
|
|
ad[0].parentNode.appendChild(adnode);
|
|
}, 2000);
|
|
},
|
|
};
|
|
})();
|