-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.html
42 lines (38 loc) · 1.06 KB
/
about.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Display Uploaded Image</title>
<style>
body {
text-align: center;
font-family: Arial, sans-serif;
padding: 20px;
}
img {
max-width: 100%;
height: auto;
}
</style>
</head>
<body>
<h1>Uploaded Image</h1>
<img id="uploadedImage" src="" alt="Uploaded Image" />
<script>
// Wait for image to be available in localStorage
window.onload = function () {
const imageURL = localStorage.getItem('capturedImageURL');
const fileID = localStorage.getItem('uploadedFileID');
if (imageURL) {
document.getElementById('uploadedImage').src = imageURL;
} else if (fileID) {
const fileURL = `https://drive.google.com/uc?id=${fileID}`;
document.getElementById('uploadedImage').src = fileURL;
} else {
alert('No image available to display.');
}
};
</script>
</body>
</html>