                w i n d o w . r e n d e r A b s t r a c t I t e m s T a b l e   =   f u n c t i o n ( )   { 
 
                         c o n s t   t b o d y   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' a b - i t e m s - t b o d y ' ) ; 
 
                         i f   ( ! t b o d y )   r e t u r n ; 
 
                         t b o d y . i n n e r H T M L   =   ' ' ; 
 
 
 
                         l e t   c u r r e n t W o r k s T o t a l   =   0 ; 
 
                         l e t   p r e v W o r k s T o t a l   =   0 ; 
 
                         l e t   t o t a l W o r k s T o t a l   =   0 ; 
 
 
 
                         ( w i n d o w . c u r r e n t A b s t r a c t I t e m s   | |   [ ] ) . f o r E a c h ( ( i t ,   i n d e x )   = >   { 
 
                                 c o n s t   c u r r e n t Q t y   =   p a r s e F l o a t ( i t . c u r r e n t _ q t y )   | |   0 ; 
 
                                 c o n s t   p r e v Q t y   =   p a r s e F l o a t ( i t . p r e v _ q t y )   | |   0 ; 
 
                                 c o n s t   t o t a l Q t y   =   p r e v Q t y   +   c u r r e n t Q t y ; 
 
                                 c o n s t   p r i c e   =   p a r s e F l o a t ( i t . p r i c e )   | |   0 ; 
 
 
 
                                 c o n s t   c u r r e n t V a l   =   c u r r e n t Q t y   *   p r i c e ; 
 
                                 c o n s t   p r e v V a l   =   p r e v Q t y   *   p r i c e ; 
 
                                 c o n s t   t o t a l V a l   =   t o t a l Q t y   *   p r i c e ; 
 
 
 
                                 c u r r e n t W o r k s T o t a l   + =   c u r r e n t V a l ; 
 
                                 p r e v W o r k s T o t a l   + =   p r e v V a l ; 
 
                                 t o t a l W o r k s T o t a l   + =   t o t a l V a l ; 
 
 
 
                                 t b o d y . i n n e r H T M L   + =   ` 
 
                                         < t r > 
 
                                                 < t d   s t y l e = " t e x t - a l i g n : c e n t e r ; " > 
 
                                                         < b u t t o n   c l a s s = " a c t i o n - b t n   b t n - d e l e t e "   o n c l i c k = " w i n d o w . r e m o v e A b s t r a c t I t e m ( $ { i n d e x } ) "   s t y l e = " p a d d i n g :   2 p x   5 p x ;   m a r g i n - b o t t o m :   5 p x ; " > 8% < / b u t t o n > 
 
                                                 < / t d > 
 
                                                 < t d > < i n p u t   t y p e = " t e x t "   v a l u e = " $ { i t . n a m e   | |   ' ' } "   o n c h a n g e = " w i n d o w . u p d a t e A b s t r a c t I t e m ( $ { i n d e x } ,   ' n a m e ' ,   t h i s . v a l u e ) "   s t y l e = " w i d t h : 1 0 0 % ;   b o r d e r : n o n 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 : # f f f ;   f o n t - w e i g h t : b o l d ; " > < / t d > 
 
                                                 < t d   s t y l e = " t e x t - a l i g n : c e n t e r ; " > < i n p u t   t y p e = " t e x t "   v a l u e = " $ { i t . u n i t   | |   ' ' } "   o n c h a n g e = " w i n d o w . u p d a t e A b s t r a c t I t e m ( $ { i n d e x } ,   ' u n i t ' ,   t h i s . v a l u e ) "   s t y l e = " w i d t h : 5 0 p x ;   b o r d e r : n o n 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 : # f f f ;   t e x t - a l i g n : c e n t e r ; " > < / t d > 
 
                                                 < t d   s t y l e = " t e x t - a l i g n : c e n t e r ; " > < i n p u t   t y p e = " n u m b e r "   s t e p = " a n y "   v a l u e = " $ { p r i c e } "   o n c h a n g e = " w i n d o w . u p d a t e A b s t r a c t I t e m ( $ { i n d e x } ,   ' p r i c e ' ,   t h i s . v a l u e ) "   s t y l e = " w i d t h : 7 0 p x ;   b o r d e r : n o n 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 : # f f f ;   t e x t - a l i g n : c e n t e r ; " > < / t d > 
 
                                                 < t d   s t y l e = " t e x t - a l i g n : c e n t e r ; " > < i n p u t   t y p e = " n u m b e r "   s t e p = " a n y "   v a l u e = " $ { p r e v Q t y } "   o n c h a n g e = " w i n d o w . u p d a t e A b s t r a c t I t e m ( $ { i n d e x } ,   ' p r e v _ q t y ' ,   t h i s . v a l u e ) "   s t y l e = " w i d t h : 6 0 p x ;   b o r d e r : n o n 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 : # a a a ;   t e x t - a l i g n : c e n t e r ; " > < / t d > 
 
                                                 < t d   s t y l e = " t e x t - a l i g n : c e n t e r ; " > < i n p u t   t y p e = " n u m b e r "   s t e p = " a n y "   v a l u e = " $ { c u r r e n t Q t y } "   o n c h a n g e = " w i n d o w . u p d a t e A b s t r a c t I t e m ( $ { i n d e x } ,   ' c u r r e n t _ q t y ' ,   t h i s . v a l u e ) "   s t y l e = " w i d t h : 7 0 p x ;   b o r d e r : 1 p x   s o l i d   v a r ( - - p r i m a r y ) ;   b a c k g r o u n d : r g b a ( 0 , 0 , 0 , 0 . 3 ) ;   c o l o r : # f f f ;   f o n t - w e i g h t : b o l d ;   p a d d i n g : 5 p x ; " > < / t d > 
 
                                                 < t d   s t y l e = " t e x t - a l i g n : c e n t e r ;   c o l o r : # f f 9 8 0 0 ;   f o n t - w e i g h t : b o l d ; " > $ { t o t a l Q t y } < / t d > 
 
                                                 < t d   s t y l e = " t e x t - a l i g n : c e n t e r ;   c o l o r : # a a a ; " > $ { p r e v V a l . t o L o c a l e S t r i n g ( ' e n - U S ' ) } < / t d > 
 
                                                 < t d   s t y l e = " t e x t - a l i g n : c e n t e r ;   c o l o r : v a r ( - - p r i m a r y ) ;   f o n t - w e i g h t : b o l d ; " > $ { c u r r e n t V a l . t o L o c a l e S t r i n g ( ' e n - U S ' ) } < / t d > 
 
                                                 < t d   s t y l e = " t e x t - a l i g n : c e n t e r ;   c o l o r : # 4 c a f 5 0 ;   f o n t - w e i g h t : b o l d ; " > $ { t o t a l V a l . t o L o c a l e S t r i n g ( ' e n - U S ' ) } < / t d > 
 
                                         < / t r > 
 
                                 ` ; 
 
                         } ) ; 
 
 
 
                         / /   j%2j%5j% % j%3  j%/% j%-j%4% j%/% % j%/j%2
 
                         c o n s t   c u r r W o r k 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 ( ' a b - c u r r e n t - w o r k s ' ) ; 
 
                         i f   ( c u r r W o r k s E l )   c u r r W o r k s E l . i n n e r T e x t   =   c u r r e n t W o r k s T o t a l . t o L o c a l e S t r i n g ( ' e n - U S ' ) ; 
 
                         
 
                         i f   ( t y p e o f   w i n d o w . c a l c u l a t e A b s t r a c t T o t a l s   = = =   ' f u n c t i o n ' )   w i n d o w . c a l c u l a t e A b s t r a c t T o t a l s ( ) ; 
 
                 } ; 
 
 
 
 