Advertisement
Guest User

background tournaments moltrespvp

a guest
Jun 25th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <script>
  2. $(document).ready(function() {
  3. var backstretchImages = ["https://moltrespvp.com/media/bg.png"];
  4. function shuffle(array) {
  5. var m = array.length, t, i;
  6.  
  7. // While there remain elements to shuffle…
  8. while (m) {
  9.  
  10. // Pick a remaining element…
  11. i = Math.floor(Math.random() * m--);
  12.  
  13. // And swap it with the current element.
  14. t = array[m];
  15. array[m] = array[i];
  16. array[i] = t;
  17. }
  18.  
  19. return array;
  20. }
  21. backstretchImages = shuffle(backstretchImages);
  22.  
  23. $.backstretch(backstretchImages, {
  24. fade: 0,
  25. duration: 4000
  26. });
  27. });
  28. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement