Osadzanie w trybie pełnoekranowym
Umieść Viewer 3D w dowolnym miejscu strony przy użyciu elementu iframe
. Ustaw atrybut src na adres Viewer’a <iframe src="https://alterproduct.com/app/viewer/1" width="100%" height="100%">
.
Gotowy kod znajdziesz w zakładce Udostępnianie swojego projektu. Pamiętaj o włączeniu publicznej widoczności narzędzi e-commerce.
index.html
1<!DOCTYPE html>
2<html>
3 <head>
4 <title>Viewer - Full Screen</title>
5 <meta charset="utf-8" />
6 <meta name="viewport" content="width=device-width, initial-scale=1" />
7
8 <style>
9 * {
10 box-sizing: border-box;
11 }
12
13 html,
14 body,
15 #root {
16 width: 100%;
17 height: 100%;
18 margin: 0;
19 padding: 0;
20 }
21
22 iframe {
23 display: block;
24 }
25 </style>
26 </head>
27 <body>
28 <iframe
29 loading="lazy"
30 title="Product Viewer"
31 src="https://alterproduct.com/app/viewer/1"
32 width="100%"
33 height="100%"
34 frameBorder="0"
35 allowFullScreen
36 ></iframe>
37 </body>
38</html>