Skip to content

Tag: javascript

Toggle Button function doesn’t maintain current State

I have two functions displayDataGraph and displayDataTable that displays data as a table and graph. I have a button that toggles between graph and table display.The graph is the default view and the switch to the table view happens with the toggle button. Each page has a previous and next button that takes us…

Google Tag track popup

I straggle with setting up the google tag for a popup on the website. I follow the guides, but it doesnt work. There is the code from the webpage, what should i take specifically? The webpage where i want to track from –> https://liz.solutions/ I need to track the red button 30 Tage Testversion(30 da…

How can i show/hide navbar based on scroll position?

I am looking for a solution to apply a scroll based animation to my navbar. When i scroll down or up, i want to hide/show the navbar with a scroll animation. After some research i always find only solutions like the following. If you scroll down or up, a css class or a style definition is applied to the navba…

Text converter with javascript split() [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 8 months ago. Improve this question I have bulk data in written text like this: How to make a tool with javas…

Ray Casting floor with HTML canvas

I am coding a small Javascript/ HTML-canvas Wolfenstein style game. I am following Permadi tutorial. For now I did suceed to implement the textured wall raycasting. What I want to do now is to do the floor raycasting. As far as I understand, when I finish to draw a slice of wall, I have to check if it reaches…

How do i search by ID in json file? [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 8 months ago. Improve this question so let’s say i have this JSON file: And i need function that searches by ID,(“1…