MCPcopy
hub / github.com/ampproject/amphtml / constructor

Method constructor

third_party/subscriptions-project/swg.js:10374–10393  ·  view source on GitHub ↗

* @param {!../model/doc.Doc} doc * @param {number} zIndex

(doc, zIndex)

Source from the content-addressed store, hash-verified

10372 * @param {number} zIndex
10373 */
10374 constructor(doc, zIndex) {
10375 /** @private @const {!../model/doc.Doc} */
10376 this.doc_ = doc;
10377
10378 /** @private @const {!Element} */
10379 this.fadeBackground_ = this.doc_
10380 .getWin()
10381 .document.createElement('swg-popup-background');
10382 setImportantStyles$1(this.fadeBackground_, {
10383 'z-index': zIndex,
10384 'display': 'none',
10385 'pointer-events': 'none',
10386 'position': 'fixed',
10387 'top': 0,
10388 'right': 0,
10389 'bottom': 0,
10390 'left': 0,
10391 'background-color': 'rgba(32, 33, 36, .6)',
10392 });
10393 }
10394
10395 /**
10396 * @return {!Element}

Callers

nothing calls this directly

Calls 2

setImportantStyles$1Function · 0.85
getWinMethod · 0.45

Tested by

no test coverage detected