Skip to content

Commit

Permalink
Update: Add HiddenFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayao0819 committed Oct 18, 2023
1 parent 6c02f22 commit f3656ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/class/GundaiWebsite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const rainbowTextShadow = "rainbow-text-shadow";
// GundaiWebSiteはゲーミング化するウェブサイトを定義したクラス
// 型変数とAdditionalInfoプロパティによって任意の情報を追加できる
export default class GundaiWebSite<T> {
additionalInfo: T;
classes: {
RainbowText: string[];
RainbowTextShadow: string[];
Expand All @@ -35,7 +36,8 @@ export default class GundaiWebSite<T> {
}
EnableRainbow() {}
DisableRainbow() {}
additionalInfo: T;
EnableHiddenFunction() {}
DisableHiddenFunction() {}

AddRainbowBg(...elements: Elements[]) {
AddClass(elements, [rainbowBg, ...this.classes.RainbowBg]);
Expand Down
5 changes: 5 additions & 0 deletions src/class/Moodle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ Moodle.DisableRainbow = function () {
if (e.innerHTML.includes(headerText)) e.innerHTML.replace(headerText, "");
});
};

Moodle.EnableHiddenFunction = () => {
const playCountUnderTextElement = document.querySelectorAll(".card-text .no-overflow")[0].getElementsByTagName("p")[1];
playCountUnderTextElement.innerHTML = "想定最大利用者乳首数:4,000";
};

0 comments on commit f3656ee

Please sign in to comment.