Pi (I'll eat who dont correct me
Pi (I'll eat who dont correct me
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 6/29/2024 in #os-and-tools
How do codepen views works?
No description
10 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 6/26/2024 in #front-end
API returning error and also CORS error
No description
21 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 2/27/2024 in #front-end
how to check if user lost internet connection
Sometimes losing time on the web I noticed some websites have specific ways to deal with a user who has lost his connections. I wonder how. Is there an event that fires when this happens?
11 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 2/27/2024 in #front-end
The maxlength attribute for input: text doesn't work for mobile devices?
I'm generating <input> tags through js and each input should have a maxlength attribute. It works fine on pc but don't on mobile. I mean, on PC I can only type 1 digit on each input box, but the same doesn't apply on mobile. Why? Codepen: https://codepen.io/leoncelestino/pen/wvObBax
8 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 2/26/2024 in #front-end
Key and Code values for "enter" key in mobile
My project isn't working on mobile devices. On desktop, it works when the user press "enter" or "backspace" keys, but not on mobile. Is there key and code values for the relative "key" and code event for enter and backspace properties on mobile devices? code:
9 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 2/26/2024 in #front-end
Is there another way to do this?
I want to generate a random word, when the users enter the site I want it to generate a random word, then generate the grid. The way I thought to do this was to use an IIFE asynchronous, but it takes a few milliseconds to generate the first grid. Code: https://github.com/LeonCelestino/Wordle-Game/blob/main/assets/scripts/index.js Livesite: https://codepen.io/leoncelestino/pen/wvObBax
25 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 2/21/2024 in #front-end
Generate new DOM
No description
21 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 2/20/2024 in #front-end
is it possible to make divs grow according to its grid cell?
No description
7 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 2/20/2024 in #front-end
Should I use a different page to render an entirely new DOM?
I'm making a dictionary app, using the free dictionary api (https://dictionaryapi.dev/), and I'm "replacing" some of the default html dom with a new one, generated according with the api. I wonder if the way I did it is fine? or should I indeed render a new page? Github: https://github.com/LeonCelestino/Dictionary js code is as follows:
2 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 2/9/2024 in #back-end
runtime of loops
No description
8 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 2/2/2024 in #front-end
Better way to return a specific item from json
No description
9 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 1/11/2024 in #back-end
Call API with large amount of data without lagging user
I have that API which can return about 200.000 words at once. I want to let this stored at a nodejs server, so user can fetch some of these words in a way that won't lag him Does anyone know how to do it
69 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 1/10/2024 in #back-end
Why do people use IIFE to export nodejs modules?
When watching or reading tutorial content about nodejs, I often see people exporting modules like the following
module.exports = (function(){
return {
nameToExpose: functionToExpose
...
};
})();
module.exports = (function(){
return {
nameToExpose: functionToExpose
...
};
})();
Is there some reason for this specific way? Why just don't export like usual?
4 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 1/8/2024 in #front-end
Run function while async function is pending
I want to learn how can I run a function while part of my code is still running, like an async function or some loop that can take some time to finish. For example, while fetching data from an API, I want it to display a loading animation or message while the async function is pending
6 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 1/7/2024 in #front-end
why {}+[] returns 0?
No description
20 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 1/6/2024 in #front-end
Get ride of commas
I'm doing an english dictionary app, a problem I'm running into is: because of the map function, the code is displaying commas. I want to get ride of the commas, I thought about using "replace" but I'm afraid it will also replace the commas from the examples and definitions texts. Does anyone know how to do this or how to display the content in a better way?
36 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 9/22/2023 in #front-end
Special kind of "inputs"
No description
51 replies
KPCKevin Powell - Community
Created by Pi (I'll eat who dont correct me on 9/16/2023 in #back-end
Should jwt cookie have "bearer" ?
No description
18 replies