Skip to content

Commit 1313169

Browse files
committed
Fix CSS, word separator
1 parent d270c62 commit 1313169

File tree

1 file changed

+48
-9
lines changed

1 file changed

+48
-9
lines changed

jp_diceware.html

Lines changed: 48 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,64 @@
66
<style>
77
body {
88
font-family: sans-serif;
9-
padding: 2em;
9+
margin: 0;
10+
padding: 0;
11+
height: 100vh;
12+
display: flex;
13+
flex-direction: column;
14+
align-items: center;
15+
justify-content: center;
16+
background: #f5f5f5;
1017
}
18+
19+
main {
20+
width: 80%;
21+
max-width: 600px;
22+
text-align: center;
23+
}
24+
25+
h1 {
26+
font-size: 2.5rem;
27+
margin-bottom: 1rem;
28+
}
29+
30+
label, input, button {
31+
font-size: 1.25rem;
32+
}
33+
1134
input[type="number"] {
12-
width: 60px;
35+
width: 80px;
36+
padding: 0.5rem;
37+
margin: 0 0.5rem;
38+
}
39+
40+
button {
41+
padding: 0.5rem 1rem;
42+
cursor: pointer;
1343
}
44+
1445
.word-list {
15-
margin-top: 1em;
16-
white-space: pre;
46+
margin-top: 1.5rem;
47+
padding: 1rem;
48+
background: #fff;
49+
border: 1px solid #ccc;
50+
border-radius: 8px;
51+
white-space: pre-wrap;
1752
font-family: monospace;
53+
font-size: 1.25rem;
1854
}
1955
</style>
2056
</head>
2157
<body>
58+
<main>
2259
<h1>🎲 Word Roller</h1>
23-
<label for="numWords">Number of words (1–10):</label>
24-
<input type="number" id="numWords" min="1" max="10" value="3">
25-
<button onclick="rollWords()">Roll!</button>
26-
60+
<div>
61+
<label for="numWords">Number of words (1–10):</label>
62+
<input type="number" id="numWords" min="1" max="10" value="3">
63+
<button onclick="rollWords()">Roll!</button>
64+
</div>
2765
<div class="word-list" id="result">Loading wordlist...</div>
66+
</main>
2867

2968
<script>
3069
let csvData = [];
@@ -68,7 +107,7 @@ <h1>🎲 Word Roller</h1>
68107
// Extract columns 2 and 4
69108
const output = shuffled.map(row => {
70109
const cols = row.split(',');
71-
return `${cols[1]}, ${cols[3]}`;
110+
return `${cols[1]} - ${cols[2]} - ${cols[3]}`;
72111
}).join('\n');
73112

74113
resultEl.textContent = output;

0 commit comments

Comments
 (0)