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

349
Visualizações
How to display single <div> content in parent as well as child window in electron.js?

I am trying to create simplest presentation application in electron.js.

In the left bar I will display thumbnails of slides div#list_of_slides.
In the body preview of slide will be visible div#preview_of_slide

<html>
    <head>
        <title>My Presentation Application</title>
    </head>

    <body>
        <div id="preview">
            <div id="preview_of_slide">
                <!-- Here slide will be displayed -->
            </div>

            <div id="popout_preview_to_new_window">
                <!-- New window will open up showing bigger view of slide visilbe in div#preview_of_slide -->
                <button>Popout</button>
            </div>
        </div>
        

        <div id="list_of_slides">
            <!-- These are slides whose thumbnails are displaying in this <div> -->
            <!-- When user will click on specific thumbbnail then it will get displayed in div#preview_of_slide -->

            <img src="slide_1.jpg"> <!-- Thumbnail of slide 1 -->
            <img src="slide_2.jpg"> <!-- Thumbnail of slide 2 -->
            <img src="slide_3.jpg"> <!-- Thumbnail of slide 3 -->
            <img src="slide_4.jpg"> <!-- Thumbnail of slide 4 -->
            <img src="slide_5.jpg"> <!-- Thumbnail of slide 5 -->
        </div>

        <script>
            // Here javascript will make display of slide in div#preview_of_slide when user click on specific thumbnail

            // More javascript to create popout window to display content of div#preview_of_slide in bigger size
        </script>
    </body>
</html>

I want to add functionality of popout preview to a new child window when use click on <button>. So the selected slide would be visible in div#preview_of_slide as well as in new child winodw(or popout window) in larger size.

How can I duplicate content of div#preview_of_slide into new popout child window in electron.js?

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