-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
75 lines (64 loc) · 2.68 KB
/
index.html
File metadata and controls
75 lines (64 loc) · 2.68 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>GenEx: Generating an Explorable World</title>
<link rel="icon" type="image/png" href="pics/assets/logo.png">
<link href="https://fonts.googleapis.com/css2?family=Hind+Madurai:wght@500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<!-- Pannellum -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pannellum@2.5.6/build/pannellum.css">
<script src="https://cdn.jsdelivr.net/npm/pannellum@2.5.6/build/pannellum.js"></script>
</head>
<body>
<script>console.log("Howdy! Inline script ran.");</script>
<header>
<img id="logo" src="pics/assets/logo.png" alt="logo">
<span id="title">GenEx: Generating an Explorable World</span>
</header>
<div id="container">
<section id="left">
<h3>Adventure from Text</h3>
<textarea id="prompt" rows="3">inside of a beautiful japanese onsen with sakura tree, hot baths</textarea>
<button id="promptBtn">Generate from Text</button>
<hr class="dashed">
<h3>Explore into an Image</h3>
<label id="dropZone" class="drop-zone">
<input id="fileInput" type="file" accept="image/*" hidden>
<img id="preview" alt="">
<span id="dzText">Drag & drop or click to select</span>
</label>
<div id="examplesWrap">
<div id="examples">
<img src="pics/example_inputs/0.png" data-src="pics/example_inputs/0.png">
<img src="pics/example_inputs/1.png" data-src="pics/example_inputs/1.png">
<img src="pics/example_inputs/2.png" data-src="pics/example_inputs/2.png">
<img src="pics/example_inputs/3.png" data-src="pics/example_inputs/3.png">
<img src="pics/example_inputs/4.png" data-src="pics/example_inputs/4.png">
<img src="pics/example_inputs/5.png" data-src="pics/example_inputs/5.png">
</div>
</div>
<button id="imageBtn" disabled>Generate from Image</button>
<hr class="dashed">
<div id="statusLine">
<span id="statusText">Idle</span>
<span id="timer">00:00</span>
</div>
<pre id="log"></pre>
</section>
<section id="right">
<div class="viewer-wrap">
<div id="panorama" class="viewer">
<span id="placeholder">Panorama will appear here…</span>
</div>
</div>
<div id="exploreControls">
<button id="exploreBtn" disabled>Explore Forward</button>
<input id="frameSlider" type="range" min="0" max="0" value="0" style="display:none">
</div>
</section>
</div>
<script src="generate.js"></script>
<script src="explore.js"></script>
</body>
</html>