I have an interface where I can draw a picture. I have a machine learning model that can recognize this image. What I want? After clicking on the button “Recognize” I want to send the output from a machine learning model to an external interface i.e. a text field WITHOUT REFRESHING THE PAGE. Befor…
Tag: css
how to prevent the innerHTML of change again after the click event [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 12 months ago. Improve this question Answer Just test for innerHTML first to see if there is already somethign in there…
Updating tailwindCSS class attributes on button click
I’m working on a project that uses pre-made TailwindUI component code. If you refer to this gif, you can see that the code on the site is responsive to mobile design and the hamburger menu toggles on button click. However, the code given for this does not include the necessary JS, so the toggling of the…
How to remove unnecessary space using css?
I made a simple HTML webpage recently, and everything works perfectly, except for on the webpage you can scroll to the right and there’s a strange space where there aren’t any elements and that the background doesn’t cover. I’ve gone over my code many times, but I just can’t figu…
Avoid vertical scrollbar shift in container
In html, I have a panel with a fixed height which contains cards. It can contain one card or many cards. Hence, because the panel has a fixed height, it can be needed to have a scrollbar displayed in order to visualize all cards. This works properly with the property overflow: auto. However, when the scrollba…
Function parameter is not defined in callback
I am trying to get the location of the user and using that I am trying to get the city. I don’t why but when I call the query function, the city parameter is having some value but it is not reflected in the callback function’s if condition. However, if I replace the city variable in the If conditi…
How to make floating text onclick like cookie clicker?
When clicking the “big cookie” in cookie clicker, there is a popup showing how many cookies you earned (+276.341 septillion in this image), which slowly moves upward and fades out. I wanted to implement a similar feature in my game, I sucessfully made the moving up and fading out part with css ani…
Creating health bar that increases in value based on users level
Hello I am trying to create a healthbar that scales in max value based on the users level. But I am kinda stuck with it because everytime the healthbar ends up in not having the right length based on the users level and it’s health. The system works like this: the user starts at level 1 with a health va…
CSS how to make an effect of a hand holding cards
So basically i want to have an transparent image of a hand holding cards, then i want to display cards on a curve like when you are holding 10 cards in your hand (not fixed 10 of course). So they should be positioned on a curved dome. I’m working in angular, and i know that i have to accomplish this
How can I keep flex columns from expanding when hidden section opened?
What I’m trying to accomplish is having a hidden section opened by a button (the “Disclosure” button) but when that section expands I don’t want the column next to it to expand as well because there’s no need for it to do so. I feel like it has to be something in the Flex setting…