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

191
Visualizações
Is it possible to scroll through a long body of data using two columns?

I was hoping to see if I could get some help making this work. I'm working on a Chrome extension that modifies the layout of a site with CSS/js tweaks.

Is it possible to make the long, narrow text on this page scroll like the following diagram displays?

Site: https://play.date/pulp/docs/pulpscript/

Diagram: enter image description here

Latest attempt at solution:

var curColumn = 0;

main.onscroll = function(){myFunction()};

function myFunction() {
    if (curColumn==0 && document.documentElement.scrollTop == 0) {
        // do nothing
    }
    else if (curColumn==2 && document.documentElement.scrollBottom == 0) {
        // do nothing
    }
    else {
        // move forward or backward? 
        // where to increment/decrement curColumn?
    }
}
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Sure, you would need a counter in JS to keep track of the current column, then in the container element you could add an onscroll method, that when it reaches the bottom or top it will move to the other end of the document based on what the current column is. Then increment or decrement the column number.

If column == 0 and we reach the top of the page, do nothing, likewise for the bottom of the page and the last column. Else, move forward or backward.

about 4 years ago · Juan Pablo Isaza Relatório
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