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
;(function (root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(factory); | |
} else if (typeof exports === 'object') { | |
module.exports = factory(); | |
} else { | |
root._Math = factory(); | |
} | |
}(this, function() { | |
var _Math = { |
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 http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs"), | |
mime = require("mime") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname |
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
/* eslint-disable no-useless-escape */ | |
const Encore = require('@symfony/webpack-encore'); | |
const TerserPlugin = require('terser-webpack-plugin'); | |
const CircularDependencyPlugin = require('circular-dependency-plugin'); | |
const HtmlCriticalWebpackPlugin = require('html-critical-webpack-plugin'); | |
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const PurgeCssPlugin = require('purgecss-webpack-plugin'); | |
const WebpackBar = require('webpackbar'); | |
const path = require('path'); |
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
<div id="root"> | |
<div class="container"> | |
<Header class="header">Header</Header> | |
<div class="auto-fill"> | |
auto fill <br /> | |
auto fill <br /> | |
auto fill <br /> | |
auto fill <br /> | |
auto fill <br /> |
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
/* | |
Easing Equations v1.5 | |
May 1, 2003 | |
(c) 2003 Robert Penner, all rights reserved. | |
This work is subject to the terms in http://www.robertpenner.com/easing_terms_of_use.html. | |
These tweening functions provide different flavors of | |
math-based motion under a consistent API. | |
Types of easing: |
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
/** 设置input的placeholder样式 兼容性好法 */ | |
@mixin input-placeholder($color: var(--black)) { | |
&::-webkit-input-placeholder { | |
color: $color; | |
} | |
&:-moz-placeholder {/* Firefox 18- */ | |
color: $color; | |
} | |
&::-moz-placeholder {/* Firefox 19+ */ | |
color: $color; |
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
Array.prototype.forEach = function(cb) { | |
let len = this.length | |
for(let i = 0; i < len; i++) { | |
cb(this[i], i, this) | |
} | |
} | |
Array.prototype.concatAll = function() { | |
let ret = [] | |
// [].push.apply(ret, item); |