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