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
.item-block, .row { | |
display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */ | |
display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */ | |
display: -ms-flexbox; /* TWEENER - IE 10 */ | |
display: -webkit-flex; /* NEW - Chrome */ | |
display: flex; | |
} |
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
@mixin fine-line-top { | |
position: absolute; | |
display: block; | |
background-image: linear-gradient(180deg, #dedede 0%, #dedede 50%, transparent 50%, transparent 100%); | |
background-size: 100% 1px; | |
content: ' '; | |
left: 0; | |
right: 0; | |
top: 0; |
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
{ | |
"emojis": [ | |
{"emoji": "👩👩👧👧", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👧", "category": "p", "order": ""}, | |
{"emoji": "👩👩👧👦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👦", "category": "p", "order": ""}, | |
{"emoji": "👩👩👦👦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "👩‍👩‍👦‍👦", "category": "p", "order": ""}, | |
{"emoji": "👨👩👧👧", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👧", "category": "p", "order": ""}, | |
{"emoji": "👨👩👧👦", "name": "family_children", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👦", "category": "p", "order": ""}, | |
{"emoji": "👨👩👦👦", "name": "family_two_boys", "shortname": "", "unicode": "", "html": "👨&zw |
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
const fs = require('fs'); | |
const readline = require('readline'); | |
const writableStream = fs.createWriteStream('intl.js', { | |
flags: 'w', | |
autoClose: true | |
}); | |
const rl = readline.createInterface({ | |
input: fs.createReadStream('en.json'), |
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
const scrollTop = document.body.scrollTop || document.documentElement.scrollTop; |
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://iconfont.cn/新建图标项目,根据http://iconfont.cn/help/detail?spm=a313x.7781069.1998910419.d8cf4382a&helptype=code | |
* 文档下载配置相应字体文件、js文件、css文件等。 | |
* 使用方式: | |
* 单色图标:<IconFont type='ICON_NAME' /> | |
* 多色图标:<IconFont type='MULTI_COLOR_ICON' symbol /> | |
*/ | |
import PropTypes from 'prop-types'; | |
import styles from "./IconFont.less"; |
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://iconfont.cn/新建图标项目,根据http://iconfont.cn/help/detail?spm=a313x.7781069.1998910419.d8cf4382a&helptype=code | |
* 文档下载配置相应字体文件、js文件、css文件等。 | |
* 使用方式: | |
* 单色图标:<IconFont type='ICON_NAME' /> | |
* 多色图标:<IconFont type='MULTI_COLOR_ICON' symbol /> | |
*/ | |
import PropTypes from 'prop-types'; | |
import styles from "./IconFont.less"; |
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
/** | |
* @param {any} obj The object to inspect. | |
* @returns {boolean} True if the argument appears to be a plain object. | |
*/ | |
function isPlainObject(obj) { | |
if (typeof obj !== 'object' || obj === null) return false; | |
let proto = obj; | |
while (Object.getPrototypeOf(proto) !== null) { | |
proto = Object.getPrototypeOf(proto); |
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
/** | |
* 是否支持localStorage | |
*/ | |
function isSupportStorage() { | |
if(!localStorage) return false; | |
try { | |
localStorage.setItem('__test__', '__test__'); | |
localStorage.removeItem('__test__'); | |
return true; | |
} catch(e) { |
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
/** | |
* 在数组中按下标交换数据 | |
* @param {Array} arr 数据源 | |
* @param {number} prev 需交换的下标之一 | |
* @param {number} next 需交换的下标之一 | |
*/ | |
function swap(arr, prev, next) { | |
var temp = arr[prev]; | |
arr[prev] = arr[next]; | |
arr[next] = temp; |
OlderNewer