public/survivor/survivor.js
/**
 * sets the size of the green bar.
 * @param percent (number between 0 and 100)
 */
sets the size of the green bar.
@param percent (number between 0 and 100)
sets the size of the green bar . @param percent ( number between 0 and 100 )
function updateGeneratorProgress(percent) 
{
    if (percent < 0 || percent > 100) {
        console.exception("Was soll die Scheise? Kannst du nicht bis 100 zählen im Zahlenraum N??")
    }
    let progress = 80 / 100 * percent;
    document.getElementById("progressBar").style.width = progress + '%';
    if (generatorProgressSinceLastRequest) {
        generatorProgressSinceLastRequest = false;
    }
}
function updateGeneratorProgress ( percent ) { if ( percent < 0 || percent > 100 ) { console . exception ( "Was soll die Scheise? Kannst du nicht bis 100 zählen im Zahlenraum N??") } let progress = 80 / 100 * percent ; document . getElementById ( "progressBar" ) . style . width = progress + '%' ; if ( generatorProgressSinceLastRequest ) { generatorProgressSinceLastRequest = false ; } }
sets the size of the green bar.
sets the size of the green bar .
//(0...100) //give progress back if survivor has done something @Noah