MCPcopy Create free account
hub / github.com/Swizec/article-threader / createIframe

Function createIframe

public/lemon.js:120–127  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

118 }
119
120 function createIframe(url) {
121 removeIframe();
122 this.iframe = document.createElement("iframe");
123 this.iframe.style =
124 "z-index: 2147483647;display: block;background-color: transparent;border: 0px none transparent;overflow-x: hidden;overflow-y: auto;visibility: visible;margin: 0px;padding: 0px;-webkit-tap-highlight-color: transparent;position: fixed;left: 0px;top: 0px;width: 100%;height: 100%;";
125 this.iframe.src = url;
126 document.body.appendChild(this.iframe);
127 }
128
129 function removeIframe() {
130 if (this.iframe) {

Callers 1

openUrlFunction · 0.85

Calls 1

removeIframeFunction · 0.85

Tested by

no test coverage detected