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 areas = [{ | |
"code": "110000", | |
"level": 1, | |
"parentCode": "110000", | |
"name": "北京市", | |
"lon": 39.929986, | |
"lat": 116.395645 | |
}, { | |
"code": "110100", | |
"level": 2, |
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
//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 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
/** | |
* | |
* @authors yuChuanXi (http://yuchuanxi.com, [email protected]) | |
* @date 2016-03-25 15:02:37 | |
* @title title | |
* @description description | |
*/ | |
'use strict'; | |
/** |
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
/** | |
* | |
* @authors yuChuanXi (http://yuchuanxi.com, [email protected]) | |
* @date 2016-03-24 17:43:55 | |
* @title title | |
* @description description | |
*/ | |
'use strict'; | |
// 部分参数函数 |
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
/** | |
* | |
* @authors yuChuanXi (http://yuchuanxi.com, [email protected]) | |
* @date 2016-03-23 10:12:03 | |
* @title title | |
* @description description | |
*/ | |
'use strict'; | |
// js 模拟重载函数 1 |
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
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 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
/** | |
* | |
* @authors gooofly (QQ941721234, [email protected], http://www.gooofly.com) | |
* @date 2014-11-17 21:37:36 | |
* @version $Id$ | |
* | |
* title | |
* -------------------------------------------- | |
*/ |
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 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 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
.list { | |
list-style: none; | |
padding: 0 0 0 13px; | |
counter-reset: item 2; | |
} | |
.list li { | |
position: relative; | |
padding: 0 0 0 20px; | |
counter-increment: item 1; | |
} |