-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
46 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { AddRainbowBg, AddRainbowText } from "../../utils/AddClass"; | ||
import ChangeQueryInnerHTML from "../../utils/ChangeQueryInnerHTML"; | ||
import GundaiWebSite from "../GundaiWebsite"; | ||
|
||
export const MyLibrary = new GundaiWebSite(() => { | ||
if (location.pathname == "/portal/portal/selectLogin/") { | ||
//document.getElementById("explanation") | ||
ChangeQueryInnerHTML( | ||
"#explanation", | ||
"My Libraryへよおこそ。全学ゲーミングアカウントをお持ちの方は、全学ゲーミングアカウントでログイン。お持ちでない方は図書館ゲストIDでログインを選択してください。", | ||
); | ||
ChangeQueryInnerHTML("#ssoLoginTitle", "全学ゲーミングアカウントでログイン"); | ||
|
||
// フッターをレインボー | ||
AddRainbowBg("#footer"); | ||
document.getElementById("footer")!.id = ""; | ||
} | ||
|
||
// ヘッダーとタイトルをレインボー | ||
AddRainbowBg("#header", "h2"); | ||
AddRainbowText("#lblTitle", "#mainTitle"); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import "../styles/mylibrary.scss"; | ||
|
||
import { MyLibrary } from "../class"; | ||
import LoadGamingWebsite from "../utils/LoadGamingWebsite"; | ||
|
||
LoadGamingWebsite(MyLibrary); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#footer{ | ||
background: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
export default function ChangeQueryInnerHTML(queries: string[], innerHTML: string) { | ||
queries.forEach((query) => { | ||
const elements = document.querySelectorAll(query); | ||
elements.forEach((element) => { | ||
element.innerHTML = innerHTML; | ||
}); | ||
export default function ChangeQueryInnerHTML(query: string, innerHTML: string) { | ||
const elements = document.querySelectorAll(query); | ||
elements.forEach((element) => { | ||
element.innerHTML = innerHTML; | ||
}); | ||
} |