View source for MediaWiki:Template:MainPageInfopush.js
From VRChat Wiki
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
$(
(function () {
mw.loader.using(["oojs-ui-core", "oojs-ui-windows"]).done(() => {
for (const infopush of document.querySelectorAll(".tpl-infopush")) {
try {
const content = infopush.querySelector(".tpl-infopush-content");
const items = content.querySelectorAll(".tpl-infopush-item");
const total = items.length;
for (const item of items) {
const { articleId } = item.dataset;
if (!articleId) return;
item.addEventListener("click", () => console.log("showArticle(item)"));
}
const navigation = infopush.querySelector(".tpl-infopush-navigation");
let currentOffset = 0;
000
1:0
Return to MediaWiki:Template:MainPageInfopush.js.