added image_popup

This commit is contained in:
Václav Šmejkal 2024-05-25 14:15:34 +02:00
parent 35050b61f6
commit cca63657ff
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -8,6 +8,9 @@
<div><input type="file" name="file_upload" id="file_upload" style="display:none;"></div> <div><input type="file" name="file_upload" id="file_upload" style="display:none;"></div>
<div><button onclick="upload()" type="submit" class="btn" id="upload_popup_sub">Zveřejnit</button></div> <div><button onclick="upload()" type="submit" class="btn" id="upload_popup_sub">Zveřejnit</button></div>
</div> </div>
<div id="image_popup">
<img src="//:0">
</div>
<div id="posts"></div> <div id="posts"></div>
<script> <script>
@ -89,4 +92,9 @@
} }
}); });
} }
$(document).on("click", ".post_image", function(event)
{
console.log($(this).children("img").attr("src"));
});
</script> </script>