Bookmarks поможет вам ориентироваться в коде, легко и быстро перемещаясь между важными позициями. Также поддерживается набор команд выделения, позволяющий выделять строки с закладками и области между строками с закладками.
CodeBase | Frontend | #плагин
Please open Telegram to view this post
VIEW IN TELEGRAM
docker run -d \
--init \
--name memos \
--publish 5230:5230 \
--volume ~/.memos/:/var/opt/memos \
neosmemo/memos:stable
CodeBase | Frontend | #react
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
<noscript>
отображает альтернативный контент в браузерах без поддержки скриптов или с отключенным JavaScript. <noscript>
Видео не может проигрываться, так как JavaScript отключен.
</noscript>
<!DOCTYPE html>
<html>
<head>
<title>Заголовок документа</title>
</head>
<body>
<h1>Пример тега noscript</h1>
<noscript>
<h2>JavaScript отключен в вашем веб-браузере. Некоторые функции не будут работать.</h2>
<style type="text/css">
#main-content { display: none; }
</style>
</noscript>
<div id="main-content">
<h2>JavaScript включен!</h2>
</div>
</body>
</html>
<meta>
с атрибутом http-equiv="refresh"
и атрибутом content,
указывающим интервал времени до перенаправления. <noscript>
<meta http-equiv="refresh" content="0;URL=ShowErrorPage.html">
</noscript>
CodeBase | Frontend | #js
Please open Telegram to view this post
VIEW IN TELEGRAM
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