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
// jQuery | |
export const getScrollbarWidth = () => { | |
// Creating invisible container | |
const outer = document.createElement('div'); | |
outer.style.visibility = 'hidden'; | |
outer.style.overflow = 'scroll'; // forcing scrollbar to appear | |
outer.style.msOverflowStyle = 'scrollbar'; // needed for WinJS apps | |
document.body.appendChild(outer); | |
// Creating inner element and placing it in the container |
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
# Stop all containers | |
docker stop `docker ps -qa` | |
# Remove all containers | |
docker rm `docker ps -qa` | |
# Remove all images | |
docker rmi -f `docker images -qa ` | |
# Remove all volumes |
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
["change", "keyup", "paste", "input", "propertychange", "..."].forEach(function(event) { | |
document.querySelectorAll('.element').addEventListener(event, function() { | |
// Your callback here | |
}, false); | |
}); |
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
var MyModules = (function Manager() { | |
var modules = {}; | |
function define(name, deps, impl) { | |
for (var i=0; i<deps.length; i++) { | |
deps[i] = modules[deps[i]]; | |
} | |
modules[name] = impl.apply( impl, deps ); | |
} |
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
"babel-core": "^6.18.2", | |
"babel-loader": "^6.2.7", | |
"babel-plugin-transform-runtime": "^6.15.0", | |
"babel-preset-es2015": "^6.18.0", | |
"css-loader": "^0.25.0", | |
"vue-html-loader": "^1.2.3", | |
"vue-style-loader": "^1.0.0" |
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
html, body{ | |
margin:0; | |
padding:0; | |
} | |
body{ | |
width:450px; | |
height:335px; | |
font-family:'Arial', sans-serif; | |
font-size:10px; | |
color:white; |
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> | |
<head> | |
<title>Испытание: строим сетку</title> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<div class="top-wrapper"> | |
<div class="layot-positioner"> | |
<div class="header">Header</div> |