function addStep(iframesrc, type, text) {
const step = document.createElement("div");
const iframe = document.createElement("iframe");
iframe.src = iframesrc;
iframe.style.border = "0px solid transparent";
step.append(iframe);
switch (type) {
case "title":
iframe.width = w;
iframe.style.width = w + "px";
iframe.height = w / 3;
iframe.style.height = w / 3 + "px";
step.style.width = w + "px";
step.style.height = w / 3 + "px";
break;
case "normal":
iframe.width = w;
iframe.style.width = w + "px";
iframe.height = w;
iframe.style.height = w + "px";
step.style.width = w + "px";
step.style.height = w + "px";
break;
}
return step;
}