ttt
Showing
2 changed files
with
3 additions
and
2 deletions
| ... | @@ -21,6 +21,7 @@ jQuery( document ).ready(function($) { | ... | @@ -21,6 +21,7 @@ jQuery( document ).ready(function($) { |
| 21 | 21 | ||
| 22 | var boxes = document.querySelectorAll("g"); | 22 | var boxes = document.querySelectorAll("g"); |
| 23 | var box = getShuffledArr(boxes); | 23 | var box = getShuffledArr(boxes); |
| 24 | |||
| 24 | function getShuffledArr (arr){ | 25 | function getShuffledArr (arr){ |
| 25 | return [...arr].map( (_, i, arrCopy) => { | 26 | return [...arr].map( (_, i, arrCopy) => { |
| 26 | var rand = i + ( Math.floor( Math.random() * (arrCopy.length - i) ) ); | 27 | var rand = i + ( Math.floor( Math.random() * (arrCopy.length - i) ) ); |
| ... | @@ -35,7 +36,7 @@ jQuery( document ).ready(function($) { | ... | @@ -35,7 +36,7 @@ jQuery( document ).ready(function($) { |
| 35 | function(){ | 36 | function(){ |
| 36 | animateMe(element) | 37 | animateMe(element) |
| 37 | } | 38 | } |
| 38 | , i * 1500); | 39 | , i * 750); |
| 39 | 40 | ||
| 40 | }); | 41 | }); |
| 41 | 42 | ... | ... |
| ... | @@ -5,7 +5,7 @@ | ... | @@ -5,7 +5,7 @@ |
| 5 | Author: the Understrap Contributors | 5 | Author: the Understrap Contributors |
| 6 | Author URI: https://github.com/understrap/understrap-child/graphs/contributors | 6 | Author URI: https://github.com/understrap/understrap-child/graphs/contributors |
| 7 | Template: understrap | 7 | Template: understrap |
| 8 | Version: 1.1.07 | 8 | Version: 1.1.08 |
| 9 | License: GNU General Public License v2 or later | 9 | License: GNU General Public License v2 or later |
| 10 | License URI: http://www.gnu.org/licenses/gpl-2.0.html | 10 | License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 11 | Text Domain: understrap-child | 11 | Text Domain: understrap-child | ... | ... |
-
Please register or sign in to post a comment