Clean slate
6
cards.js
@ -1,6 +0,0 @@
|
|||||||
const cards = [
|
|
||||||
"Discover",
|
|
||||||
"Prospector",
|
|
||||||
"Scientist",
|
|
||||||
"Vase",
|
|
||||||
]
|
|
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 3.3 MiB |
Before Width: | Height: | Size: 2.8 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 3.4 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 3.0 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 3.4 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 3.6 MiB |
Before Width: | Height: | Size: 3.9 MiB |
45
index.html
@ -1,45 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Dominionator</title>
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
display: block;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
img {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
.break {
|
|
||||||
page-break-after: always;
|
|
||||||
}
|
|
||||||
.card {
|
|
||||||
width: 2.25in;
|
|
||||||
break-inside: avoid;
|
|
||||||
}
|
|
||||||
.card.horizontal {
|
|
||||||
width: auto;
|
|
||||||
height: 2.25in;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="cards"></div>
|
|
||||||
<script src="cards.js"></script>
|
|
||||||
<script>
|
|
||||||
const cardsDiv = document.getElementById("cards");
|
|
||||||
const addCard = (card) => {
|
|
||||||
cardsDiv.innerHTML += `<img class="card" src="./cards/${card}_v0.1.png"/>`
|
|
||||||
}
|
|
||||||
// randomizers
|
|
||||||
for (const card of cards) {
|
|
||||||
addCard(card);
|
|
||||||
}
|
|
||||||
// cards
|
|
||||||
for (const card of cards) {
|
|
||||||
for (let i = 0; i < 10; i++) {
|
|
||||||
addCard(card);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|