I want to make a cool visualization where I would overlap lots of semi-transparent images on my canvas. For this, I decided to use context.putImageData() because these images are stored as arrays. The problem is that this method disregards the actual background of the canvas with the already drawn images and …
Tag: html
Search input using a query using Vuex and Axios
I’m trying to make a search input where I input a query and that query gets added to the API call and returns me the data that I want, here’s a sample of my code My JS: My vuex module: The search query is not getting passed on the input, if I put something on the query from the Vuex
Using Javascript FileReader in forEach loop to append elements
I am using the FileReader to insert HTML to a preview element. That parts works. However I need to manipulate the elements after they are inserted. When I try to select the inserted elements with (let previews = document.querySelectorAll(‘.fb-preview li’);) I get and empty node array. I was under …
Is there a way to not reload the whole html body with React Routers?
My React project’s App.js file has routes like so: In my Navbarr component, I have Links that set the routes, e.g.: When I click on any of the links, I would like it to just change the component in my <Switch>. Instead, it seems to re-load the whole html body (my background component flashes, even…
how to fix Uncaught SyntaxError: Identifier ‘translate’ has already been declared
i can’t find solution for this bug i wrok on site web multi language but i can’t don’t know how to fix this bug code Html and link i need to change and this code language Answer This variable has probably already been declared. Check this js file and the others the page references. If there …
How do I build a text 3 question input quiz that redirects on correct answer using JavaScript?
StackOverflow community. I am hoping to help out a friend by fixing the script below to enable it to run. I can see a few errors myself but it’s my first time writing more than echo “Hello World!”;. I would like 3 questions and if all correct, a congradulate box apears “you got all 3 c…
Checking color of an input to disable or enable a submit button
I’ve set up a changing input background color dependent on validity of the input. I am then checking the color with this code: The only thing I am missing is how to continuously check the colour when active (it’s already inside a called function). Currently the “disabled” is true becau…
Try GetElementsByClassName [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 2 years ago. Improve this question try j…
Hiding div when the user scrolls the div not working in JavaScript
I have a section in my website which is built using HTML and CSS, the section is contains a scrollbar with it for users to scroll down, the complete code is below: As you can see I have given a div saying “scroll down” so users will understand there is content below. I want the div to be hidden wh…
Are there different types of HTML closing tags
Recently I came across this type of tag in an HTML: <x/ id=”someId” onpointermove=alert`hello`> This data was fetched from the server as a JSON and then written into the HTML view. The HTML view displays the data with no issues. However, on running the request that just fetches the data in a…