HTML:
<div id="foo">
<div>
</div>
</div>
CSS:
HTML:
<div id="foo">
<div>
</div>
</div>
CSS:
.plus { | |
width: 20px; | |
height: 20px; | |
position: relative; | |
&:before, | |
&:after { | |
content: ""; | |
position: absolute; | |
background: #000; |
!function(){var a=function(){};a.prototype={on:function(a,b){return this.events||(this.events={}),this.events[a]||(this.events[a]=[]),this.events[a].push(b),this},off:function(a,b){return(this.events||{})[a]&&(b?this.events[a].splice(this.events[a].indexOf(b),1):this.events[a]=[]),this},emit:function(a){if((this.events||{})[a])for(var b=0;b<this.events[a].length;b++)(this.events[a][b]||function(){}).apply(this,Array.prototype.slice.call(arguments,1));return this}},"function"==typeof define&&define.amd?define(a):"object"==typeof exports?module.exports=a:window.Emitter=a}(); |
function shuffle(array) { | |
for (var i=array.length-1; i>0; i--) { | |
var j = Math.floor(Math.random() * (i + 1)); | |
var temp = array[i]; | |
array[i] = array[j]; | |
array[j] = temp; | |
} | |
return array; | |
} |