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
let promise = new Promise((resolve, reject) => { | |
setTimeout(() => { | |
resolve('new value'); | |
}, 1000) | |
}); | |
promise | |
.then( | |
data => console.log(data), | |
error => console.log(error) |
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
const equals = (a, b) => { | |
if (a === b) return true; | |
if (a instanceof Date && b instanceof Date) return a.getTime() === b.getTime(); | |
if (!a || !b || (typeof a != 'object' && typeof b !== 'object')) return a === b; | |
if (a === null || a === undefined || b === null || b === undefined) return false; | |
if (a.prototype !== b.prototype) return false; | |
let keys = Object.keys(a); | |
if (keys.length !== Object.keys(b).length) return false; | |
return keys.every(k => equals(a[k], b[k])); | |
}; |
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
::-webkit-input-placeholder { /* Chrome/Opera/Safari */ | |
color: pink; | |
} | |
::-moz-placeholder { /* Firefox 19+ */ | |
color: pink; | |
} | |
:-ms-input-placeholder { /* IE 10+ */ | |
color: pink; | |
} | |
:-moz-placeholder { /* Firefox 18- */ |
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
*::-webkit-scrollbar-button { | |
background-image:url(''); | |
background-repeat:no-repeat; | |
width:5px; | |
height:0px | |
} | |
*::-webkit-scrollbar-track { | |
background-color:#ecedee | |
} |
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
<!--IE--> | |
<div unselectable="on" onselectstart="return false;">текст</div> | |
<style> | |
.content { | |
-webkit-user-select: none; /* для Chrome и Safari */ | |
-moz-user-select: none; /* для Firefox */ | |
-ms-user-select: none; /* для IE 10+ */ | |
-o-user-select:none; | |
-khtml-user-select: none; |
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
<link rel="icon" href="favicon.ico" type="image/x-icon"> | |
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> |
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
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body style=" | |
margin: 0; padding: 0; width: 100% !important; min-width: 100%; |
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
<!--Главный контейнер ряда:--> | |
<tr style=" margin: 0; padding: 0;"> | |
<td style=" | |
width: 100%; | |
margin: 0; padding: 0; | |
border-spacing: 0; border-collapse: collapse;" | |
bgcolor="#ffffff" width="600px"> | |
<table style=" | |
width: 100%; margin: 0; padding: 0; | |
border-spacing: 0; border-collapse: collapse; |
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
let requestAnimationFrame = window.requestAnimationFrame || | |
window.mozRequestAnimationFrame || | |
window.webkitRequestAnimationFrame || | |
window.msRequestAnimationFrame; | |
window.requestAnimationFrame = requestAnimationFrame; |
OlderNewer