Lo-Deck
@Lo-DeckAll solutions
- Submitted 18 days ago
Launch-countdown-timer
- HTML
- CSS
- JS
Feel free to leave any comment or suggestion. Thanks.
- Submitted 25 days ago
E-commerce product page
- HTML
- CSS
- JS
Feel free to leave any suggestion or comments, you're welcome.
Thanks.
- Submitted 3 months ago
Mortgage repayment calculator
- HTML
- CSS
- JS
Feel free to leave any comments.
Thanks.
- Submitted 3 months ago
Product list with cart
- HTML
- CSS
- JS
I had a problem with :
const createConfirm = ` ... Start New Order ... document.querySelector('.container').insertAdjacentHTML('afterend', createConfirm);`
I used a new node and this
onclick="newOrder(divMenu)"
to init when you click on it. My problem was I can't init the value to0
.Here my first function :
const newOrder = (element, array, total) => { initMenu(element); array = []; total = 0; document.querySelector('.order-confirmed').style.display = ''; document.querySelector('.background').style.visibility = ''; document.getElementById('number-item').innerText = 0; if(document.querySelector('.container-section .button-add-item')) { document.querySelector('.container-section .button-add-item').previousElementSibling.style.display = 'block'; document.querySelector('.container-section .button-add-item').remove(); } };
and the button was
onclick="newOrder(divMenu, arrayOrder, totalValue)"
And the value wasn't init to
0
and the array keep its value out of the function. What was I missing??So I used
location.reload();
to init all the page and the values.Therefore, I don't understand the problem with this onclick function and how I can reset the values and keep them to
0
out of the function.If you have any idea, feel free to leave any comments. Thanks.
- Submitted 3 months ago
Officelite coming soon site
- HTML
- CSS
- JS
Feel free to leave any comments or suggestion to improve the code .
Thanks.
- Submitted 4 months ago
Interactive pricing component
- HTML
- CSS
- JS
Feel free to leave any comments or whether you know a way to do a progress bar in css with chromium.
Thanks.
- Submitted 4 months ago
Intro section with dropdown navigation
- HTML
- CSS
- JS
Feel free to leave any comments.
Thanks.
- Submitted 4 months ago
Single-page design portfolio
- HTML
- CSS
- JS
Feel free to leave any comments or suggestion.
Thanks.
- Submitted 5 months ago
Body Mass Index calculator
- HTML
- CSS
- JS
I created and set an element and wanted to check whether the element existe or not. So my first thought was
if(displayForm.nextElementSibling === span)
used different way ('span', ...). It was not working, finally I used a variable to do exception.It's possible or not to check it with
.nextElementSibling
?if(sibling === 0) { const createSpan = document.createElement('span'); createSpan.innerText = 'Error not a valid input'; displayForm.insertAdjacentElement("afterend", createSpan); sibling = 1; }
Feel free to leave any comments or advise.
Thanks.
- Submitted 5 months ago
Pricing component with toggle
- HTML
- CSS
- JS
Feel free to leave any comments.
Thanks.
- Submitted 5 months ago
Social media dashboard
- HTML
- CSS
- JS
Feel free to leave any comments. I need some advices to improve my JS and readibility.
Thanks.
- Submitted 5 months ago
Loopstudios landing page
- HTML
- CSS
- JS
Some tips to improve my code are welcome.
Thanks.
- Submitted 6 months ago
Crowdfunding product page
- HTML
- CSS
- JS
It's to have some tips to improve my JS and have more readibility and shorter code.
Thanks.