This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path4.html
79 lines (67 loc) · 2.17 KB
/
4.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Time Travellers of the Ticking Tock</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="/stylesheets/base.css">
<link rel="stylesheet" href="/stylesheets/skeleton.css">
<link rel="stylesheet" href="/stylesheets/layout.css">
<link rel="shortcut icon" href="/images/favicon.ico">
<link rel="apple-touch-icon" href="/images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="/images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="/images/apple-touch-icon-114x114.png">
<script src="js/store.min.js"></script>
<script src="js/guid.js"></script>
</head>
<style>
hr {color:sienna;}
#tm{
width:100%
}
</style>
<body>
<div class="container">
<div class="sixteen columns" id="topbanner">
<h3>You Found the Time Machine!</h3>
<img src="images/4.jpg" id="tm">
<p>To get it working again, we will need POWER, TIME, and IMAGINATION. Can you capture a photo of some wings in this room to power our time machine?</p>
<a href="5.html"></a>
<div>
<label class="camerabutton">
<input id="image" type="file" accept="image/*;capture=camera">
</label>
</div>
<a href="3.html">< 3</a>
<a href="5.html">5 ></a>
</div>
<script>
var image = document.getElementById("image");
image.onchange = function (event) {
var formData = new FormData();
var uuid = store.get('uuid');
if(uuid===undefined){
uuid = guid();
console.log(uuid);
store.set('uuid', uuid);
}
formData.append("uuid", uuid);
formData.append("prompt", "4");
formData.append("image", event.target.files[0]);
var request = new XMLHttpRequest();
request.onreadystatechange = function() {
if(request.readyState===4){
setTimeout(window.location='5.html', 10);
}
}
request.open("POST", "http://72.2.114.118:5100/image");
request.send(formData);
};
</script>
</div>
</body>
</html>