This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Назначаем уникальный класс с помощью цикла | |
$(".webform-datepicker").each(function(e){ | |
$(this).addClass("datepicker-" + e); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useContext} from "react"; | |
import "./styles.css"; | |
const MyContext = React.createContext(); | |
export default function App() { | |
return ( | |
<MyContext.Provider value="Hello"> | |
<Child /> | |
</MyContext.Provider> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2021-07-05T08:14:12.077Z","extensionVersion":"v3.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Источник: https://code.tutsplus.com/tutorials/wordpress-gutenberg-block-api-an-introduction--cms-31039 | |
Необходимые компоненты | |
Это серия учебников среднего и продвинутого уровня, поэтому предполагается, что вы не новичок в разработке WordPress. Чтобы получить максимальную отдачу от этой серии, вы должны иметь, по крайней мере, рабочие знания о следующем: | |
JavaScript (ES6+) | |
React (and ReactDom) | |
JSX | |
Command line | |
Node/NPM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Источник: https://learn-reactjs.ru | |
1.3 Создать новое React приложение | |
Используйте интегрированный набор инструментов для повышения удобства пользователя и разработчика. | |
В данном разделе описаны несколько популярных наборов инструментов React, которые помогают в таких задачах, как: | |
Масштабирование множества файлов и компонентов. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> span { | |
display: -webkit-box; | |
text-overflow: ellipsis; | |
overflow: hidden; | |
-webkit-line-clamp: 2; | |
-webkit-box-orient: vertical; | |
@media screen and (min-width: $break__for_ipad) { | |
display: block; | |
-webkit-line-clamp: 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form class="form-group"> | |
<span class="title-check">Sort Slots: </span> | |
<div class="form-check form-check-inline"> | |
<input class="form-check-input" type="radio" onMouseDown="this.isChecked=this.checked;" | |
onClick="this.checked=!this.isChecked;" id="inlineRadio1" name="filter-radio"> | |
<label class="form-check-label" for="inlineRadio1">By date</label> | |
</div> | |
<div class="form-check form-check-inline"> | |
<input class="form-check-input" type="radio" onMouseDown="this.isChecked=this.checked;" | |
onClick="this.checked=!this.isChecked;" id="inlineRadio2" name="filter-radio"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.designMode = 'on' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<style> | |
$star: "\f005"; | |
$star-half: "\f123"; | |
$star-o: "\f006"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>autocompliteUi</title> | |
<style> | |
.holder-ui-autocomplete { | |
position: absolute; | |
top: 100%; | |
left: 0; |