Reply To: Editing red "recording…" message

PennController for IBEX Forums Support Editing red "recording…" message Reply To: Editing red "recording…" message

#6371
Jeremy
Keymaster

Hi,

If you can live with the message having the same background color whether it says “Not recording” or “Recording…”, all you need to do is upload a file named global_z.css with the following:

#bod table + div:last-child {
    background-color: lightblue !important;
}

If you want to use different custom colors for the two states, you’ll need to use the method from the message above:

newTrial(
    newButton("Go fullscreen").print().wait().remove()
    ,
    fullscreen()
    ,
    newMediaRecorder("video").print().log().record()
    ,
    newFunction(()=>$("div:contains(Recording...)").css('background-color','lightblue')).call()
    ,
    newTimer(60000).start().wait() // Record for 1min
    ,
    newFunction(()=>$("div:contains(Recording...)").css('background-color','lightgray')).call()
    ,
    getMediaRecorder("video").stop()
    ,
    newButton("Next").print().wait()
)

Let me know if you still have questions

Jeremy