Eighth
Eighth
KPCKevin Powell - Community
Created by Eighth on 5/16/2024 in #front-end
Bitwise operations
Please help me solve the task, I can't make it shorter than 38 characters. Maybe someone understands code golf. Given a natural number x, it is less than 2 to the power of 31, return 1 if at least 1 odd bit of the number = 1, otherwise 0 if the numbering starts from the right with 0 and the rightmost bit 0 has a black position. Condition (code no longer than 23 characters)
7 replies
KPCKevin Powell - Community
Created by Eighth on 5/2/2024 in #front-end
Replace
Hello. Can someone tell me where to find a detailed explanation of writing paternas to the replace() method? I need the most detailed explanation, because I need to write a large paterna
77 replies
KPCKevin Powell - Community
Created by Eighth on 1/18/2024 in #front-end
Problems in vue3
Good day. I'm having some problems with vite and vue3, especially working through "configuration". I couldn’t find anything on YouTube about this, can you give me some tips and advice on where and how to get good knowledge of vue3 and work with the “setup”. I'm having problems. There is a problem with custom elements in vite.config.js, each element requires inclusion in an exception, is there an alternative to this? How is configuration done in Uinput.vue, how do you understand when and what needs to be added? There is such a company in the global.js file, it seems to me that this is some kind of crutch, please tell me whether I am right about this or not Thank you for attention. https://codepen.io/Mister-Eighth/pen/RwdVbjm
30 replies
KPCKevin Powell - Community
Created by Eighth on 9/20/2023 in #front-end
Alarm timer
Hi all! Tell me what is the error? The number n is given. n minutes have passed since the beginning of the night. Determine how many hours and minutes the digital clock will show at the moment. The program should output two numbers: the number of hours (from 0 to 23) and the number of minutes (from 0 to 59). Please note that n can be greater than the number of minutes in a day.
let n = 1441;
let h = Math.floor(n/60);
let m = (n % 60);
if (h >= 24){
h = Math.floor(n/60)%12
}
console.log(h,m)
let n = 1441;
let h = Math.floor(n/60);
let m = (n % 60);
if (h >= 24){
h = Math.floor(n/60)%12
}
console.log(h,m)
7 replies
KPCKevin Powell - Community
Created by Eighth on 9/13/2023 in #front-end
Question about classes
No description
4 replies
KPCKevin Powell - Community
Created by Eighth on 6/7/2023 in #front-end
The script broke all plugins in the project
Good day. Please tell me why, because of the second script, all js constructions on the site break for me. For example, swiper js stops working, as well as menus and more https://codepen.io/Mister-Eighth/pen/KKGGJLQ
1 replies
KPCKevin Powell - Community
Created by Eighth on 5/2/2023 in #front-end
How to translate from jquery to pure js?
Good day. Faced such a problem. How to quickly translate code from jquery to pure js? I have a large piece of code in jquery and manually rewrite it in js for a very long time, but I didn’t want to include the library so as not to load the project and it worked faster. Are there services or programs for translation?
6 replies
KPCKevin Powell - Community
Created by Eighth on 4/18/2023 in #front-end
Rating stars on svg
Good day! wanted to know how to fix svg rating issue. 1) Filling the stroke with a different color than specified in the styles 2) Clipping stroke along with the star 3) The offset of the gradient is different from the example with 5 stars https://codepen.io/Mister-Eighth/pen/KKGgPPp
3 replies
KPCKevin Powell - Community
Created by Eighth on 3/30/2023 in #front-end
Bacground blur problem
I noticed that one element with a blur background overlaps the other one ignoring the z-index, how can I solve this problem?
15 replies
KPCKevin Powell - Community
Created by Eighth on 3/18/2023 in #front-end
What nesting is correct?
Please tell me if it is possible to nest buttons in nav or li. Let's say I make a header menu and want to make a burger button, then should I make an additional shell and insert the button there along with nav, or not?
11 replies
KPCKevin Powell - Community
Created by Eighth on 2/27/2023 in #front-end
Image is not centered
Please tell me what is the error, I can’t center the image, margin 0 is ignored and does not work https://codepen.io/Mister-Eighth/pen/zYJoLmw
4 replies
KPCKevin Powell - Community
Created by Eighth on 1/28/2023 in #front-end
How to make a list animation through height detection
Please help to get block height to animate each of blocks with different time interval. i cant get the height of these blocks as it is hidden https://codepen.io/Mister-Eighth/pen/poZKmdo
5 replies
KPCKevin Powell - Community
Created by Eighth on 1/20/2023 in #front-end
How to make transition dependent on block height?
How can I implement the transition effect with a formula using js or css? I need the transition speed to depend on the height of the block. Tell me how can I implement this?
3 replies
KPCKevin Powell - Community
Created by Eighth on 12/11/2022 in #front-end
How to make a slider like on this site
Who can throw off or suggest how to make such a slider as the one on the link, otherwise I'm a beginner, I still don't understand well https://fancyapps.com/docs/ui/fancybox/
6 replies