PluginProbe
Elementor Website Builder – more than just a page builder / 3.8.0-beta1
Elementor Website Builder – more than just a page builder v3.8.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
elementor / app / assets / js / loader / commands / load.js

load.js in Elementor Website Builder – more than just a page builder 3.8.0-beta1, at app/assets/js/loader/commands/load.js

30 lines 686 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 export class Load extends $e.modules.CommandBase {
2 apply( args ) {
3 const component = this.component;
4
5 if ( ! component.iframe ) {
6 component.iframe = document.createElement( 'iframe' );
7 component.iframe.className = 'elementor-app-iframe';
8 component.iframe.style.cssText = '' +
9 'display: none;' +
10 'width: 100%;' +
11 'height: 100%;' +
12 'position: fixed;' +
13 'top: 0;' +
14 'left: 0;' +
15 'z-index: 99999; /* Over WP Admin Bar */' +
16 'background-color: rgba(0, 0, 0, 0.8);';
17
18 document.body.appendChild( component.iframe );
19 }
20
21 if ( args.url === component.iframe.src ) {
22 return;
23 }
24
25 component.iframe.src = args.url;
26 }
27 }
28
29 export default Load;
30