I’m a beginner to HTML and JavaScript. I’m building a tabs bar, in which I want to have the option to scroll it horizontally, not with a traditional browser scroll, but with arrow buttons that I’ve created. Here is how my tabs bar looks like: This is the best I’ve managed to do: I mana…
How can I calculate the total price of products in a cart using JavaScript?
I’m stuck on how to calculate the total amount and total price of my cart in this project. The task is to create a simple (beginners) e-commerce website where a customer should be able to click on a product and add it to their cart (with the name, amount and price displayed of the product, the amount an…
What is meant as by an external source in JavaScript?
The ECMAScript language specification at section 4.4.2 which defines implementation-defined as: An implementation-defined facility is defined in whole or in part by an external source to this specification Now what exactly is meant here by an ‘external source’? Would an external source be considered s…
send blob to python flask and then save it
So I’m trying to make a website that record your voice, the problem is that when I send to a flask server the blob file or the blob url, my flask python code says that is no content while it is, how can I send the blob, so the server can save it as a file. and my python flask
Can someone suggest an HTML oninvalid Event Attribute work around in the context of my code?
Does anyone have a work around for Safari and google chrome for the HTML oninvalid Event Attribute not correctly working? In the context of my application, within the name field at first, I inputted an invalid answer which was a number, then after I corrected the answer to a valid input. However, the input &#…
How to get elements in order that are placed via translate3d
I am building a Chrome extension that interacts with Youtube comments visible on the screen in my Youtube backend. I want the extension to traverse the list of comments and highlight them one by one like so: I get the comments on the screen in the following way: and then maintain currentIndex to know at what …
How to add dynamic Where queries in objection.js?
I have a table which has a global search bar that needs to trigger search for all fields like firstName, lastName, email and role. Also have a dynamic filter which can have single or multiple filter like “firstName” or/And “lastName” Obviously they need to be paginated. For pagination …
How to add class on the first & last element that has specific class inside multiple same elements class?
Im trying to add class on class on first & last child element with ONLY .active class. I found the code here: It does work, however my problem is that the firstActiveItem class is only applied inside the first carousel and the lastActiveItem class inside second carousel. How do i make it applies on all ca…
In React Js Axios request getting CROS error
I used Axios for API, here is my code. I am getting CROS error. Answer You’ll need to enable CORS from your back-end service. From the image, it is clear that your front-end in running on localhost on port 3000 whereas your back-end or api service is running on port 8000 on localhost. So, enable CORS fr…
DiscordJS filtering users from buttons and limiting buttons to user who used command
I’m trying to make a bot that lets users create embeds using a series of commands and its going well. But I encountered a problem, the bot uses buttons but to confirm something like “Are you sure this is your title?” any user can click the button; which is a problem. I only want the user who…