Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

280
Visualizações
How to hide the thumb of slider till participant responds, in canvas-slider-response plugin in jsPsych?

I have a behavioural experiment on jsPsych. Currently, I present participants with an image that is drawn on HTML canvas and they have to respond with a slider. However, I don't want them to see the thumb till they click on the slider (to avoid a bias). How can I do that?

.jspsych-slider::-webkit-slider-thumb {
  /*border: 1px solid #666;
  height: 24px;
  width: 15px;
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;*/
  -webkit-appearance: none;
  /*margin-top: -9px;*/
  /*visibility: hidden*/;
}

.jspsych-slider::-ms-thumb {visibility: hidden;}
.jspsych-slider::-moz-range-thumb {visibility:hidden;}

I tried updating these in the CSS file for jsPsych but this does not seem to help. Also, I tried another exisiting solution for a similar plugin but that is also not helping with the canvas-slider-plugin.

on_load: function(){
  document.querySelector('#jspsych-html-slider-response-response').addEventListener('click', function(e){
    e.target.style.visibility = 'show'})
},

Any help in this respect is appreciated. Thank you, Prashanti

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda