-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
260 lines (242 loc) · 11.4 KB
/
index.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<!DOCTYPE html>
<html lang="en" data-theme="coffee">
<!-- 🌵 Made with Needle — https://needle.tools -->
<head>
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://hosseinbannaei.github.io/House-Menu-03.git/include/poster.webp">
<meta name="og:image" content="https://hosseinbannaei.github.io/House-Menu-03.git/include/poster.webp">
<meta name="og:image:width" content=1080>
<meta name="og:image:height" content=1080>
<meta name="og:title" content="Sandbox">
<meta name="generator" content="Unity 2022.3.3f1, Needle Engine Integration @3.11.4-pre">
<meta name="needle-engine" content="3.11.4-beta">
<meta charset="UTF-8" />
<link rel="icon" href="./assets/favicon-8d99ceea.ico" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title>Sandbox</title>
<meta name="description" content="🌵 Made with Needle Engine" />
<meta property="og:description" content="🌵 Made with Needle Engine" />
<meta name="robots" content="index,follow" />
<meta name="url" content="http://needle.tools" />
<script type="module" crossorigin src="./assets/index-abd7d5fa.js"></script>
<link rel="stylesheet" href="./assets/index-288753fd.css">
</head>
<body>
<script>/* needle: injected fix for peerjs */
window.global = window;
var parcelRequire;</script>
<script>
// hack for simple-peer
window.global = window;
var parcelRequire;
</script>
<needle-engine>
<div class="desktop ar">
<div id="controls" class="fixed inset-0 pointer-events-none flex flex-col justify-end pb-28 px-3 md:px-0 md:pb-0 md:justify-center container mx-auto">
<button id="closeCategory" class="absolute top-5 left-3 md:left-0 btn btn-primary btn-square pointer-events-auto">
<iconify-icon icon="ic:round-exit-to-app" width="1.5rem" height="1.5rem"></iconify-icon>
</button>
<div id="modelInformation" class="absolute top-5 inset-x-0 mx-auto w-fit hidden">
<div class="flex flex-col items-center gap-y-3 font-tanha-fd">
<p id="foodName" class="text-lg text-center">نام غذا یا خوراکی</p>
<p class="text-2xl">قیمت : <span id="price" class="text-white">3000</span></p>
<div id="status" class="badge badge-lg badge-error">ناموجود</div>
</div>
</div>
<div class="flex flex-row w-full h-fit justify-between justify-self-end">
<button id="prev" class="btn btn-primary font-tanha-fd pointer-events-auto">
<iconify-icon icon="uil:angle-left-b" width="1.5rem" height="1.5rem"></iconify-icon>
قبلی
</button>
<button id="next" class="btn btn-primary font-tanha-fd pointer-events-auto">
بعدی
<iconify-icon icon="uil:angle-right-b" width="1.5rem" height="1.5rem"></iconify-icon>
</button>
</div>
<div id="materialChanger" class="flex flex-row w-full h-fit justify-between justify-self-end mt-3 invisible">
<button id="prevMat" class="btn btn-secondary font-tanha-fd pointer-events-auto">
<iconify-icon icon="uil:angle-left-b" width="1.5rem" height="1.5rem"></iconify-icon>
طرح قبل
</button>
<button id="nextMat" class="btn btn-secondary font-tanha-fd pointer-events-auto">
طرح بعد
<iconify-icon icon="uil:angle-right-b" width="1.5rem" height="1.5rem"></iconify-icon>
</button>
</div>
<!-- <div id="info" class="absolute bottom-36 w-full inset-x-0 mx-auto h-36">test</div> -->
<div id="loading" class="absolute bottom-24 inset-x-0 mx-auto w-24 h-24 hidden">
<span class="loading loading-spinner loading-md [background-color:hsl(var(--p))!important] text-primary"></span>
<span id="loadingPercentage" class="absolute inset-0 w-full h-full grid place-items-center text-primary font-bold">0%</span>
</div>
<button id="resetCamBtn" class="absolute bottom-5 right-3 md:right-0 btn btn-primary btn-sm font-tanha-fd pointer-events-auto">
بازیابی دوربین
<iconify-icon icon="carbon:reset"></iconify-icon>
</button>
<div id="modelControls" class="absolute bottom-3 inset-x-0 w-full mx-auto mb-2">
<div class="flex flex-row items-end justify-between">
<div class="flex flex-row items-center gap-x-2">
<div class="flex flex-col gap-y-2">
<button id="moveBackward" class="btn btn-square btn-neutral">
<iconify-icon width="1.5rem" height="1.5rem" icon="uil:angle-down"></iconify-icon>
</button>
<button id="moveLeft" class="btn btn-square btn-neutral">
<iconify-icon width="1.5rem" height="1.5rem" icon="uil:angle-left"></iconify-icon>
</button>
</div>
<div class="flex flex-col gap-y-2">
<button id="moveForward" class="btn btn-square btn-neutral">
<iconify-icon width="1.5rem" height="1.5rem" icon="uil:angle-up"></iconify-icon>
</button>
<button id="moveRight" class="btn btn-square btn-neutral">
<iconify-icon width="1.5rem" height="1.5rem" icon="uil:angle-right"></iconify-icon>
</button>
</div>
<div class="flex flex-col gap-y-2">
<button id="moveUpward" class="btn btn-square btn-neutral">
<iconify-icon width="1.5rem" height="1.5rem" icon="uil:angle-double-up"></iconify-icon>
</button>
<button id="moveDownward" class="btn btn-square btn-neutral">
<iconify-icon width="1.5rem" height="1.5rem" icon="uil:angle-double-down"></iconify-icon>
</button>
</div>
</div>
<div class="flex flex-col sm:flex-row gap-2">
<button id="scaleUp" class="btn btn-square btn-neutral order-1 sm:order-2">
<iconify-icon width="1.5rem" height="1.5rem" icon="ic:round-plus"></iconify-icon>
</button>
<button id="scaleDown" class="btn btn-square btn-neutral order-2 sm:order-1">
<iconify-icon width="1.5rem" height="1.5rem" icon="ic:round-minus"></iconify-icon>
</button>
<button id="resetModel" class="btn btn-square btn-neutral order-3">
<iconify-icon width="1.5rem" height="1.5rem" icon="fluent:arrow-reset-20-filled"></iconify-icon>
</button>
</div>
<div class="flex flex-row items-center gap-x-2">
<div class="flex flex-col gap-y-2">
<button id="yawLeft" class="btn btn-square btn-neutral">
<iconify-icon width="1.5rem" height="1.5rem" icon="mingcute:rotate-x-line" flip="horizontal"></iconify-icon>
</button>
<button id="yawRight" class="btn btn-square btn-neutral">
<iconify-icon width="1.5rem" height="1.5rem" icon="mingcute:rotate-x-line"></iconify-icon>
</button>
</div>
<div class="flex flex-col gap-y-2">
<button id="pitchUp" class="btn btn-square btn-neutral">
<iconify-icon width="1.5rem" height="1.5rem" icon="mingcute:rotate-y-line"></iconify-icon>
</button>
<button id="pitchDown" class="btn btn-square btn-neutral">
<iconify-icon width="1.5rem" height="1.5rem" icon="mingcute:rotate-y-line" flip="vertical"></iconify-icon>
</button>
</div>
<div class="flex flex-col gap-y-2">
<button id="rollLeft" class="btn btn-square btn-neutral">
<iconify-icon width="1.5rem" height="1.5rem" icon="tabler:rotate"></iconify-icon>
</button>
<button id="rollRight" class="btn btn-square btn-neutral">
<iconify-icon width="1.5rem" height="1.5rem" icon="tabler:rotate" flip="horizontal"></iconify-icon>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</needle-engine>
<div id="mainMenu" class="w-full h-full fixed inset-0 z-[999999] bg-base-100 hidden">
<div class="flex flex-col py-8 gap-y-2 items-center justify-center h-2/6">
<iconify-icon icon="solar:augmented-reality-broken" width="8rem" height="8rem" class="text-primary"></iconify-icon>
<h3 dir="rtl" class="text-primary text-2xl font-bold font-tanha-fd">به منوی واقعیت افزوده خوش آمدید!</h3>
</div>
<!-- Viewport element -->
<div id="carousel" class="flicking-viewport h-4/6">
<!-- Camera element -->
<div class="flicking-camera">
<!-- Panels, class names are your choice -->
<div class="panel">
<div class="card mx-1 bg-gray-100 shadow-xl">
<figure class="px-10 pt-10">
<iconify-icon icon="ion:restaurant-outline" width="4rem" height="4rem" class="text-primary"></iconify-icon>
</figure>
<div class="card-body items-center gap-y-3 text-center">
<h2 class="card-title font-tanha-fd">رستوران</h2>
<p class="font-tanha-fd">در این منو میتوانید غذا های رستوران را مشاهده کنید</p>
<div class="card-actions">
<button class="btn btn-primary font-tanha-fd">ورود</button>
</div>
</div>
</div>
</div>
<div class="panel">
<div class="card mx-1 bg-gray-100 shadow-xl">
<figure class="px-10 pt-10">
<iconify-icon icon="ion:restaurant-outline" width="4rem" height="4rem" class="text-primary"></iconify-icon>
</figure>
<div class="card-body items-center gap-y-3 text-center">
<h2 class="card-title">Restaurant!</h2>
<p>You can see menu of a restaurant here</p>
<div class="card-actions">
<button class="btn btn-primary">Take a Look!</button>
</div>
</div>
</div>
</div>
<div class="panel">
<div class="card mx-1 bg-gray-100 shadow-xl">
<figure class="px-10 pt-10">
<iconify-icon icon="ion:restaurant-outline" width="4rem" height="4rem" class="text-primary"></iconify-icon>
</figure>
<div class="card-body items-center gap-y-3 text-center">
<h2 class="card-title">Restaurant!</h2>
<p>You can see menu of a restaurant here</p>
<div class="card-actions">
<button class="btn btn-primary">Take a Look!</button>
</div>
</div>
</div>
</div>
</div>
<div class="flicking-pagination"></div>
</div>
<div hidden>
<div class="card w-96 bg-gray-100 shadow-xl">
<figure class="px-10 pt-10">
<iconify-icon icon="ion:restaurant-outline" width="4rem" height="4rem" class="text-primary"></iconify-icon>
</figure>
<div class="card-body items-center gap-y-3 text-center">
<h2 class="card-title">Restaurant!</h2>
<p>You can see menu of a restaurant here</p>
<div class="card-actions">
<button class="btn btn-primary">Take a Look!</button>
</div>
</div>
</div>
</div>
</div>
<div class="absolute z-[999999] inset-x-0 bottom-14 mx-auto w-fit webxr-buttons pointer-events-auto">
<button class="ar-button btn btn-outline btn-error font-tanha-fd z-50 pointer-events-auto">نمایش در فضای واقعی</button>
</div>
</body>
<script>
function onClassChange(node, callback) {
let lastClassString = node.classList.toString();
const mutationObserver = new MutationObserver((mutationList) => {
for (const item of mutationList) {
if (item.attributeName === "class") {
const classString = node.classList.toString();
if (classString !== lastClassString) {
callback(mutationObserver);
lastClassString = classString;
break;
}
}
}
});
mutationObserver.observe(node, { attributes: true });
return mutationObserver;
}
const needle = document.querySelector("needle-engine");
onClassChange(needle, () => {
needle.classList.remove("loading");
});
</script>
</html>