Can I use a function that allows me to get the hidden message? If so, could you enlighten me, how can I do it? Using fleissner grille 6 x 6, decipher the hidden message: “lróaon. sg sdersoildsu.:.cc kiomamii”. For this, it must be rotated 90° clockwise. The open grids are at positions [1,1],[4,1],[2,2],[6,2],[5,3],[1,4],[4,4],[ 3,5],[6,5] for the grid in initial position
Tag: javascript
Javascript – What is alternative to find function?
I am using find () function for one of my project. Official document https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find says that Internet Explorer is not supported. What else can I use? Answer A polyfill is a code that provides the functionality that you normally expect the browser to provide you natively. Here is the polyfill for Array.find
How to make emissiveMap lighting only in dark areas in three.js?
With three.js, I render earth with textures. I also add an emissive texture to add the city light. But I have an issue, even the light areas of earth emit the cities light. Exemple: It is possible to render the emissive texture lighting only in dark areas? I don’t find any ways. My texture is set like this: Answer I’ve
How to call push() function from firebase database
I’m trying to get a unique key from the push function but whenever I call it I get this error: Uncaught TypeError: postsRef.push is not a function at HTMLFormElement. These are my imports: And these are the lines that I use to call the push function: I hope you guys can help me, thank you Answer push is nowadays a
Jest command not recognized
So i just started learning about Test Driven Developement and as an example i was asked to run the command npm test helloWorld.spec.js in the terminal but i got this error : I’m working on windows and the only thing i have installed is node so what do i have to do? Answer Choose one of the following methods 1)
ele = document.querySelector(el) for multiple instances of el
I have a swipe detection function detectswipe(el, func) that listens for data-animate=”swipe” and runs the function swipe(el, d) when swiped on mobile. The problem is it only runs on the first instance of data-animate=”swipe” and not every instance. How do I change my code to run on every instance of data-animate=”swipe”? Answer To boil it down to the basics: Event
setting width, height via setAttribute for a grid of divs – Etch-a-sketch. Style resets when hovered over
I’m quite new to coding. I’m coding an Etch-a-sketch (via the Odin Project). Basically, it consists of a grid, which when hovered over, the boxes of the grid will change to a random color. (the container is supposed to keep the same dimensions) Upon loading the page, it starts with a basic grid of 16×16 boxes. The user also has
How can I remove this icon from text field? (Vuetifyjs, CSS)
I have this vuetifyjs text field and I want to remove the clock icon. <v-text-field v-model=”model.end_time” type=”time”> </v-text-field> I have already tried this code but it is not working Can someone help me with this Answer You need append css code globally. If you add css in <style scoped> it will be not working.
How to use css counters in nested lists without parent index while not using a separate counter for each level
My code example: The above code outputs: I want the child items not to have a parent index, like the following: I am aware that this can be achieved with a separate counter for each level, but then you need to write out the CSS for each counter. In my real use case, there are unpredictable levels and I don’t
How to disable other buttons onclick for a short period of time
i have simple quizz project where i fetch data of questions and answers my problem is when i click on one of the answers i want other buttons to be disabled because if someone keeps pressing on other options the quiz will rapidly change questions. i want to disable other answer options when i clik on the answer and then