I am new to Flutter/Firebase/Firestore etc.. so I am struggling a bit. I want to grab the data from the documents in my ‘users’ collection in Firestore and display it in my account information page. I have spent hours messing around with this and I am stuck. If anybody could help me out that would…
Tag: javascript
How to get .load() working within .each() loop?
I’m modifying a bit of code I found here from this question. I am trying to get it working now for multiple instances of a video. This is the only way I can get it working but I would like to make it work for each instance that there is a video which changes on each page this applies on.
cant change the backgroud after updating the hook
i have a hook that holds number (as index) and array of images: i made two buttons that hold onClick event that should change the background to another image (by index): and the functions: by this the hook (currentIndex) should change and display the next image but its not working. what am i missing? this is …
delete dynamically added content when checkbox in popup.html is unchecked (manifest v3)
I am injecting a JS file and CSS when a checkbox in popup.html is checked. This works. The script loops through all the img elements on the page and positions a DIV with a class under each image: Injected JS If the checkbox is unchecked the style sheet is removed. I also want to remove the injected DIV. If I
Why is window.innerWidth smaller than screen.width even in full screen?
When my browser window is in full screen mode, the inner width of the window still seems to be smaller than my screen width. I am confused because (based on this thread) I thought that, if my inner window took up my entire screen, then it would have the same dimensions as my screen. Instead, I receive the fol…
How to add CSS after click through javascript and remove it if not clicked
I have encountered a problem with javascript clicking to change CSS! I hope that the outer frame and text of the clicked option can be thickened after clicking, but the ones that are not selected should not be thickened! I have tried several ways of writing, but I still don’t know how To complete this r…
javascript removing meta tags that’s added with document.createRange().createContextualFragment() from the
In my react componentDidMount I get meta tags from the response that needs to be added before the </head>. The problem is that I need to remove the meta tags when the component unmounts. I saw a solution to add an ID so I can do getElementById and remove it that way but since the meta tags are dynamic u…
How can I make a variable the name of an element from firebase and alter the new variable?
I’m working on a drive thru app project that uses firebase and JavaScript to display the menu information. I planned to use a template text for displaying everything and it all worked fine. I was even able to make a variable = the value of a field in firebase, but I’m unable to alter that new valu…
Make first letter of TEXT INPUT uppercase [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 7 months ago. Improve this question Im new to JS but I think the post title does its job. From what i saw by googling this prob…
Attach event not working when click on child
I have some dynamically added elements. I want to attach ‘click’ event on a specific class. But the problem is if I click on the child element it’s not working. Here is my dynamically added elements. Here is my javascript code: Answer Maybe the target is a child element of the “step-de…