chorter code | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 4

chorter code

I think my code can be written much shorter. https://sololearn.com/compiler-playground/WN92EnWHz1b8/?ref=app

22nd Feb 2024, 6:22 PM
PASHA 🇷🇺
PASHA  🇷🇺 - avatar
3 ответов
+ 2
you can nest the head and body of the nail and move it as a single unit. The css values could be modified through javascript. here are the code refactors: https://sololearn.com/compiler-playground/W9KNrn6qMBSu/?ref=app https://sololearn.com/compiler-playground/Wpd0TI6KZwQy/?ref=app
22nd Feb 2024, 11:34 PM
Bob_Li
Bob_Li - avatar
+ 7
Bob_Li! You are an expert! Thank you very much for help!
23rd Feb 2024, 5:45 AM
PASHA 🇷🇺
PASHA  🇷🇺 - avatar
+ 2
PASHA 🇷🇺 here is a native vanilla js version without using jQuery. if you used a unique, non-keyword id, it can be accessed by js even without assigning to variables. https://sololearn.com/compiler-playground/W02tpyH83R9N/?ref=app
23rd Feb 2024, 12:48 PM
Bob_Li
Bob_Li - avatar