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
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
browserify = require('gulp-browserify'), | |
concat = require('gulp-concat'), | |
embedlr = require('gulp-embedlr'), | |
refresh = require('gulp-livereload'), | |
lrserver = require('tiny-lr')(), | |
express = require('express'), | |
livereload = require('connect-livereload') | |
livereloadport = 35729, |
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
Element && !Element.prototype.matches && (function(proto) { | |
proto.matches = proto.matchesSelector || | |
proto.mozMatchesSelector || | |
proto.msMatchesSelector || | |
proto.oMatchesSelector || | |
proto.webkitMatchesSelector || | |
function (selector) { | |
var node = this, nodes = (node.parentNode || node.document || element.ownerDocument) | |
.querySelectorAll(selector), i = -1; | |
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
//http://www.cnblogs.com/52cik/p/js-hide-code.html | |
(function(window) { | |
var rep = { // 替换用的数据,使用了4个零宽字符,数据量减少了一半。 | |
'00': '\u200b', | |
'01': '\u200c', | |
'10': '\u200d', | |
'11': '\uFEFF' | |
}; | |
function hide(str) { |
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
var areas = [{ | |
"code": "110000", | |
"level": 1, | |
"parentCode": "110000", | |
"name": "北京市", | |
"lon": 39.929986, | |
"lat": 116.395645 | |
}, { | |
"code": "110100", | |
"level": 2, |