Никита Дубко, Яндекс
___ ___ _____ _____ ______ _
| \/ | | _ / ___| | _ \ (_)
| . . | __ _ ___| | | \ `--. | | | |_ __ ___ _____ _ __
| |\/| |/ _` |/ __| | | |`--. \ | | | | '__| \ \ / / _ \ '_ \
| | | | (_| | (__\ \_/ /\__/ / | |/ /| | | |\ V / __/ | | |
\_| |_/\__,_|\___|\___/\____/ |___/ |_| |_| \_/ \___|_| |_|
______ _ _
| _ \ | | | |
| | | |_____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_
| | | / _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __|
| |/ / __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_
|___/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__|
| |
|_|
разработчик интерфейсов, Яндекс
.header::after {
content: '';
width: 100vw;
position: absolute;
bottom: -1px;
left: 50%;
transform: translateX(-50%);
border-bottom: 1px solid #d6d8d9;
}
.header::after {
content: '';
width: 100vw;
position: absolute;
bottom: -1px;
left: 50%;
transform: translateX(-50%);
border-bottom: 1px solid #d6d8d9;
}
<picture>
<source type="image/webp"
srcset="img-mobile@1x.webp 1x,
img-mobile@2x.webp 2x">
<img src="img-mobile@1x.jpg"
srcset="img-mobile@2x.jpg 2x"
alt="Привет, мир!">
</picture>
.bg {
background-image: url('img/bg@1x.jpg');
}
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi),
(min-resolution: 2dppx) {
.bg {
background-image: url('img/bg@2x.jpg');
}
}
var OSName = "Unknown";
if (window.navigator.userAgent.indexOf("Windows NT 10.0")!= -1) OSName="Windows 10";
if (window.navigator.userAgent.indexOf("Windows NT 6.2") != -1) OSName="Windows 8";
if (window.navigator.userAgent.indexOf("Windows NT 6.1") != -1) OSName="Windows 7";
if (window.navigator.userAgent.indexOf("Windows NT 6.0") != -1) OSName="Windows Vista";
if (window.navigator.userAgent.indexOf("Windows NT 5.1") != -1) OSName="Windows XP";
if (window.navigator.userAgent.indexOf("Windows NT 5.0") != -1) OSName="Windows 2000";
if (window.navigator.userAgent.indexOf("Mac") != -1) OSName="Mac/iOS";
if (window.navigator.userAgent.indexOf("X11") != -1) OSName="UNIX";
if (window.navigator.userAgent.indexOf("Linux") != -1) OSName="Linux";
ОС | Системный шрифт |
---|---|
Mac OS X El Capitan | San Francisco |
Mac OS X Yosemite | Helvetica Neue |
Mac OS X Mavericks | Lucida Grande |
Windows Vista+ | Segoe UI |
Windows XP | Tahoma |
_ _ _ _ ______ _
| | | (_) | | | _ \ (_)
| | | |_ _ __ __| | _____ _____ | | | |_ __ ___ _____ _ __
| |/\| | | '_ \ / _` |/ _ \ \ /\ / / __| | | | | '__| \ \ / / _ \ '_ \
\ /\ / | | | | (_| | (_) \ V V /\__ \ | |/ /| | | |\ V / __/ | | |
\/ \/|_|_| |_|\__,_|\___/ \_/\_/ |___/ |___/ |_| |_| \_/ \___|_| |_|
______ _ _
| _ \ | | | |
| | | |_____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_
| | | / _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __|
| |/ / __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_
|___/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__|
| |
|_|
разработчик интерфейсов, Яндекс
document.addEventListener("keydown", function(e) {
var isMac = window.navigator.platform.match("Mac");
if ((isMac ? e.metaKey : e.ctrlKey) && e.keyCode == 67) {
e.preventDefault();
// обработка Ctrl/Cmd + C
}
}, false);
michilehr.de/overwrite-cmds-and-ctrls-in-javascript/
mefody.github.io/talks/mdd/
@dark_mefody
mefody@yandex-team.ru