<video id="video" src="video.mp4" controls = "true" poster="images.jpg" /*视频封面*/ preload="auto" webkit-playsinline="true" /*这个属性是ios 10中设置可以
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 Distance = 150; //设置阀值 结果和该值比较,如果小于它就代表相似 | |
//color1 = {r:xxx,b:xxx,g:xxx}; | |
function Compared(color1,color2){ | |
let _liked = false; | |
let _r = color1.r-color2.r; | |
let _g = color1.g-color2.g; | |
let _b = color1.b-color2.b; | |
if(Math.sqrt(Math.pow(_r,2)+Math.pow(_g,2)+Math.pow(_g,2))<Distance){ |
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
/** | |
webpack.config.js | |
**/ | |
const webpack = require('webpack'); | |
const env = process.env.NODE_ENV; | |
const configs = [{ | |
name:"one", | |
entry:{ | |
}, |