Skip to content

Instantly share code, notes, and snippets.

var myModule = (function () {
var init = function () {
_setUpListners();
};
var _setUpListners = function () {
};
# Numerous always-ignore extensions
*.bak
*.diff
*.err
*.exe
*.log
*.orig
*.rej
*.sass-cache
*.swo
@AlexanderChev
AlexanderChev / map.js
Created May 3, 2017 20:20
Google Maps Script
function init() {
var e = Math.max(document.documentElement.clientWidth, window.innerWidth || 0)
, o = e > 480
, n = {
zoom: 8,
scrollwheel: !1,
mapTypeControl: !1,
streetViewControl: !1,
draggable: o,
zoomControl: !1,
;(function(window, document) {
'use strict';
var file = 'img/sprite.svg', // путь к файлу спрайта на сервере
revision = 1; // версия спрайта
if (!document.createElementNS || !document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect) return true;
var isLocalStorage = 'localStorage' in window && window['localStorage'] !== null,
request,
data,
insertIT = function() {
document.body.insertAdjacentHTML('afterbegin', data);
{
"tagname-lowercase": true,
"attr-lowercase": true,
"attr-value-double-quotes": true,
"attr-value-not-empty": false,
"attr-no-duplication": true,
"doctype-first": true,
"tag-pair": true,
"tag-self-close": false,
"spec-char-escape": true,
{
"rules": {
"color-hex-case": "lower",
"color-hex-length": "long",
"color-no-invalid-hex": true,
"font-family-name-quotes": "always-unless-keyword",
"font-family-no-duplicate-names": true,
"function-calc-no-unspaced-operator": true,
; http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = tab
indent_size = 4
end_of_line = lf
trim_trailing_whitespace = true
{
"extends": "eslint:recommended",
"env": {
"es6": true,
"node": true,
"browser": true
},
"ecmaFeatures": {
html {
box-sizing: border-box;
height: 100%;
}
*, *:before, *:after {
box-sizing: inherit;
}
@mixin mobile-only {
@media (max-width: 768px) {
@content;
}
}
@mixin tablet-only {
@media (max-width: 1200px) {
@content;
}