Update strategy to use css
Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
parent
c4a9da41ba
commit
99a9b5f9a2
@ -1,5 +1,3 @@
|
|||||||
import { blackListManager } from "./BlackListManager";
|
|
||||||
|
|
||||||
export class HtmlUtils {
|
export class HtmlUtils {
|
||||||
public static getElementByIdOrFail<T extends HTMLElement>(id: string): T {
|
public static getElementByIdOrFail<T extends HTMLElement>(id: string): T {
|
||||||
const elem = document.getElementById(id);
|
const elem = document.getElementById(id);
|
||||||
@ -27,14 +25,10 @@ export class HtmlUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static escapeHtml(html: string): string {
|
public static escapeHtml(html: string): string {
|
||||||
let innerHTML = "";
|
const text = document.createTextNode(html);
|
||||||
const tabBackLine = html.match(/(\n\r|\r\n|\r|\n)/g);
|
|
||||||
for (const text in blackListManager) {
|
|
||||||
const p = document.createElement("p");
|
const p = document.createElement("p");
|
||||||
p.appendChild(document.createTextNode(text));
|
p.appendChild(text);
|
||||||
innerHTML += p.innerHTML;
|
return p.innerHTML;
|
||||||
}
|
|
||||||
return innerHTML;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static urlify(text: string, style: string = ""): string {
|
public static urlify(text: string, style: string = ""): string {
|
||||||
|
@ -1085,10 +1085,14 @@ div.action.danger p.action-body{
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
.popUpElement div {
|
.popUpElement div{
|
||||||
font-family: 'Press Start 2P';
|
font-family: 'Press Start 2P';
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
background-color: #727678;
|
background-color: #727678;
|
||||||
|
white-space: pre-line;
|
||||||
|
}
|
||||||
|
.popUpElement .nes-container{
|
||||||
|
padding: 1rem 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popUpElement button {
|
.popUpElement button {
|
||||||
|
Loading…
Reference in New Issue
Block a user