adding new page

This commit is contained in:
Janis Steiner
2024-10-14 12:42:10 +01:00
parent 3e1380ca47
commit 3192cf02dd

View File

@@ -10,8 +10,9 @@
</head>
<body>
<!-- Display the first image -->
<img id="webcam-image" style="transform: rotate(<?php echo $rotation; ?>deg);" width="100%" src="/user_files/<?php echo $username; ?>/<?php echo $printer_url; ?>.jpeg" alt="Webcam Feed">
<a id="image-link" href="/user_files/<?php echo $username; ?>/<?php echo $printer_url; ?>.jpeg" target="_blank">
<img id="webcam-image" style="transform: rotate(<?php echo $rotation; ?>deg);" width="100%" src="/user_files/<?php echo $username; ?>/<?php echo $printer_url; ?>.jpeg" alt="Webcam Feed">
</a>
<script>
// Function to call PHP script to download the latest image and then swap it
function loadAndSwapImage() {