made aspect ratio consistent for avatar images, fixed bug in scrolling the background instead of the modal on iOS
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 753 B |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 871 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 824 B |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1012 B |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -51,9 +51,13 @@ window.onload = function() {
|
||||
"<img alt='No art' src='/assets/images/roles-small/" + cards[i].role + ".png' />"
|
||||
: "<span>Art soon.</span>";
|
||||
modalRole.innerHTML =
|
||||
"<h2 class='" + roleClass + "'>" + cards[i].role + "</h2>" +
|
||||
roleImage +
|
||||
"<p>" + cards[i].team + "</p>" +
|
||||
"<div>" +
|
||||
roleImage +
|
||||
"<div>" +
|
||||
"<h2 class='" + roleClass + "'>" + cards[i].role + "</h2>" +
|
||||
"<p>" + cards[i].team + "</p>" +
|
||||
"</div>" +
|
||||
"</div>" +
|
||||
"<p>" + cards[i].description + "</p>";
|
||||
|
||||
document.getElementById("roles").appendChild(modalRole);
|
||||
@@ -126,10 +130,12 @@ function resetCardQuantities() {
|
||||
|
||||
function displayRoleModal() {
|
||||
document.getElementById("role-modal").classList.remove("hidden");
|
||||
document.getElementById("app-content").classList.add("hidden");
|
||||
}
|
||||
|
||||
function closeModal() {
|
||||
document.getElementById("role-modal").classList.add("hidden");
|
||||
document.getElementById("app-content").classList.remove("hidden");
|
||||
}
|
||||
|
||||
function buildDeckFromQuantities() {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.app-content {
|
||||
#app-content {
|
||||
width: 92%;
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.app-content {
|
||||
#app-content {
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ html, body {
|
||||
}
|
||||
}
|
||||
|
||||
.app-content {
|
||||
#app-content {
|
||||
text-align: center;
|
||||
margin: 0 auto;
|
||||
}
|
||||
@@ -853,21 +853,29 @@ label {
|
||||
.modal-role {
|
||||
width: 22em;
|
||||
position: relative;
|
||||
border-bottom: 1px solid lightgray;
|
||||
padding-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.modal-role div {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.modal-role div div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.modal-role p:first-of-type {
|
||||
margin-top: 0;
|
||||
margin: 0;
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.modal-role h2 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.modal-role img {
|
||||
position: absolute;
|
||||
top: -10px;
|
||||
left: 110px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.modal {
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="app-content">
|
||||
<div id="app-content">
|
||||
<div id="create-game-container">
|
||||
<h2 class="app-header-secondary">Create A Game</h2>
|
||||
<label>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<script src="../node_modules/socket.io-client/dist/socket.io.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="app-content">
|
||||
<div id="app-content">
|
||||
<div id="message-box"></div>
|
||||
<div id="lobby-container"></div>
|
||||
<div id="game-container"></div>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<script src="../node_modules/socket.io-client/dist/socket.io.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="app-content">
|
||||
<div id="app-content">
|
||||
<a href="/">
|
||||
<div class="app-title">
|
||||
<img src="../assets/images/Wolf_Logo.gif" alt="Where Are the Wolves?" />
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<script src="../node_modules/socket.io-client/dist/socket.io.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="app-content">
|
||||
<div id="app-content">
|
||||
<div id="join-game-container">
|
||||
<h2 class="app-header-secondary">Join a Game</h2>
|
||||
<form>
|
||||
|
||||