Format
This commit is contained in:
parent
6903784136
commit
4e4ae150a2
|
@ -148,7 +148,11 @@ class GameServer {
|
||||||
if (this.takebackRequesterId) {
|
if (this.takebackRequesterId) {
|
||||||
if (this.takebackRequesterId === conn.id) {
|
if (this.takebackRequesterId === conn.id) {
|
||||||
buttons.push(
|
buttons.push(
|
||||||
<button id="cancel-takeback-request-button" class="decline-button" ws-send="click">
|
<button
|
||||||
|
id="cancel-takeback-request-button"
|
||||||
|
class="decline-button"
|
||||||
|
ws-send="click"
|
||||||
|
>
|
||||||
<svg class="icon" alt="Cancel">
|
<svg class="icon" alt="Cancel">
|
||||||
<use href="/icons/decline.svg"></use>
|
<use href="/icons/decline.svg"></use>
|
||||||
</svg>
|
</svg>
|
||||||
|
@ -157,7 +161,11 @@ class GameServer {
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
buttons.push(
|
buttons.push(
|
||||||
<button id="accept-takeback-button" class="accept-button" ws-send="click">
|
<button
|
||||||
|
id="accept-takeback-button"
|
||||||
|
class="accept-button"
|
||||||
|
ws-send="click"
|
||||||
|
>
|
||||||
<svg class="icon" alt="Accept">
|
<svg class="icon" alt="Accept">
|
||||||
<use href="/icons/accept.svg"></use>
|
<use href="/icons/accept.svg"></use>
|
||||||
</svg>
|
</svg>
|
||||||
|
@ -165,7 +173,11 @@ class GameServer {
|
||||||
</button>,
|
</button>,
|
||||||
);
|
);
|
||||||
buttons.push(
|
buttons.push(
|
||||||
<button id="decline-takeback-button" class="decline-button" ws-send="click">
|
<button
|
||||||
|
id="decline-takeback-button"
|
||||||
|
class="decline-button"
|
||||||
|
ws-send="click"
|
||||||
|
>
|
||||||
<svg class="icon" alt="Decline">
|
<svg class="icon" alt="Decline">
|
||||||
<use href="/icons/decline.svg"></use>
|
<use href="/icons/decline.svg"></use>
|
||||||
</svg>
|
</svg>
|
||||||
|
@ -176,7 +188,11 @@ class GameServer {
|
||||||
} else if (this.drawRequesterId) {
|
} else if (this.drawRequesterId) {
|
||||||
if (this.drawRequesterId === conn.id) {
|
if (this.drawRequesterId === conn.id) {
|
||||||
buttons.push(
|
buttons.push(
|
||||||
<button id="cancel-draw-request-button" class="decline-button" ws-send="click">
|
<button
|
||||||
|
id="cancel-draw-request-button"
|
||||||
|
class="decline-button"
|
||||||
|
ws-send="click"
|
||||||
|
>
|
||||||
<svg class="icon" alt="Cancel">
|
<svg class="icon" alt="Cancel">
|
||||||
<use href="/icons/decline.svg"></use>
|
<use href="/icons/decline.svg"></use>
|
||||||
</svg>
|
</svg>
|
||||||
|
@ -185,7 +201,11 @@ class GameServer {
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
buttons.push(
|
buttons.push(
|
||||||
<button id="accept-draw-button" class="accept-button" ws-send="click">
|
<button
|
||||||
|
id="accept-draw-button"
|
||||||
|
class="accept-button"
|
||||||
|
ws-send="click"
|
||||||
|
>
|
||||||
<svg class="icon" alt="Accept">
|
<svg class="icon" alt="Accept">
|
||||||
<use href="/icons/accept.svg"></use>
|
<use href="/icons/accept.svg"></use>
|
||||||
</svg>
|
</svg>
|
||||||
|
@ -193,7 +213,11 @@ class GameServer {
|
||||||
</button>,
|
</button>,
|
||||||
);
|
);
|
||||||
buttons.push(
|
buttons.push(
|
||||||
<button id="decline-draw-button" class="decline-button" ws-send="click">
|
<button
|
||||||
|
id="decline-draw-button"
|
||||||
|
class="decline-button"
|
||||||
|
ws-send="click"
|
||||||
|
>
|
||||||
<svg class="icon" alt="Decline">
|
<svg class="icon" alt="Decline">
|
||||||
<use href="/icons/decline.svg"></use>
|
<use href="/icons/decline.svg"></use>
|
||||||
</svg>
|
</svg>
|
||||||
|
@ -231,7 +255,11 @@ class GameServer {
|
||||||
if (this.rematchRequesterId) {
|
if (this.rematchRequesterId) {
|
||||||
if (this.rematchRequesterId === conn.id) {
|
if (this.rematchRequesterId === conn.id) {
|
||||||
buttons.push(
|
buttons.push(
|
||||||
<button id="cancel-rematch-request-button" class="decline-button" ws-send="click">
|
<button
|
||||||
|
id="cancel-rematch-request-button"
|
||||||
|
class="decline-button"
|
||||||
|
ws-send="click"
|
||||||
|
>
|
||||||
<svg class="icon" alt="Cancel">
|
<svg class="icon" alt="Cancel">
|
||||||
<use href="/icons/decline.svg"></use>
|
<use href="/icons/decline.svg"></use>
|
||||||
</svg>
|
</svg>
|
||||||
|
@ -240,7 +268,11 @@ class GameServer {
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
buttons.push(
|
buttons.push(
|
||||||
<button id="accept-rematch-button" class="accept-button" ws-send="click">
|
<button
|
||||||
|
id="accept-rematch-button"
|
||||||
|
class="accept-button"
|
||||||
|
ws-send="click"
|
||||||
|
>
|
||||||
<svg class="icon" alt="Accept">
|
<svg class="icon" alt="Accept">
|
||||||
<use href="/icons/accept.svg"></use>
|
<use href="/icons/accept.svg"></use>
|
||||||
</svg>
|
</svg>
|
||||||
|
@ -248,7 +280,11 @@ class GameServer {
|
||||||
</button>,
|
</button>,
|
||||||
);
|
);
|
||||||
buttons.push(
|
buttons.push(
|
||||||
<button id="decline-rematch-button" class="decline-button" ws-send="click">
|
<button
|
||||||
|
id="decline-rematch-button"
|
||||||
|
class="decline-button"
|
||||||
|
ws-send="click"
|
||||||
|
>
|
||||||
<svg class="icon" alt="Decline">
|
<svg class="icon" alt="Decline">
|
||||||
<use href="/icons/decline.svg"></use>
|
<use href="/icons/decline.svg"></use>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
Loading…
Reference in New Issue