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
import query from 'lib/query'; | |
import event from 'lib/event'; | |
import matchMedia from 'lib/matchMedia'; | |
import throttle from 'lib/throttle'; | |
import layout from 'justified-layout'; | |
// https://www.h5jun.com/post/array-shuffle.html | |
function shuffle(arr) { | |
const len = arr.length; | |
for (let i = 0; i < len - 1; i++) { |
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
import { event, Emitter, classes, query, validation, lang } from 'lib'; | |
let _uid = 0; | |
class Form extends Emitter { | |
constructor(options) { | |
super(); | |
if (!(this instanceof Form)) { | |
return new Form(options); |
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 SCOPE_PICTOGRAPHS = [127744, 128359]; | |
var SCOPE_PICTOGRAPHS_EXTRA = [128507, 128511]; | |
var SCOPE_EMOTICONS = [128512, 128591]; | |
var SCOPE_TRANSPORT = [128640, 128709]; | |
function emojiconsString(title, scope, size) { | |
var html = [title ? '<h2>' + title + '</h2>' : '']; | |
size = size || [72, 72]; | |
html.push('<ul>'); | |
for (var i = scope[0], end = scope[1]; i <= end; i++) |