Skip to content

Instantly share code, notes, and snippets.

;(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);
@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,
# Numerous always-ignore extensions
*.bak
*.diff
*.err
*.exe
*.log
*.orig
*.rej
*.sass-cache
*.swo
var myModule = (function () {
var init = function () {
_setUpListners();
};
var _setUpListners = function () {
};