Osadzanie w trybie pełnoekranowym
Umieść konfigurator produktów w dowolnym miejscu strony przy użyciu elementu iframe
. Wystarczy ustawić atrybut src
wskazujący adres konfiguratora <iframe src="https://alterproduct.com/app/configurator/1" width="100%" height="100%">
.
Gotowy kod iframe znajdziesz w zakładce „Udostępnianie” swojego projektu. Tam też skonfigurujesz parametry URL. Upewnij się, że Twoje narzędzia e-commerce są ustawione jako publiczne, aby iframe działał poprawnie.
index.html
1<!DOCTYPE html>
2<html>
3 <head>
4 <title>Configurator - 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 Configurator"
31 src="https://alterproduct.com/app/configurator/1"
32 width="100%"
33 height="100%"
34 frameBorder="0"
35 allowFullScreen
36 ></iframe>
37 </body>
38</html>