MCPcopy Create free account
hub / github.com/ampproject/amphtml / makeIframe_

Method makeIframe_

extensions/amp-access-scroll/0.1/scroll-sheet.js:80–96  ·  view source on GitHub ↗

* @private *

()

Source from the content-addressed store, hash-verified

78 * @private
79 * */
80 makeIframe_() {
81 this.frame_ = /** @type {!HTMLIFrameElement} */ (
82 this.el('iframe', {
83 'class': 'amp-access-scroll-sheet',
84 'scrolling': 'no',
85 'frameborder': '0',
86 'allowtransparency': 'true',
87 'title': this.DEFAULT_TITLE_,
88 'sandbox':
89 'allow-scripts allow-same-origin ' +
90 'allow-top-navigation allow-popups ' +
91 'allow-popups-to-escape-sandbox',
92 })
93 );
94 this.root_ = this.frame_;
95 this.mount();
96 }
97}
98
99/**

Callers 1

render_Method · 0.95

Calls 2

elMethod · 0.80
mountMethod · 0.45

Tested by

no test coverage detected