“` I’ve duplicated six modal cards that operate OK with javascript, but they are all identical and I can’t change different html content. I spent the entire day trying to solve this problem while feeling panicked. I have a deadline until Monday and other tasks to complete, so if I don’t succeed here, I won’t obtain my first internship. Please assist
Tag: html
Return line segment instead of SVG icon
I have created a SVG icon. But when I click on it. It has chances that the return object is the line segement of the SVG reather than the svg element. Here is the UI: Here is the evidence: The clicked target is a POLYGON in the svg… How can this happen? Answer If you are trying to access the
My toggle button will not switch from left to right, I have coded in JavaScript and cannot find the bug?
First someone suggested it was a typo with my classList property and I made the necessary changes but it still is not working. I have js node downloaded but it still is not responding. Can anyone help? I cant yet find the bug i need some extra help. I have posted my css javascript and html files below Here is
Run code in a frame from one site to another with JavaScript
I have Site A and Site B. Site B is hosted on Site A in a frame. I can communicate between sites using this code: Code on site A: Code on site B: This code is intended to forward the message. Can I pass code to execute from site A to site B, like change the background color on site
Chrome Extension: Confirm window is not appearing on currently using tab? it just appear on one tab (popup.html)
I am developing chrome extension for e-gym that generates confirm window for using chrome browser after every one hour. I have developed chrome extension but the confirm window is only appearing on popup.html. I want to turn on my extension let it generate window.confirm on any tab that I am using currently after 1 hour. here’s my code: manifest.json: **popup.html:
(JS/CANVAS/HTML) – isPoinToPath inaccurate?
Below here, the provided snippet for testing purpose. The yellow(y) represent the canvas area, return “n” on click The red(r) represent the click area, return “y” on click The trouble(x) represent the error, return “y” when clicked How to make it right? Answer You have a mismatch between the CSS setting of height of canvas (100px) and the canvas’s attribute
How to make the cropped image to be square instead of circular in react-avatar-edit
I am using react-avatar-edit to allow a user crop their images before saving to database. It only shows a circular crop thereby making the uploaded images circular but I want to have a rectanglar crop. I can’t seem to find a prop for that in the documentation. Please has anyone achieved that yet? Screenshot showing the circular preview. I want
How do I make a checkbox that automatically refreshes the page without changing the values of inputs?
I’m trying to make a checkbox that will automatically refresh the page every few seconds or minutes when checked using JavaScript. I found some ways to make it refresh the page, but when it does that, all of the inputs including the checkbox return to their default value. I want them to keep their current value when the page gets
Sum of two random numbers with Javascript
I’m trying to create a program with Javascript that prints two random numbers and calculates their sum. It should be really easy, but for some reason I can’t get the program to work. I’ve got the program to print random numbers, but I can’t get it to add the numbers together. What am I doing wrong? Answer Your code is
How to close browser after form has been submitted?
I am trying to submit a form and then the browser has to close. But I cannot understand why it will not work. For some reason, it will close the window, but it does not submit the form. Tried to submit the form with jQuery and then close the window Answer I see you are using jQuery, you can use