Skip to content

Tag: javascript

Creating a table with D3

I’m trying to create a table in D3 that updates with new data. This mostly works. Somehow I’m not getting any columns in newly added rows (so initially the table is empty). What am I doing wrong? See: https://jsfiddle.net/yev4kujn/21/ Answer In D3 selections are immutable. Therefore, when you do t…

Nested Query GraphQl

I am new using graphql and I would like to know how could I filter my query to get the recipes that has some of the ingredient objects I have in my input array. this is the schema.gql file this recipe schema has 1 respective service and the respective Query resolvers the main idea here is just to have one

Javascript / Three.js is not working in https

I recently switched my http site to https. Since I made this change, one of my projects no longer works. In this random generator, the background using the Three.js library does not appear when the url is in https But in http , it works beautiful and well. Does anyone know any solution to this problem? Thank …

How to display text for some amount of time in JavaScript?

I am making a game using JavaScript.. So, I want to display a “You Win!” text for 5 seconds.But when I execute it, It just shows the text for very less time and disappears. Sofia is the Player’s name and the CUP is just like a finish line for Sofia. This piece of code is to put Sofia back to

React render DOM HTML page in component

In my React app, I am using the standard component. However, when the user clicks a save & exit option they should be redirected to a page which is a dom element from an outside location: document.getElementById(‘thank-you’) I’ve created a component which should display this page: Redire…