/* ----------------------------------------------- /* How to use? : Check the GitHub README /* ----------------------------------------------- */ /* To load a config file (particles.json) you need to host this demo (MAMP/WAMP/local)... */ /* particlesJS.load('particles-js', 'particles.json', function() { console.log('particles.js loaded - callback'); }); */ /* Otherwise just put the config content (json): */ particlesJS('particles-js', { "particles": { "number": { "value": 10, "density": { "enable": true, "value_area": 600 } }, "color": { "value": "#ffffff" }, "shape": { "type": "circle", "stroke": { "width": 0, "color": "#000000" }, "polygon": { "nb_sides": 5 }, "image": { "src": "img/github.svg", "width": 100, "height": 100 } }, "opacity": { "value": 1, "random": true, "anim": { "enable": true, "speed": 1, "opacity_min": 0, "sync": false } }, "size": { "value": 3, "random": true, "anim": { "enable": false, "speed": 4, "size_min": 0.3, "sync": false } }, "line_linked": { "enable": true, "distance": 150, "color": "#ffffff", "opacity": 0.75, "width": 1 }, "move": { "enable": true, "speed": 1, "direction": "none", "random": true, "straight": false, "out_mode": "out", "bounce": false, "attract": { "enable": false, "rotateX": 600, "rotateY": 600 } } }, "interactivity": { "detect_on": "canvas", "events": { "onhover": { "enable": true, "mode": "bubble" }, "onclick": { "enable": true, "mode": "repulse" }, "resize": true }, "modes": { "grab": { "distance": 400, "line_linked": { "opacity": 1 } }, "bubble": { "distance": 250, "size": 0, "duration": 2, "opacity": 0, "speed": 3 }, "repulse": { "distance": 400, "duration": 0.4 }, "push": { "particles_nb": 4 }, "remove": { "particles_nb": 2 } } }, "retina_detect": true } ); var ih,iw; function iresize(){ ih=$(window).height(); iw=$(window).width(); //$(".mybg").height(ih>iw/1.787?ih:iw/1.787); $(".mybg").height(ih>iw/1.787?ih:iw/1.787); var imgw=$(".ishow").width(); var imgh=$(".mybg").height(); $(".ishow").css({left:(iw-imgw)/2+'px',top:(ih-imgh)/2+'px'}); $("#mobtop").height(ih-(iw>720?0:80)); $(".godown").click(function(){ $("html,body").animate({ scrollTop: ih }, 600); }); } var _self=jQuery("#myVideo").find(".mybg"); var id = Math.ceil(Math.random()*_self.length)-1; var dfimg=_self.css("display","none").eq(id); dfimg.css("display","block").addClass("ishow"); function ibig(){ dfimg.animate({ height: (ih+200) }, 10000,function(){ isml(); }); } function isml(){ dfimg.animate({ height: (ih) }, 10000,function(){ //ibig(); }); } iresize(); setTimeout(function(){ iresize(); //(dfimg.attr("data-anm")=="true" && iw>800) && ibig(); },1000); $(window).resize(function() { iresize(); }); randomItem({parentId: "about_howto"}); $('#about_howto li').quovolver();