SHARE
TWEET

Untitled

a guest Oct 16th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery(document).ready(function( $ ){
  2.     var randomNum = 1 + Math.floor(Math.random() * 7);
  3.   randomNum = 5;
  4.     alert(randomNum);
  5.  
  6.   if (randomNum == 1) {
  7.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(1)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(3)'));
  8.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(1)'));
  9.        
  10.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(3)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(2)'));
  11.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(3)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(1)'));
  12.  
  13.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(4)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(3)'));
  14.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(2)'));
  15.  
  16.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(1)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(2)'));
  17.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(4)'));
  18.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(4)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(2)'));
  19.     } else if (randomNum == 2) {
  20.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(4)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(1)'));
  21.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(2)'));
  22.        
  23.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(4)'));
  24.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(3)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(2)'));
  25.  
  26.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(1)'));
  27.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(4)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(1)'));
  28.  
  29.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(3)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(4)'));
  30.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(1)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(2)'));
  31.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(3)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(1)'));
  32.     }  else if (randomNum == 3) {
  33.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(3)'));
  34.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(1)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(4)'));
  35.        
  36.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(1)'));
  37.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(1)'));
  38.  
  39.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(3)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(4)'));
  40.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(1)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(3)'));
  41.  
  42.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(3)'));
  43.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(3)'));
  44.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(1)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(1)'));
  45.     }  else if (randomNum == 4) {
  46.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(4)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(3)'));
  47.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(1)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(3)'));
  48.        
  49.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(3)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(1)'));
  50.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(4)'));
  51.  
  52.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(4)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(1)'));
  53.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(1)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(1)'));
  54.  
  55.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(4)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(1)'));
  56.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(3)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(1)'));
  57.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(4)'));
  58.     }  else if (randomNum == 5) {
  59.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(1)'));
  60.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(4)'));
  61.        
  62.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(3)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(2)'));
  63.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(4)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(4)'));
  64.  
  65.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(1)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(3)'));
  66.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(4)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(2)'));
  67.  
  68.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(1)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(3)'));
  69.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(1)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(3)'));
  70.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(1)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(3)'));
  71.     }  else if (randomNum == 6) {
  72.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(1)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(1)'));
  73.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(3)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(3)'));
  74.        
  75.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(1)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(4)'));
  76.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(4)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(1)'));
  77.  
  78.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(4)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(3)'));
  79.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(3)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(2)'));
  80.  
  81.         $('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(2)').after($('.home .slider-grid .slider-grid__item:nth-child(2) > div.row > div:nth-child(4)'));
  82.         $('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(4)').after($('.home .slider-grid .slider-grid__item:nth-child(1) > div.row > div:nth-child(2)'));
  83.         $('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(1)').after($('.home .slider-grid .slider-grid__item:nth-child(3) > div.row > div:nth-child(4)'));
  84.     }
  85. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top