CodeBase | Frontend | #plugin
Please open Telegram to view this post
VIEW IN TELEGRAM
The Odin Project - это бесплатный онлайн-курс, который поможет вам освоить все основные навыки веб-разработки, начиная с HTML и CSS, и заканчивая созданием полноценных веб-приложений.
➡️ Ссылка на проект
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
⚡️ React.js Cheatsheet – сборник готового кода по множеству тем: компонентам, свойствам, хукам, работе с узлами DOM и т. д.
CodeBase | Frontend
CodeBase | Frontend
:target {
css declarations;
}
CodeBase | Frontend | #css
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
const caesarCipher = (str, num) => {CodeBase | Frontend | #snippets
const arr = [...'abcdefghijklmnopqrstuvwxyz']
let newStr = ''
for (const char of str) {
const lower = char.toLowerCase()
if (!arr.includes(lower)) {
newStr += char
continue
}
let index = arr.indexOf(lower) + (num % 26)
if (index > 25) index -= 26
if (index < 0) index += 26
newStr +=
char === char.toUpperCase() ? arr[index].toUpperCase() : arr[index]
}
return newStr
}
caesarCipher('Hello World', 100) // Dahhk Sknhz
caesarCipher('Dahhk Sknhz', -100) // Hello World
Please open Telegram to view this post
VIEW IN TELEGRAM
// Асинхронный код; 'done' журналирован после данных о положении, несмотря на то что 'done' предполагаетсяCodeBase | Frontend | #js
// исполнить в коде позже
navigator.geolocation.getCurrentPosition(position => {
console.log(position);
}, error => {
console.error(error);
});
console.log("done");
// Асинхронный код обработан после промиса; мы получаем желаемый результат — данные о положении
// журналированы, затем журналировано 'done'
const promise = new Promise((resolve, reject) => {
navigator.geolocation.getCurrentPosition(resolve, reject);
});
promise
.then(position => console.log(position))
.catch(error => console.error(error))
.finally(() => console.log('done'));
// Асинхронный код с async/await выглядит как синхронный, наиболее удобочитаемый способ
// работы с промисами
async function getPosition() {
// async/await работает только в функциях (пока)
const result = await new Promise((resolve, reject) => {
navigator.geolocation.getCurrentPosition(resolve, reject);
});
const position = await result;
console.log(position);
console.log('done');
}
getPosition();
Please open Telegram to view this post
VIEW IN TELEGRAM
CodeBase | Frontend | #js
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
Flexer - визуальный конфигуратор CSS Flexbox, который отлично подходит для начинающих для изучения и понимания работы flexbox.
🔗 Ссылка
CodeBase | Frontend | #resource
CodeBase | Frontend | #resource
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
CodeBase | Frontend | #scss
Please open Telegram to view this post
VIEW IN TELEGRAM
CodeBase | Frontend | #react
Please open Telegram to view this post
VIEW IN TELEGRAM
Будет полезно новичкам, да и старичкам тоже.
CodeBase | Frontend | #lesson #js
Please open Telegram to view this post
VIEW IN TELEGRAM
В данном видеокурсе мы с вами рассмотрим технологию Flexbox. Flexible Box Layout Module (Flexbox) - представляет собой способ компоновки элементов, в основе лежит идея оси. Другими словами все элементы можно располагать вдоль основной и поперечной осей, или вертикально и горизонтально. Технология позволяет буквально в пару свойств создать гибкий лэйаут, или гибкие UI элементы.
CodeBase | Frontend | #css
Please open Telegram to view this post
VIEW IN TELEGRAM
CodeBase | Frontend | #templates
Please open Telegram to view this post
VIEW IN TELEGRAM
CodeBase | Frontend | #animate #js
Please open Telegram to view this post
VIEW IN TELEGRAM
Годная вещь для новичков, которые хотят разобраться с флексами
CodeBase | Frontend | #css #ресурсы
Please open Telegram to view this post
VIEW IN TELEGRAM