Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
SWizzard779 committed Apr 2, 2024
1 parent 95f6564 commit 29a15ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ height: 40px;

.gallery {
padding-top: 50px;
padding-left: 350px;
padding-right: 350px;
margin: 0 150px;
display: flex;
flex-wrap: wrap;
gap: 10px;
Expand Down
6 changes: 2 additions & 4 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ const button = document.querySelector('#search')
const gallery = document.querySelector('.gallery')
const loadBtn = document.querySelector('.load-btn')

export let page;
export let page = 1;
let inputValue = '';



console.trace()
hideLoadBtn()


Expand All @@ -33,7 +31,7 @@ async function handleSubmit(event) {
event.preventDefault();
inputValue = event.currentTarget.elements.input.value.trim();
gallery.innerHTML = '';
page = 1;
page;
if(!inputValue){

iziToast.warning({
Expand Down

0 comments on commit 29a15ec

Please sign in to comment.