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

173
Visualizações
hand over an Image Id

I am a Java Script beginner and would like to pass the id of an image to an HTML file. When I click on a link I want to get to a page (annotator) with the image.

This is the Js part:

link = changeIIIFInformation(iiif, 10, "default")
var figure = document.createElement('figure')
var figcaption = document.createElement('figcaption')
var linkToImage = document.createElement('a')

linkToImage.setAttribute('href', 'annotator')
linkToImage.innerHTML = label;
figcaption.appendChild(linkToImage);

var image = document.createElement('img');
  image.setAttribute('src', link);
  
figure.appendChild(image)
figure.appendChild(figcaption)
div.appendChild(figure)
count += 1;
if (count >= max_num + offset) {
  break;
}

And this is the HTML Code:

<div class="container-fluid">
  <div class="row">
    <div class="col-md-6" role="main">
      Tablet:
      <select id="images" onchange="loadVariants()"></select>
      Side:
      <select id="imageside" onchange="reinit(null)"></select>

      <button id="saveAnnotations" onclick="saveTextAsFile(JSON.stringify(curanno),'json','anno')">Save Annotations</button>
      <button id="saveInGit" onclick="commitData()">Save Annotation in Gitlab</button>
      <button id="showTransliteration" onClick='document.getElementById("transliterationdialog").show();'>Show Transliteration</button>
      <button id="showTranslation" onClick='document.getElementById("translationdialog").show();'>Show Translation</button>
      <button id="showPaleoCode" onClick='document.getElementById("paleocodedialog").show();'>Show PaleoCodes</button>
      <button id="showIndexedChars" onClick="highlightIndexedChars()">Highlight Indexed Chars</button>
      <button onclick="showHideAnno()">Show/Hide Annotations</button>

      <br/> 
      Tagsets: CharacterSet: <input type="radio" id="characterset">
      LinguisticAnnotation: <input type="radio" id="linguisticset" />

    </div>
  </div>
</div>
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