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