@ o n c e 
 
 < s t y l e > 
 
         / *   T e s t i m o n i a l   C a r o u s e l   C o n t a i n e r   * / 
 
         . t e s t i m o n i a l - c a r o u s e l - w r a p p e r   { 
 
                 w i d t h :   1 0 0 % ; 
 
                 p o s i t i o n :   r e l a t i v e ; 
 
                 p a d d i n g :   1 . 5 r e m   0 ; 
 
         } 
 
 
 
         . t e s t i m o n i a l - c a r o u s e l - c o n t a i n e r   { 
 
                 o v e r f l o w :   h i d d e n ; 
 
                 w i d t h :   1 0 0 % ; 
 
                 b o r d e r - r a d i u s :   1 r e m ; 
 
                 p o s i t i o n :   r e l a t i v e ; 
 
         } 
 
 
 
         . t e s t i m o n i a l - c a r o u s e l - t r a c k   { 
 
                 d i s p l a y :   f l e x ; 
 
                 g a p :   1 . 5 r e m ; 
 
                 w i l l - c h a n g e :   t r a n s f o r m ; 
 
                 p a d d i n g :   0 . 5 r e m   0 ; 
 
         } 
 
 
 
         . t e s t i m o n i a l - c a r o u s e l - t r a c k . a n i m a t i n g   { 
 
                 t r a n s f o r m :   t r a n s l a t e X ( 0 ) ; 
 
         } 
 
 
 
         / *   P a u s e   a n i m a t i o n   o n   h o v e r   * / 
 
         . t e s t i m o n i a l - c a r o u s e l - c o n t a i n e r : h o v e r   . t e s t i m o n i a l - c a r o u s e l - t r a c k   { 
 
                 t r a n s f o r m :   t r a n s l a t e X ( 0 ) ; 
 
         } 
 
 
 
         / *   I n f i n i t e   s c r o l l   a n i m a t i o n   -   s m o o t h   h o r i z o n t a l   s l i d e   * / 
 
         / *   A n i m a t e s   t h r o u g h   o n e   f u l l   s e t   o f   c a r d s ,   t h e n   r e s e t s   s e a m l e s s l y   * / 
 
         / *   W i t h   4   c a r d   s e t s   t o t a l ,   - 2 5 %   a n i m a t e s   e x a c t l y   o n e   s e t   * / 
 
         / *   R e m o v e d   a n i m a t i o n   i n   f a v o r   o f   R A F - b a s e d   s m o o t h   t r a n s f o r m   * / 
 
 
 
         / *   R e s p o n s i v e   a n i m a t i o n   s p e e d   * / 
 
         @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
 
                 . t e s t i m o n i a l - c a r o u s e l - t r a c k   { 
 
                         g a p :   1 r e m ; 
 
                 } 
 
         } 
 
 
 
         @ m e d i a   ( m a x - w i d t h :   6 4 0 p x )   { 
 
                 . t e s t i m o n i a l - c a r o u s e l - t r a c k   { 
 
                         g a p :   0 . 7 5 r e m ; 
 
                 } 
 
                 . t e s t i m o n i a l - c a r o u s e l - w r a p p e r   { 
 
                         p a d d i n g :   1 r e m   0 ; 
 
                 } 
 
         } 
 
 
 
         / *   T e s t i m o n i a l   C a r d   S t y l e s   * / 
 
         . t e s t i m o n i a l - c a r d   { 
 
                 f l e x :   0   0   3 2 0 p x ; 
 
                 m i n - w i d t h :   3 2 0 p x ; 
 
                 b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # F 9 E D D E   0 % ,   # F E F 5 E F   1 0 0 % ) ; 
 
                 p a d d i n g :   1 . 5 r e m ; 
 
                 b o r d e r - r a d i u s :   1 r e m ; 
 
                 b o x - s h a d o w :   0   4 p x   1 5 p x   r g b a ( 9 0 ,   3 1 ,   2 4 ,   0 . 0 8 ) ; 
 
                 b o r d e r :   1 p x   s o l i d   r g b a ( 9 0 ,   3 1 ,   2 4 ,   0 . 0 6 ) ; 
 
                 t r a n s i t i o n :   t r a n s f o r m   0 . 3 s   e a s e ,   b o x - s h a d o w   0 . 3 s   e a s e ; 
 
                 d i s p l a y :   f l e x ; 
 
                 f l e x - d i r e c t i o n :   c o l u m n ; 
 
                 h e i g h t :   1 0 0 % ; 
 
                 p o s i t i o n :   r e l a t i v e ; 
 
                 o v e r f l o w :   h i d d e n ; 
 
         } 
 
 
 
         / *   B a c k g r o u n d   a c c e n t   * / 
 
         . t e s t i m o n i a l - c a r d : : b e f o r e   { 
 
                 c o n t e n t :   ' ' ; 
 
                 p o s i t i o n :   a b s o l u t e ; 
 
                 t o p :   - 5 0 % ; 
 
                 r i g h t :   - 5 0 % ; 
 
                 w i d t h :   2 0 0 p x ; 
 
                 h e i g h t :   2 0 0 p x ; 
 
                 b a c k g r o u n d :   r a d i a l - g r a d i e n t ( c i r c l e ,   r g b a ( 2 3 9 ,   6 8 ,   6 8 ,   0 . 0 5 )   0 % ,   t r a n s p a r e n t   7 0 % ) ; 
 
                 b o r d e r - r a d i u s :   5 0 % ; 
 
                 z - i n d e x :   0 ; 
 
         } 
 
 
 
         . t e s t i m o n i a l - c a r d - c o n t e n t   { 
 
                 p o s i t i o n :   r e l a t i v e ; 
 
                 z - i n d e x :   1 ; 
 
                 d i s p l a y :   f l e x ; 
 
                 f l e x - d i r e c t i o n :   c o l u m n ; 
 
                 h e i g h t :   1 0 0 % ; 
 
         } 
 
 
 
         / *   H e a d e r   d e n g a n   n a m a   d a n   r a t i n g   * / 
 
         . t e s t i m o n i a l - c a r d - h e a d e r   { 
 
                 d i s p l a y :   f l e x ; 
 
                 a l i g n - i t e m s :   c e n t e r ; 
 
                 j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
 
                 m a r g i n - b o t t o m :   1 r e m ; 
 
                 g a p :   0 . 7 5 r e m ; 
 
         } 
 
 
 
         . t e s t i m o n i a l - c a r d - n a m e   { 
 
                 f o n t - w e i g h t :   7 0 0 ; 
 
                 f o n t - s i z e :   0 . 8 7 5 r e m ; 
 
                 c o l o r :   # 3 a 2 a 1 a ; 
 
                 l i n e - h e i g h t :   1 . 2 ; 
 
                 f l e x :   1 ; 
 
         } 
 
 
 
         . t e s t i m o n i a l - c a r d - r a t i n g   { 
 
                 c o l o r :   # f 5 9 e 0 b ; 
 
                 f o n t - s i z e :   0 . 8 7 5 r e m ; 
 
                 f o n t - w e i g h t :   6 0 0 ; 
 
                 w h i t e - s p a c e :   n o w r a p ; 
 
                 l e t t e r - s p a c i n g :   0 . 0 5 e m ; 
 
         } 
 
 
 
         / *   R e v i e w   t e x t   d e n g a n   c l a m p i n g   * / 
 
         . t e s t i m o n i a l - c a r d - t e x t   { 
 
                 f o n t - s i z e :   0 . 8 7 5 r e m ; 
 
                 c o l o r :   # 5 c 4 6 3 7 ; 
 
                 l i n e - h e i g h t :   1 . 6 ; 
 
                 d i s p l a y :   - w e b k i t - b o x ; 
 
                 - w e b k i t - l i n e - c l a m p :   3 ; 
 
                 - w e b k i t - b o x - o r i e n t :   v e r t i c a l ; 
 
                 o v e r f l o w :   h i d d e n ; 
 
                 w o r d - b r e a k :   b r e a k - w o r d ; 
 
                 f l e x - g r o w :   1 ; 
 
                 m a r g i n - b o t t o m :   1 r e m ; 
 
         } 
 
 
 
         / *   F o o t e r   d e n g a n   b a d g e   * / 
 
         . t e s t i m o n i a l - c a r d - f o o t e r   { 
 
                 m a r g i n - t o p :   a u t o ; 
 
                 d i s p l a y :   f l e x ; 
 
                 a l i g n - i t e m s :   c e n t e r ; 
 
                 j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
 
                 p a d d i n g - t o p :   0 . 7 5 r e m ; 
 
                 b o r d e r - t o p :   1 p x   s o l i d   r g b a ( 9 0 ,   3 1 ,   2 4 ,   0 . 0 8 ) ; 
 
         } 
 
 
 
         . t e s t i m o n i a l - c a r d - d a t e   { 
 
                 f o n t - s i z e :   0 . 7 5 r e m ; 
 
                 c o l o r :   # 8 b 7 3 5 5 ; 
 
                 f o n t - w e i g h t :   5 0 0 ; 
 
         } 
 
 
 
         . t e s t i m o n i a l - c a r d - b a d g e   { 
 
                 d i s p l a y :   i n l i n e - f l e x ; 
 
                 a l i g n - i t e m s :   c e n t e r ; 
 
                 g a p :   0 . 3 7 5 r e m ; 
 
                 b a c k g r o u n d :   r g b a ( 2 2 0 ,   3 8 ,   3 8 ,   0 . 1 ) ; 
 
                 c o l o r :   # b 9 1 c 1 c ; 
 
                 p a d d i n g :   0 . 2 5 r e m   0 . 6 2 5 r e m ; 
 
                 b o r d e r - r a d i u s :   0 . 3 7 5 r e m ; 
 
                 f o n t - s i z e :   0 . 7 r e m ; 
 
                 f o n t - w e i g h t :   6 0 0 ; 
 
                 t e x t - t r a n s f o r m :   u p p e r c a s e ; 
 
                 l e t t e r - s p a c i n g :   0 . 0 5 e m ; 
 
         } 
 
 
 
         . t e s t i m o n i a l - c a r d - b a d g e   i   { 
 
                 f o n t - s i z e :   0 . 6 5 r e m ; 
 
         } 
 
 
 
         / *   R e s p o n s i v e   a d j u s t m e n t s   * / 
 
         @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
 
                 . t e s t i m o n i a l - c a r d   { 
 
                         f l e x :   0   0   2 8 0 p x ; 
 
                         m i n - w i d t h :   2 8 0 p x ; 
 
                         p a d d i n g :   1 . 2 5 r e m ; 
 
                 } 
 
 
 
                 . t e s t i m o n i a l - c a r d - t e x t   { 
 
                         - w e b k i t - l i n e - c l a m p :   2 ; 
 
                         f o n t - s i z e :   0 . 8 1 2 5 r e m ; 
 
                 } 
 
 
 
                 . t e s t i m o n i a l - c a r d - n a m e   { 
 
                         f o n t - s i z e :   0 . 8 1 2 5 r e m ; 
 
                 } 
 
         } 
 
 
 
         @ m e d i a   ( m a x - w i d t h :   6 4 0 p x )   { 
 
                 . t e s t i m o n i a l - c a r d   { 
 
                         f l e x :   0   0   2 4 0 p x ; 
 
                         m i n - w i d t h :   2 4 0 p x ; 
 
                         p a d d i n g :   1 r e m ; 
 
                         b o r d e r - r a d i u s :   0 . 7 5 r e m ; 
 
                 } 
 
 
 
                 . t e s t i m o n i a l - c a r d - t e x t   { 
 
                         - w e b k i t - l i n e - c l a m p :   2 ; 
 
                         f o n t - s i z e :   0 . 7 5 r e m ; 
 
                         m a r g i n - b o t t o m :   0 . 7 5 r e m ; 
 
                 } 
 
 
 
                 . t e s t i m o n i a l - c a r d - n a m e   { 
 
                         f o n t - s i z e :   0 . 7 5 r e m ; 
 
                 } 
 
 
 
                 . t e s t i m o n i a l - c a r d - h e a d e r   { 
 
                         m a r g i n - b o t t o m :   0 . 7 5 r e m ; 
 
                         g a p :   0 . 5 r e m ; 
 
                 } 
 
 
 
                 . t e s t i m o n i a l - c a r d - f o o t e r   { 
 
                         p a d d i n g - t o p :   0 . 5 r e m ; 
 
                 } 
 
 
 
                 . t e s t i m o n i a l - c a r d - r a t i n g   { 
 
                         f o n t - s i z e :   0 . 7 5 r e m ; 
 
                 } 
 
         } 
 
 
 
         / *   S m o o t h   t r a n s i t i o n   f o r   a d d e d   e l e m e n t s   * / 
 
         . t e s t i m o n i a l - c a r d : n t h - c h i l d ( n )   { 
 
                 o p a c i t y :   1 ; 
 
                 t r a n s i t i o n :   o p a c i t y   0 . 3 s   e a s e ; 
 
         } 
 
 
 
         / *   E m p t y   s t a t e   * / 
 
         . t e s t i m o n i a l - e m p t y - s t a t e   { 
 
                 t e x t - a l i g n :   c e n t e r ; 
 
                 p a d d i n g :   3 r e m   1 . 5 r e m ; 
 
                 c o l o r :   # 5 c 4 6 3 7 ; 
 
         } 
 
 
 
         . t e s t i m o n i a l - e m p t y - s t a t e - i c o n   { 
 
                 f o n t - s i z e :   3 r e m ; 
 
                 c o l o r :   # d 1 d 5 d b ; 
 
                 m a r g i n - b o t t o m :   1 r e m ; 
 
                 d i s p l a y :   b l o c k ; 
 
         } 
 
 
 
         . t e s t i m o n i a l - e m p t y - s t a t e - t i t l e   { 
 
                 f o n t - s i z e :   1 . 2 5 r e m ; 
 
                 f o n t - w e i g h t :   7 0 0 ; 
 
                 c o l o r :   # 3 a 2 a 1 a ; 
 
                 m a r g i n - b o t t o m :   0 . 5 r e m ; 
 
         } 
 
 
 
         . t e s t i m o n i a l - e m p t y - s t a t e - t e x t   { 
 
                 f o n t - s i z e :   0 . 8 7 5 r e m ; 
 
                 c o l o r :   # 8 b 7 3 5 5 ; 
 
         } 
 
 < / s t y l e > 
 
 
 
 < d i v   c l a s s = " t e s t i m o n i a l - c a r o u s e l - w r a p p e r " > 
 
         @ i f ( i s s e t ( $ t e s t i m o n i a l s )   & &   $ t e s t i m o n i a l s - > c o u n t ( )   >   0 ) 
 
                 < d i v   c l a s s = " t e s t i m o n i a l - c a r o u s e l - c o n t a i n e r "   i d = " t e s t i m o n i a l C a r o u s e l " > 
 
                         < d i v   c l a s s = " t e s t i m o n i a l - c a r o u s e l - t r a c k "   i d = " t e s t i m o n i a l T r a c k " > 
 
                                 < ! - -   C a r d s   w i l l   b e   d u p l i c a t e d   b y   J a v a S c r i p t   f o r   s e a m l e s s   l o o p   - - > 
 
                                 @ f o r e a c h ( $ t e s t i m o n i a l s   a s   $ t e s t i m o n i a l ) 
 
                                         < d i v   c l a s s = " t e s t i m o n i a l - c a r d "   d a t a - t e s t i m o n i a l - i d = " { {   $ t e s t i m o n i a l - > i d   } } " > 
 
                                                 < d i v   c l a s s = " t e s t i m o n i a l - c a r d - c o n t e n t " > 
 
                                                         < d i v   c l a s s = " t e s t i m o n i a l - c a r d - h e a d e r " > 
 
                                                                 < d i v   c l a s s = " t e s t i m o n i a l - c a r d - n a m e " > { {   $ t e s t i m o n i a l - > c u s t o m e r _ n a m e   } } < / d i v > 
 
                                                                 < d i v   c l a s s = " t e s t i m o n i a l - c a r d - r a t i n g " > 
 
                                                                         @ f o r ( $ i   =   0 ;   $ i   <   5 ;   $ i + + ) 
 
                                                                                 @ i f ( $ i   <   $ t e s t i m o n i a l - > r a t i n g )  & @ e l s e    @ e n d i f 
 
                                                                         @ e n d f o r 
 
                                                                 < / d i v > 
 
                                                         < / d i v > 
 
 
 
                                                         < p   c l a s s = " t e s t i m o n i a l - c a r d - t e x t " > { {   $ t e s t i m o n i a l - > c o n t e n t   } } < / p > 
 
 
 
                                                         < d i v   c l a s s = " t e s t i m o n i a l - c a r d - f o o t e r " > 
 
                                                                 < d i v   c l a s s = " t e s t i m o n i a l - c a r d - d a t e " > 
 
                                                                         { {   o p t i o n a l ( $ t e s t i m o n i a l - > c r e a t e d _ a t ) - > f o r m a t ( ' d   M   Y ' )   ? ?   ' T e r k i n i '   } } 
 
                                                                 < / d i v > 
 
                                                                 < d i v   c l a s s = " t e s t i m o n i a l - c a r d - b a d g e " > 
 
                                                                         < i   c l a s s = " f a s   f a - c h e c k - c i r c l e " > < / i > 
 
                                                                         T e r v e r i f i k a s i 
 
                                                                 < / d i v > 
 
                                                         < / d i v > 
 
                                                 < / d i v > 
 
                                         < / d i v > 
 
                                 @ e n d f o r e a c h 
 
                         < / d i v > 
 
                 < / d i v > 
 
         @ e l s e 
 
                 < d i v   c l a s s = " t e s t i m o n i a l - c a r o u s e l - c o n t a i n e r " > 
 
                         < d i v   c l a s s = " t e s t i m o n i a l - e m p t y - s t a t e " > 
 
                                 < i   c l a s s = " f a s   f a - c o m m e n t s   t e s t i m o n i a l - e m p t y - s t a t e - i c o n " > < / i > 
 
                                 < h 4   c l a s s = " t e s t i m o n i a l - e m p t y - s t a t e - t i t l e " > B e l u m   A d a   U l a s a n < / h 4 > 
 
                                 < p   c l a s s = " t e s t i m o n i a l - e m p t y - s t a t e - t e x t " > U l a s a n   p e l a n g g a n   a k a n   d i t a m p i l k a n   d i   s i n i   s e t e l a h   a d a   t e s t i m o n i   m a s u k . < / p > 
 
                         < / d i v > 
 
                 < / d i v > 
 
         @ e n d i f 
 
 < / d i v > 
 
 
 
 < s c r i p t > 
 
         ( f u n c t i o n ( )   { 
 
                 ' u s e   s t r i c t ' ; 
 
 
 
                 f u n c t i o n   i n i t T e s t i m o n i a l C a r o u s e l ( )   { 
 
                         c o n s t   c a r o u s e l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' t e s t i m o n i a l C a r o u s e l ' ) ; 
 
                         c o n s t   t r a c k   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' t e s t i m o n i a l T r a c k ' ) ; 
 
 
 
                         i f   ( ! c a r o u s e l   | |   ! t r a c k )   r e t u r n ; 
 
 
 
                         / /   G e t   o r i g i n a l   c a r d s   ( n o t   c l o n e d ) 
 
                         c o n s t   o r i g i n a l C a r d s   =   A r r a y . f r o m ( t r a c k . q u e r y S e l e c t o r A l l ( ' . t e s t i m o n i a l - c a r d : n o t ( [ d a t a - c l o n e d ] ) ' ) ) ; 
 
                         i f   ( o r i g i n a l C a r d s . l e n g t h   = = =   0 )   r e t u r n ; 
 
 
 
                         / /   C l e a r   e x i s t i n g   c l o n e s 
 
                         t r a c k . q u e r y S e l e c t o r A l l ( ' [ d a t a - c l o n e d ] ' ) . f o r E a c h ( e l   = >   e l . r e m o v e ( ) ) ; 
 
 
 
                         / /   C l o n e   c a r d s   3   t i m e s   ( t o t a l :   o r i g i n a l   +   3   c l o n e s   =   4   s e t s ) 
 
                         / /   T h i s   e n s u r e s   s m o o t h   s c r o l l i n g   w h e n   a n i m a t i o n   l o o p s 
 
                         / /   E v e n   a t   a n i m a t i o n   i t e r a t i o n   b o u n d a r y ,   v i s u a l   m a t c h e s   o r i g i n a l 
 
                         f o r   ( l e t   c l o n e S e t   =   0 ;   c l o n e S e t   <   3 ;   c l o n e S e t + + )   { 
 
                                 o r i g i n a l C a r d s . f o r E a c h ( c a r d   = >   { 
 
                                         c o n s t   c l o n e   =   c a r d . c l o n e N o d e ( t r u e ) ; 
 
                                         c l o n e . s e t A t t r i b u t e ( ' d a t a - c l o n e d ' ,   ' t r u e ' ) ; 
 
                                         c l o n e . s e t A t t r i b u t e ( ' a r i a - h i d d e n ' ,   ' t r u e ' ) ; 
 
                                         t r a c k . a p p e n d C h i l d ( c l o n e ) ; 
 
                                 } ) ; 
 
                         } 
 
 
 
                         / /   C a l c u l a t e   s m o o t h   a n i m a t i o n   d u r a t i o n   b a s e d   o n   e x a c t   c a r d   w i d t h s 
 
                         c o n s t   c a l c u l a t e D u r a t i o n   =   ( )   = >   { 
 
                                 c o n s t   f i r s t C a r d   =   o r i g i n a l C a r d s [ 0 ] ; 
 
                                 i f   ( ! f i r s t C a r d )   r e t u r n   4 0 ; 
 
                                 
 
                                 c o n s t   c a r d W i d t h   =   f i r s t C a r d . o f f s e t W i d t h ; 
 
                                 c o n s t   g a p   =   2 4 ;   / /   1 . 5 r e m   g a p   f r o m   C S S 
 
                                 c o n s t   c a r d W i t h G a p   =   c a r d W i d t h   +   g a p ; 
 
                                 c o n s t   n u m C a r d s   =   o r i g i n a l C a r d s . l e n g t h ; 
 
                                 c o n s t   t o t a l C o n t e n t W i d t h   =   c a r d W i t h G a p   *   n u m C a r d s ; 
 
                                 
 
                                 / /   S c r o l l   s p e e d :   6 0 p x   p e r   s e c o n d   f o r   s m o o t h   m e d i u m   s p e e d 
 
                                 c o n s t   p i x e l s P e r S e c o n d   =   6 0 ; 
 
                                 c o n s t   d u r a t i o n   =   M a t h . m a x ( 3 0 ,   M a t h . c e i l ( t o t a l C o n t e n t W i d t h   /   p i x e l s P e r S e c o n d ) ) ; 
 
                                 
 
                                 r e t u r n   d u r a t i o n ; 
 
                         } ; 
 
 
 
                         c o n s t   d u r a t i o n   =   c a l c u l a t e D u r a t i o n ( ) ; 
 
 
 
                         / /   R e m o v e   a n y   e x i s t i n g   a n i m a t i o n 
 
                         t r a c k . s t y l e . a n i m a t i o n   =   ' n o n e ' ; 
 
                         
 
                         / /   F o r c e   a   l a y o u t   r e c a l c u l a t i o n   t o   r e s e t   t h e   a n i m a t i o n 
 
                         v o i d   t r a c k . o f f s e t H e i g h t ; 
 
                         
 
                         / /   A p p l y   f r e s h   a n i m a t i o n   -   a n i m a t e s   t h r o u g h   1   f u l l   s e t   o f   o r i g i n a l   c a r d s 
 
                         / /   W i t h   4   t o t a l   s e t s ,   t h i s   c r e a t e s   s e a m l e s s   i n f i n i t e   l o o p 
 
                         t r a c k . c l a s s L i s t . a d d ( ' a n i m a t i n g ' ) ; 
 
                         t r a c k . s t y l e . a n i m a t i o n   =   ` s l i d e L e f t   $ { d u r a t i o n } s   l i n e a r   i n f i n i t e ` ; 
 
 
 
                         / /   P a u s e   o n   h o v e r   o n l y   -   n o   o t h e r   i n t e r f e r e n c e 
 
                         c a r o u s e l . a d d E v e n t L i s t e n e r ( ' m o u s e e n t e r ' ,   ( )   = >   { 
 
                                 t r a c k . s t y l e . a n i m a t i o n P l a y S t a t e   =   ' p a u s e d ' ; 
 
                         } ) ; 
 
 
 
                         c a r o u s e l . a d d E v e n t L i s t e n e r ( ' m o u s e l e a v e ' ,   ( )   = >   { 
 
                                 t r a c k . s t y l e . a n i m a t i o n P l a y S t a t e   =   ' r u n n i n g ' ; 
 
                         } ) ; 
 
                 } 
 
 
 
                 / /   I n i t i a l i z e   o n   D O M C o n t e n t L o a d e d 
 
                 i f   ( d o c u m e n t . r e a d y S t a t e   = = =   ' l o a d i n g ' )   { 
 
                         d o c u m e n t . a d d E v e n t L i s t e n e r ( ' D O M C o n t e n t L o a d e d ' ,   i n i t T e s t i m o n i a l C a r o u s e l ) ; 
 
                 }   e l s e   { 
 
                         i n i t T e s t i m o n i a l C a r o u s e l ( ) ; 
 
                 } 
 
 
 
                 / /   H a n d l e   w i n d o w   r e s i z e   w i t h   d e b o u n c e 
 
                 l e t   r e s i z e T i m e o u t ; 
 
                 w i n d o w . a d d E v e n t L i s t e n e r ( ' r e s i z e ' ,   ( )   = >   { 
 
                         c l e a r T i m e o u t ( r e s i z e T i m e o u t ) ; 
 
                         r e s i z e T i m e o u t   =   s e t T i m e o u t ( ( )   = >   { 
 
                                 i n i t T e s t i m o n i a l C a r o u s e l ( ) ; 
 
                         } ,   3 0 0 ) ; 
 
                 } ) ; 
 
 
 
                 / /   R e - i n i t i a l i z e   o n   d y n a m i c   c o n t e n t   u p d a t e s 
 
                 c o n s t   m u t a t i o n O b s e r v e r   =   n e w   M u t a t i o n O b s e r v e r ( ( m u t a t i o n s )   = >   { 
 
                         m u t a t i o n s . f o r E a c h ( ( m u t a t i o n )   = >   { 
 
                                 m u t a t i o n . a d d e d N o d e s . f o r E a c h ( ( n o d e )   = >   { 
 
                                         i f   ( n o d e . n o d e T y p e   = = =   1 )   { 
 
                                                 i f   ( n o d e . i d   = = =   ' t e s t i m o n i a l C a r o u s e l '   | |   n o d e . q u e r y S e l e c t o r ? . ( ' # t e s t i m o n i a l C a r o u s e l ' ) )   { 
 
                                                         s e t T i m e o u t ( i n i t T e s t i m o n i a l C a r o u s e l ,   1 0 0 ) ; 
 
                                                 } 
 
                                         } 
 
                                 } ) ; 
 
                         } ) ; 
 
                 } ) ; 
 
 
 
                 m u t a t i o n O b s e r v e r . o b s e r v e ( d o c u m e n t . b o d y ,   {   c h i l d L i s t :   t r u e ,   s u b t r e e :   t r u e   } ) ; 
 
         } ) ( ) ; 
 
 < / s c r i p t > 
 
 @ e n d o n c e 
 
 