I have a project in CS class where we have to clone an app that we use on a daily basis. I chose cashapp. I have a flexbox container holding the balance value, and I want the balance text to be responsive and shit itself to always be centered in the middle of the screen. I’ve achieved this with justify-…
Tag: html
Regular Expression Allowing Input For Only Numbers and One Decimal
I want an input text box that restricts users to only enter numbers and one decimal point. The regular expression I am using currently is /[^d.]/g. Currently this allows the user to only input numbers and decimals but also allows for more than one decimal number. I am using it for a text box to allow only a s…
loading a text file into the correct textbox in html
I have been playing with this code and have yet to figure out how to do it. The code is javascript and will save a single textbox value into a text file that can later be loaded back into the textbox. The problem is that I am trying to make it work with multiple text boxes on a website but
Expand background jQuery trigger not working
The goal is when you click on the image behind the red square, the red square expands to the whole webpage. But the moment after you clicked on the image the transition plays like this… …and ended like this. when you click on the red expanded square it transitions perfectly back to this, but in a …
Scrollbar not scrolling completely down the page while using locomotive scroll
I will try ti keep it as simple as possible! This is my first time using locomotive scroll while I am testing my code out I am not able to scroll all the way below. The scroll bar is visible but but I am not able to scroll or drag it using the mouse. I seriously spend hours to find
How to filter numbers in a drop down list?
I have an HTML table with a numeric variable called statut. The statut variable is a drop-down list, it has two values -> 1 and 9. The method in typescript seems to be correct I think my problem is the HTML, how to make the HTML know that it must filter a number and not a string? Thank you for
How can I place two statements on same line?
I just need both statements on the same line. This must be simple!! (but I cant do it!) Thanks Answer p is representing a paragraph and therefore is (usually) a block element. For what you are doing, you would be better served with using an inline element like span. Making the element inline will lead to both…
Chrome asks if an application should be opened
We have a website that allows the user to download and open a Word file. Chrome started recently opening an annoying popup when the users downloads the Word The javascript code called to open the file is Is there some solution to tell Chrome to always open that kind of links? It is annoying our users, that ne…
Show rating stars in react not showing any stars
I am building website of Mangas where each Manga has star reviews. I am done with backend but since I am very new to react, I can not figure out how to display stars on webpage. I’m developing it in Django so: id=”{{ rating }}” is a loop where I display each manga with title, rating and so o…
When click button change text in code tag
I’m trying to make a code box you can see in image . My question is how can ı change code in code tag when click another language button ? Answer You have to put some Javascript code. If click on JavaScript tab, display none PHP tab data and if click on PHP tab, display none the Javascript tab data.