Every line of 'isotope jquery examples' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
16 function Isotope(options) { 17 View.apply(this, arguments); 18 this.views = []; 19 this.mods = []; 20 for (var i = 0; i < 300; i++){ 21 this.views.push((new Surface({ 22 size: [100, 50 + Math.floor(Math.random() * 300)], 23 properties: { 24 background: 'rgb(' + Math.floor(Math.random() * 100) + ', ' + Math.floor(Math.random() * 140) + ', ' + Math.floor(Math.random() * 250) + ')' 25 } 26 }))); 27 this.mods.push(new Modifier()); 28 this.add(this.mods[i]).add(this.views[i]); 29 } 30 31 this.tallest = 0; 32 _renderViews.call(this); 33 34 Engine.on('resize', _renderViews.bind(this)); 35 36 }