nl_tokens: Updates a progress bar
pl_tokens: function updateProgressBar ( <mask> , value , maximum , rating ) { var barElement , progress , allClasses = [ "snippet-editor__progress--bad" , "snippet-editor__progress--ok" , "snippet-editor__progress--good" , ] ; element . value = value ; domManipulation . removeClasses ( element , allClasses ) ; domManipulation . addClass ( element , "snippet-editor__progress--" + rating ) ; if ( ! this . hasProgressSupport ) { barElement = element . getElementsByClassName ( "snippet-editor__progress-bar" ) [ 0 ] ; progress = ( value / maximum ) * 100 ; barElement . style . width = progress + "%" ; } }