This file contains 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
Hello world! |
This file contains 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
// Cardholder name | |
pattern: /^[A-Za-z0-9\s]+$/ | |
Links | |
https://habrahabr.ru/post/123845/ | |
http://igorescobar.github.io/jQuery-Mask-Plugin/ | |
http://preg-match.ru/images/regular-expressions-cheat-sheet-v2.png |
This file contains 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
Object.Keys(o) - Не поддерживает свойство или метод "key" | |
Error in IE 6 / IE 7 / IE 8 | |
Supported in IE 9 / IE 10 / IE Edge | |
... |
This file contains 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
/* | |
* SCSS | |
*/ | |
@mixin apply-to-ie6-only { | |
* html { | |
@content; | |
} | |
} | |
@include apply-to-ie6-only { | |
#logo { |
This file contains 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
EcmaScript Stages: | |
0) Strawman | |
1) Proposal | |
2) Draft | |
3) Candidate | |
4) Finished | |
JS bind(this) | |
ES7 {::this.onButtonClick} -> Только в stage 0 |
This file contains 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 from 'react'; | |
import ReactDOM from 'react-dom'; | |
export default class MyComponent extends React.Component { | |
_destroy = (e) => { | |
// - Удаление компонента из DOM | |
ReactDOM.unmountComponentAtNode(document.body); | |
} | |
This file contains 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
input:not([type]), | |
input[type="email" i], | |
input[type="number" i], | |
input[type="password" i], | |
input[type="tel" i], | |
input[type="url" i], | |
input[type="text" i] { | |
padding: 1px 0px; | |
} |
This file contains 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
// | |
// padding, margin, font, ... | |
// | |
.class_name | |
// | |
// padding | |
// | |
// CSS var.1 | |
padding-top: 21px | |
padding-left: 18px |
This file contains 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
// | |
// JavaScript Notice | |
// | |
// DPR (Device Pixel Ration) | |
console.log( window.devicePixelRatio ); | |
// |
This file contains 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
Однострочное обрезание текста: | |
text-overflow: ellipsis | |
overflow: hidden | |
width: 100px | |
white-space: nowrap | |
Как реализовано многострочное обрезание текста на youtube: | |
1) CSS3 Обрезание текста с троеточием в конце второй строки |
OlderNewer