-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove jquery, now there's no dependency
- Loading branch information
Student Main
committed
Jan 16, 2019
1 parent
4b599d1
commit 9e13d47
Showing
13 changed files
with
181 additions
and
119 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
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import TextHTML from "../utils/texthtml"; | ||
import * as $ from "jquery"; | ||
import { getElem } from "../utils/util"; | ||
|
||
export default class YZText { | ||
static nameCh: JQuery<HTMLElement>; | ||
static textCh: JQuery<HTMLElement>; | ||
static nameCh: HTMLElement; | ||
static textCh: HTMLElement; | ||
static Init() { | ||
this.nameCh = $("#charname"); | ||
this.textCh = $("#chartxt"); | ||
this.nameCh = getElem("#charname"); | ||
this.textCh = getElem("#chartxt"); | ||
} | ||
|
||
static Print(text: string, display: string) { | ||
display = display || ""; | ||
this.nameCh.html(display); | ||
this.textCh.html(TextHTML(text)); | ||
this.nameCh.innerHTML = display; | ||
this.textCh.innerHTML = TextHTML(text); | ||
} | ||
} |
Oops, something went wrong.