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

127
Visualizações
List GitHub Repositories or Gists of a User in Webpage using HTML and JavaScript

I tried to find an answer to this question for a long time, and I did find some but none of them worked with the current version of GitHub API. It took me some time to figure it out myself, but I did and I am verry happy with the result that I achieved. So, I thought I should share it here for someone who might also be finding an answer to this. So, read my answer below.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

First, You can have a glimpse of what the final result is like by clicking here for Repositories and here for Gists.

Click here to view the repository that has the JavaScript file. There, you will find all the details on how to use it.

If you liked my implementation of this in my GitHub Page website, its source code is here

In short, here is how to list all GitHub Repositories of a User (Mine in this Example):

        listrepos("HiDe-Techno-Tips", document.getElementById("pin")).then(reposcount => {
                // In this section, variable reposcount stores the total number of Repositories.
            });
      svg {
        display: inline-block;
        vertical-align: middle;
        padding-bottom: 3px;
      }

      a {
        text-decoration: none;
      }

      .box {
        border: 2px solid black;
        padding: 25px;
        margin: 20px;
      }

      .box div {
        margin: 5px;
      }

      .box p {
        color: black;
      }

      .controls {
        display: flex;
      }

      .horizontalspace {
        flex-grow: 1;
      }

      .stats {
        display: inline-flex;
        align-items: center;
      }

      .buttons * {
        margin-left: 5px;
      }

      .stats *:not(svg) {
        margin-right: 5px;
      }

      ol {
        margin: 0px;
        padding: 0px;
        list-style-type: none;
      }
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<html>
  <head>
    <script src="https://gitlist.himdek.com/GitHubList.js"></script>
  </head>
  <body>
    <div id="pin"></div>
  </body>
</html>

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