Skip to content

Commit 7071cd5

Browse files
authored
bigger paddings
1 parent 5d41950 commit 7071cd5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/functions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,15 @@ function enforceMinMax(el) {
227227

228228
function drawBGCanvas() {
229229
loadArray = []
230-
for(let i=0; i<20; i++) {
231-
for(let j=0; j<20; j++) {
230+
for(let i=0; i<10; i++) {
231+
for(let j=0; j<10; j++) {
232232
const image = new Image(60, 45); // Using optional size for image
233233
image.src = countriesFlags[Math.floor(Math.random() * (countriesFlags.length - 1))].normal;
234234
image.crossOrigin = "anonymous"
235235
image.onload = () => {
236236
ctx.drawImage(image, i * (canvas.width / 20), j * (( canvas.width / 20 ) / 1.5), canvas.width / 20, ( canvas.width / 20 ) / 1.5 );
237237
loadArray.push(i,j)
238-
if(loadArray.length == 400) { // This is a programming sin if I've ever seen one
238+
if(loadArray.length == 200) { // This is a programming sin if I've ever seen one
239239
var imageDataURL = canvas.toDataURL();
240240
//set the dynamic image as the background
241241
document.body.style.background =

style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ input[type="file"] {
5151
text-align: left;
5252
box-sizing: border-box;
5353
width: 100%;
54-
padding: 20px;
54+
padding: 50px;
5555
height: auto;
5656
left: 50%;
5757
margin:auto;
@@ -274,7 +274,7 @@ hr {
274274
user-select: none;
275275
grid-gap: 10px;
276276
width: 100%;
277-
padding: 20px;
277+
padding: 50px;
278278
}
279279
.grid {
280280
grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));

0 commit comments

Comments
 (0)