var
/
www
/
html
/
servotec-doerpen
/
wp-includes
/
js
| uid:33
wp-embed.js
[X]
/** * WordPress inline HTML embed * * @since 4.4.0 * @output wp-includes/js/wp-embed.js * * Single line comments should not be used since they will break * the script when inlined in get_post_embed_html(), specifically * when the comments are not stripped out due to SCRIPT_DEBUG * being turned on. */ (function ( window, document ) { 'use strict'; /* Abort for ancient browsers. */ if ( ! document.querySelector || ! window.addEventListener || typeof URL === 'undefined' ) { return; } /** @namespace wp */ window.wp = window.wp || {}; /* Abort if script was already executed. */ if ( !! window.wp.receiveEmbedMessage ) { return; } /** * Receive embed message. * * @param {MessageEvent} e */ window.wp.receiveEmbedMessage = function( e ) { var data = e.data; /* Verify shape of message. */ if ( ! ( data || data.secret || data.message || data.value ) || /[^a-zA-Z0-9]/.test( data.secret ) ) { return; } var iframes = document.querySelectorAll( 'iframe[data-secret="' + data.secret + '"]' ), blockquotes = document.querySelectorAll( 'blockquote[data-secret="' + data.secret + '"]' ), allowedProtocols = new RegExp( '^https?:$', 'i' ), i, source, height, sourceURL, targetURL; for ( i = 0; i < blockquotes.length; i++ ) { blockquotes[ i ].style.display = 'none'; } for ( i = 0; i < iframes.length; i++ ) { source = iframes[ i ]; if ( e.source !== source.contentWindow ) { continue; } source.removeAttribute( 'style' ); if ( 'height' === data.message ) { /* Resize the iframe on request. */ height = parseInt( data.value, 10 ); if ( height > 1000 ) { height = 1000; } else if ( ~~height < 200 ) { height = 200; } source.height = height; } else if ( 'link' === data.message ) { /* Link to a specific URL on request. */ sourceURL = new URL( source.getAttribute( 'src' ) ); targetURL = new URL( data.value ); if ( allowedProtocols.test( targetURL.protocol ) && targetURL.host === sourceURL.host && document.activeElement === source ) { window.top.location.href = data.value; } } } }; function onLoad() { var iframes = document.querySelectorAll( 'iframe.wp-embedded-content' ), i, source, secret; for ( i = 0; i < iframes.length; i++ ) { /** @var {IframeElement} */ source = iframes[ i ]; secret = source.getAttribute( 'data-secret' ); if ( ! secret ) { /* Add secret to iframe */ secret = Math.random().toString( 36 ).substring( 2, 12 ); source.src += '#?secret=' + secret; source.setAttribute( 'data-secret', secret ); } /* * Let post embed window know that the parent is ready for receiving the height message, in case the iframe * loaded before wp-embed.js was loaded. When the ready message is received by the post embed window, the * window will then (re-)send the height message right away. */ source.contentWindow.postMessage( { message: 'ready', secret: secret }, '*' ); } } window.addEventListener( 'message', window.wp.receiveEmbedMessage, false ); document.addEventListener( 'DOMContentLoaded', onLoad, false ); })( window, document );
codemirror/
-
O
R
D
crop/
-
O
R
D
dist/
-
O
R
D
imgareaselect/
-
O
R
D
jcrop/
-
O
R
D
jquery/
-
O
R
D
mediaelement/
-
O
R
D
plupload/
-
O
R
D
swfupload/
-
O
R
D
thickbox/
-
O
R
D
tinymce/
-
O
R
D
admin-bar.js
10.3K
V
E
R
D
admin-bar.min.js
3.4K
V
E
R
D
autosave.js
21.9K
V
E
R
D
autosave.min.js
5.7K
V
E
R
D
backbone.min.js
23.7K
V
E
R
D
clipboard.js
26.2K
V
E
R
D
clipboard.min.js
8.8K
V
E
R
D
colorpicker.js
28.4K
V
E
R
D
colorpicker.min.js
16.1K
V
E
R
D
comment-reply.min.js
3K
V
E
R
D
customize-base.js
25.2K
V
E
R
D
customize-base.min.js
7.7K
V
E
R
D
customize-models.js
6.7K
V
E
R
D
customize-models.min.js
3.6K
V
E
R
D
customize-preview-nav-menus.js
14.7K
V
E
R
D
customize-preview-nav-menus.min.js
4.9K
V
E
R
D
customize-preview-widgets.min.js
7.6K
V
E
R
D
customize-preview.js
27.9K
V
E
R
D
customize-preview.min.js
10.8K
V
E
R
D
customize-views.js
5.1K
V
E
R
D
customize-views.min.js
2.5K
V
E
R
D
heartbeat.js
23.5K
V
E
R
D
heartbeat.min.js
5.8K
V
E
R
D
imagesloaded.min.js
5.4K
V
E
R
D
json2.min.js
35
V
E
R
D
masonry.min.js
23.6K
V
E
R
D
mce-view.js
25.2K
V
E
R
D
mce-view.min.js
9.5K
V
E
R
D
media-audiovideo.js
24.1K
V
E
R
D
media-audiovideo.min.js
11.8K
V
E
R
D
media-editor.js
28.8K
V
E
R
D
media-editor.min.js
10.8K
V
E
R
D
media-grid.js
26.1K
V
E
R
D
media-grid.min.js
13K
V
E
R
D
media-models.js
42.5K
V
E
R
D
media-models.min.js
13K
V
E
R
D
media-views.js
266.5K
V
E
R
D
media-views.min.js
108.1K
V
E
R
D
quicktags.js
22.1K
V
E
R
D
quicktags.min.js
10.9K
V
E
R
D
swfobject.min.js
35
V
E
R
D
tw-sack.js
4.9K
V
E
R
D
tw-sack.min.js
3.2K
V
E
R
D
twemoji.js
36.3K
V
E
R
D
twemoji.min.js
19.4K
V
E
R
D
underscore.js
67.3K
V
E
R
D
underscore.min.js
18.6K
V
E
R
D
utils.min.js
1.8K
V
E
R
D
wp-ajax-response.js
3.8K
V
E
R
D
wp-ajax-response.min.js
2.5K
V
E
R
D
wp-api.min.js
14.3K
V
E
R
D
wp-auth-check.js
4.3K
V
E
R
D
wp-auth-check.min.js
1.6K
V
E
R
D
wp-backbone.js
14.9K
V
E
R
D
wp-backbone.min.js
3K
V
E
R
D
wp-custom-header.js
10.2K
V
E
R
D
wp-custom-header.min.js
4.3K
V
E
R
D
wp-embed-template.min.js
3.1K
V
E
R
D
wp-embed.js
3.1K
V
E
R
D
wp-embed.min.js
1.2K
V
E
R
D
wp-emoji-loader.js
12.9K
V
E
R
D
wp-emoji-loader.min.js
2.8K
V
E
R
D
wp-emoji-release.min.js
22.2K
V
E
R
D
wp-emoji.js
8.6K
V
E
R
D
wp-emoji.min.js
2.8K
V
E
R
D
wp-list-revisions.js
970
V
E
R
D
wp-list-revisions.min.js
597
V
E
R
D
wp-lists.js
24.7K
V
E
R
D
wp-lists.min.js
7.3K
V
E
R
D
wp-sanitize.js
1.6K
V
E
R
D
wp-sanitize.min.js
402
V
E
R
D
wp-util.js
4.6K
V
E
R
D
wp-util.min.js
1.4K
V
E
R
D
wpdialog.js
569
V
E
R
D
wpdialog.min.js
281
V
E
R
D
wplink.js
20.7K
V
E
R
D
wplink.min.js
11.1K
V
E
R
D
zxcvbn-async.js
821
V
E
R
D
zxcvbn-async.min.js
351
V
E
R
D
zxcvbn.min.js
803K
V
E
R
D