Compare commits

..

No commits in common. "c7e5fb83fcb022057789c2751d335231c2cf7c13" and "b4d58817a513ae4de8d23755e64ddf4fce52fe32" have entirely different histories.

3 changed files with 5 additions and 56 deletions

View File

@ -55,17 +55,6 @@ function main() {
selectedPhotos[0].click() selectedPhotos[0].click()
} }
function moveToNextSlot() {
/** @type HTMLCollectionOf<HTMLImageElement> */
const selectedPhotos = selectedPhotosDiv.getElementsByTagName("img")
for (const img of selectedPhotos) {
if(img.src.endsWith("stock.svg")) {
img.click()
return
}
}
}
function loadAlbums() { function loadAlbums() {
(async () => { (async () => {
try { try {
@ -126,7 +115,6 @@ function loadPhotos() {
for(const photo of photoImgs) { for(const photo of photoImgs) {
photo.onclick = () => { photo.onclick = () => {
selectedPhotoImg.src = photo.src selectedPhotoImg.src = photo.src
moveToNextSlot()
} }
} }
} catch(e) { } catch(e) {

View File

@ -10,7 +10,6 @@
justify-content: space-around; justify-content: space-around;
flex-direction: column; flex-direction: column;
flex: 25%; flex: 25%;
overflow: scroll;
} }
.imagebox { .imagebox {
padding: 2rem; padding: 2rem;
@ -45,8 +44,8 @@
} }
.template { .template {
width: 6rem; width: 100px;
height: 6rem; height: 100px;
} }
.template-selected { .template-selected {
@ -115,13 +114,3 @@
grid-template-areas: grid-template-areas:
"A B C D" "A B C D"
} }
.one-three-topbottom {
display: grid;
grid-template-areas:
"A A A"
"B C D"
}
.one-three-topbottom .img1 {
grid-area: A
}

View File

@ -26,9 +26,6 @@
</select> </select>
</label> </label>
<button id="snapper" class="showbuton">Snap Collage</button>
<p><a href="" target="_blank" id="collage-url"></a></p>
<ul class="templates"> <ul class="templates">
<li> <li>
@ -116,35 +113,10 @@
<div class="img img12"></div> <div class="img img12"></div>
</div> </div>
</li> </li>
<li>
<div class="template three-row">
<div class="img img1"></div>
<div class="img img2"></div>
<div class="img img3"></div>
<div class="img img4"></div>
<div class="img img5"></div>
<div class="img img6"></div>
</div>
</li>
<li>
<div class="template two-row">
<div class="img img1"></div>
<div class="img img2"></div>
<div class="img img3"></div>
<div class="img img4"></div>
<div class="img img5"></div>
<div class="img img6"></div>
</div>
</li>
<li>
<div class="template one-three-topbottom">
<div class="img img1"></div>
<div class="img img2"></div>
<div class="img img3"></div>
<div class="img img4"></div>
</div>
</li>
</ul> </ul>
<button id="snapper" class="showbuton">Snap Collage</button>
<p><a href="" target="_blank" id="collage-url"></a></p>
</div> </div>
<div class="imagebox"> <div class="imagebox">