5131
Part of @thedevs Rules: @rulesforthedevs Join other dev groups https://thedevs.network
I'm making it semi "responsive". it's designed for small laptops screen, Which looks so huge on my 4k.
So the changes are merely for font sizes.
Hi,
Anyone know how to inspect elements with zooming applied?
I want to change a website styles to look the same as it appear on 90%.
But inspecting only gives css values, not the actual visible sizes.
⚠️ Thomas warned Juber Shaikh [6954217310].
1/3: [JavaScript] use @thehire for jobs
This warning expires on 2026-04-17
No need to make fetchWithAbort, just call normal fetch and pass signal
Читать полностью…
async function fetchWithAbort(url, signal) {
if (signal.aborted) {
throw new Error('Operation cancelled');
}
const controller = new AbortController();
const { signal: fetchSignal } = controller;
const timeout = setTimeout(() => controller.abort(), 10000); // Optional timeout
const onAbort = () => {
clearTimeout(timeout);
controller.abort();
};
signal.addEventListener('abort', onAbort);
try {
const response = await fetch(url, { signal: fetchSignal });
clearTimeout(timeout);
signal.removeEventListener('abort', onAbort);
return response;
} catch (err) {
clearTimeout(timeout);
signal.removeEventListener('abort', onAbort);
if (signal.aborted) {
throw new Error('Operation cancelled');
} else {
throw err;
}
}
}
(async () => {
const controller = new AbortController();
const signal = controller.signal;
setTimeout(() => controller.abort(), 2000);
try {
const res = await fetchWithAbort('https://api.example.com/data', signal);
console.log('Success:', await res.json());
} catch (err) {
console.error(err.message);
}
})();
like this
does any one know how to write cancellable function in javascript
Читать полностью…
I want some one who can create video of how to use a website its and instructions video steps to use an website with there own voice no ai even i will pay 200 INR I Want Raw Video With Clear Voice No Need For Any Editing If Anyone Interested DM me
Читать полностью…
Maybe use vh or vw values for the elements which you dont expect to change on zoom
Читать полностью…
There's gonna be youtube videos, articles, and AI will be good at explaining this
Читать полностью…
oh wait! I read it as $200 USD.... dang 200 Indian rupees?? 👀
Читать полностью…
lol... you're the first person I've heard recently saying they prefer human over AI labor 😅
Читать полностью…
It is node file extracted from exe.it is encrypted.i mean text is encrypted
Читать полностью…
I hope you accomplished your goals at the end, but now you know how elastic you are,
I believe, if you redo it again, you will hit a new endurance level.
offtopic but no. I used to think the same until I actually faced it. I worked for 14-18 hours per day, everyday for over 8 months, skipped meals, inadequate sleeps, no physical activity etc.
I was just focused on single project and outcomes where great but never perfect. And suddenly I lost interest in programming, I left the project and it took me over 1.5 month to finally get back to work. And the worst part is that nothing changed in that 1.5 month break. I was unable to overcome the bad habits that I developed.
I started doing random things that I hated doing earlier, started drawing, writing diary, etc. I don't know how it affected me so much and I couldn't even explain myself what has affected me, and trust me the inability to understand something is the worst thing that could happen to someone. It could make you change or even lose your ambitions.
Burnouts are real bad, idk what are the early signs and how to prevent it, but just try to stay healthy and not to burn yourself out.
Or over refactoring and creating utilities for imaginary situations.
Читать полностью…