I’m fetching data (students via getStudents()) from an API which returns an Observable. Within this result I need to get data from two different tables and combine the result. Here are my simplified interfaces: I now need to fetch all students and add the respective school and classroom for each student…
Parallax.js displays expected behavior on desktop and ios devices but not working on android devices
I implemented the tool as per the instructions at https://pixelcog.github.io/parallax.js/ (also watched a YouTube tutorial on it before that). It works perfectly on desktop sites (and shows graceful degradation on iOS devices as expected). However, it does not display the parallax effect on Android devices ev…
Google Apps Script – If Last Column in table, then paste data with new row
My information is set in columns (A to E), info paste in 2 rows (A2:A3, B2:B3…). What I want to happen is when info set in last column E (E2:E3, E5:E6 and more), new info paste with a new row in column A (A5:A6, B5:B6). My info is in the spreadsheet: This code paste info doesn’t work correctly: An…
What is a better approach to searching a large array for a particular entry multiple times on the same page?
I want to display many icons on the same page but I understand looping through the same array many times each render is too much work and it will reduce performance especially in slower devices. How do you approach this problem? The allIconsSet array is stored and exported in a file and bundled in the app. Th…
Create a css file using node js [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question I am b…
Read more / less code but it doesn’t change properly
After doing some research I came to this code shown below. If you try the code yourself you notice the variable is used for every div with a button and text (the whole site). I tried several other codes but I like the slideDown/Up feature. If somebody knows how I can rearrange this code to make it work for ev…
html onclick not happening when parameter has special characters like $ or [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question I have…
Discord Nickname Command with a specific format
I am relatively new to coding. I already coded a bot with a “nickname changer”. My problem is, that I want it to change to a specific format: “!nick @JohnDoe John” changes name to “JohnDoe [John]” It is for a private server, where everyone can see the users Gametag and thei…
NodeJS how to create a bash like input
I want to create a nodejs cli app, where there is a shell. I have tried doing this so far: But it only works once, how do I make it work continuously? Like so: Answer That is happening because you are only calling the question function once. To ask for next input you need to call it again inside the
Using fetch to read and write files
In my code i’ve a file called “orca.txt” it is just a number writen in this. it looks like: 2300 I use fetch to read this number, i get it with: fetch(‘orca.txt’) .then(response => response.text()) .then(textString => { contador=textString; }); It works very well, but then …