All Questions
Tagged with visibility javascript
386
questions
-1
votes
1
answer
186
views
How can I loop through and make these images disappear onclick?
I have a grid of images in divs. I want it to work like a checkbox where you press the image and it disappears press it again and it appears. I have some code that works but I can't figure out how to ...
0
votes
3
answers
2k
views
React: Image is not displayed
Im folgenden Code sieht man wie ich das bild darstellen möchte, das Bild wird aber nicht angzeigt, nur der text wird angezeigt.
<div> <b> Test123 </b> <image src={require('../../...
0
votes
2
answers
47
views
Javascript visiblity toggle with onscroll
var headPos = window.scrollY;
window.onscroll = function(){
headPos = window.scrollY;
}
window.onscroll = visi;
function visi(){
if(headPos < 1300){
document.getElementById("...
-1
votes
1
answer
57
views
Trying to display animation on click....not working (js, html, css)
I have a loading element that I want to display on the click of a certain button. I have tried various methods including updating the visibility and display, as well as adding a "show" ...
0
votes
2
answers
2k
views
Conditional visibility in a react component
I have a react component that contains a div with a conditional visibility. The component represents the page of a specific product on an ecommerce. The users can give their opinions once. The div ...
2
votes
1
answer
229
views
unexpected behaviour when using Javascript to hide elements of an HTML table
I am observing strange behaviour when using Javascript to hide portions of an HTML table, and it varies depending on which browser I use. I have made the HTML accessible on this site
https://...
0
votes
1
answer
652
views
Show/Hide divs based on Time/Opening Hours
I am trying to show/hide divs based on opening hours.
The div .open contains the headline "Our store is open" and the other div .close contains the headline "Our store is close".
...
1
vote
1
answer
132
views
How to instantly change the visibility property of child if it has a transition
I have this html-markup. I make a button with class "open-window", it opens a pop-up window. This window can be closed by pressed button with class "close-window", and when you ...
2
votes
1
answer
2k
views
Pause video on Tab switch in browser but should continue Playing when minimized the browser window
I am trying to pause the video when the user switches the tab in the browser and simultaneously if the user minimizes the browser window it should not get paused.
I tried it implementing by using ...
0
votes
0
answers
522
views
After "go to previous page" checkbox remains checked, but won't be detected by jquery
I have an array of checkboxes which can be used in a sort of calendar app. Whenever the checkbox gets checked, a label should become visible. My HTML looks something like this:
<script src="...
0
votes
1
answer
453
views
Showing Hidden Image With Onclick Function
my objective is to have an image hidden until a button is pressed to then show the previously hidden image.
Right now I have an image in html with an Id of "yellowrose" that is hidden with ...
2
votes
0
answers
111
views
2D visibility algorithm not works well for overlapped case
I find the visibility algorithm in one great website
Since it is quiet long ago article, I am not sure that the author will give the answer.
As you can see, the interactive playground(try it yourself) ...
2
votes
1
answer
2k
views
Can browser detect when the browser is running on Foreground or Background mode? [duplicate]
I want to know that when I used multiples types of software on my computer, the browser can detect the others software is running or to?
And also can the browser handle that the browser is running in ...
1
vote
2
answers
4k
views
Cypress - checking for the presence of a button and clicking on it if it is there
Using Cypress I am testing a product which includes an autosave feature which kicks in at regular intervals. You can't guarantee when exactly the autosave will trigger as it is dependent on a number ...
1
vote
3
answers
2k
views
What are the differences between typescript access modifiers and javascript ones? And which one should I prefer while using typescript?
Typescript offers the public,protected and private keywords for defining the visibility of the member or the method declared next to them, however, I know that since ES6 Javascript allow the use of ...