Skip to content

Commit

Permalink
лоьптаип
Browse files Browse the repository at this point in the history
  • Loading branch information
senk0n committed Jan 16, 2019
1 parent 77544ae commit c41ebd8
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 18 deletions.
6 changes: 6 additions & 0 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
<script src="{{ site.url }}/assets/js/jquery.magnific-popup.min.js"></script>
<script src="{{ site.url }}/assets/js/jquery.fitvid.min.js"></script>
<script src="{{ site.url }}/assets/js/scripts.js"></script>
<!-- jQuery -->
<script src="{{ site.url }}/js/jquery-2.1.3.min.js"></script>
<!-- ajaxchimp -->
<script src="{{ site.url }}/js/ajaxchimp.js"></script>
<!-- particles -->
<script src="{{ site.url }}/js/particles.min.js"></script>
{% if site.google.analytics %}
<!-- Asynchronous Google Analytics snippet -->
<script>
Expand Down
94 changes: 94 additions & 0 deletions assets/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,100 @@ $(function() {
$(".content").fitVids();
});

/* ======= particles js ======= */
(function () {

particlesJS("particles-js", {
"particles": {
"number": {
"value": 100,
"density": {
"enable": true,
"value_area":1000
}
},
"color": {
"value": ["#aa73ff", "#f8c210", "#83d238", "#33b1f8"]
},

"shape": {
"type": "circle",
"stroke": {
"width": 0,
"color": "#fff"
}
},
"opacity": {
"value": 0.6,
"random": false,
"anim": {
"enable": false,
"speed": 1,
"opacity_min": 0.1,
"sync": false
}
},
"size": {
"value": 2,
"random": true,
"anim": {
"enable": false,
"speed": 40,
"size_min": 0.1,
"sync": false
}
},
"line_linked": {
"enable": true,
"distance": 120,
"color": "#ffffff",
"opacity": 0.4,
"width": 1
},
},
"interactivity": {
"detect_on": "canvas",
"events": {
"onhover": {
"enable": true,
"mode": "grab"
},
"onclick": {
"enable": true
},
"resize": true
},
"modes": {
"grab": {
"distance": 140,
"line_linked": {
"opacity": 1
}
},
"bubble": {
"distance": 400,
"size": 40,
"duration": 2,
"opacity": 8,
"speed": 3
},
"repulse": {
"distance": 200,
"duration": 0.4
},
"push": {
"particles_nb": 4
},
"remove": {
"particles_nb": 2
}
}
},
"retina_detect": true
});

}());

// All others
$(document).ready(function() {
// zoom in/zoom out animations
Expand Down
6 changes: 6 additions & 0 deletions js/ajaxchimp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions js/jquery-2.1.3.min.js

Large diffs are not rendered by default.

18 changes: 0 additions & 18 deletions js/scripts.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
jQuery(function ($) {



/* ======= Full Screen BG ======= */
(function () {

$(".full-height").height($(window).height());
$(window).resize(function(){
$(".full-height").height($(window).height());
});

}());

/* ======= particles js ======= */
(function () {

Expand Down Expand Up @@ -105,7 +91,3 @@ jQuery(function ($) {
});

}());



}); // JQuery end

0 comments on commit c41ebd8

Please sign in to comment.