Add /wp/wp-includes/js/wp-embed.min.js
And use relative URL in script tag so it is served locally.
This commit is contained in:
parent
db4a3cfcf3
commit
2d42a09766
@ -128,6 +128,6 @@ section#contact div.row div p a:hover {
|
||||
</footer>
|
||||
|
||||
<script type='text/javascript' src='/app/themes/coop-tech-oowp-theme/public/js/app.js?ver=4.8'></script>
|
||||
<script type='text/javascript' src='https://www.coops.tech/wp/wp-includes/js/wp-embed.min.js?ver=4.8'></script>
|
||||
<script type='text/javascript' src='/wp/wp-includes/js/wp-embed.min.js?ver=4.8'></script>
|
||||
</body>
|
||||
</html>
|
||||
|
1
wp/wp-includes/js/wp-embed.min.js
vendored
Normal file
1
wp/wp-includes/js/wp-embed.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c<i.length;c++){if(d=i[c],!d.getAttribute("data-secret"))f=Math.random().toString(36).substr(2,10),d.src+="#?secret="+f,d.setAttribute("data-secret",f);if(g||h)a=d.cloneNode(!0),a.removeAttribute("security"),d.parentNode.replaceChild(a,d)}}}var d=!1,e=!1;if(b.querySelector)if(a.addEventListener)d=!0;if(a.wp=a.wp||{},!a.wp.receiveEmbedMessage)if(a.wp.receiveEmbedMessage=function(c){var d=c.data;if(d.secret||d.message||d.value)if(!/[^a-zA-Z0-9]/.test(d.secret)){var e,f,g,h,i,j=b.querySelectorAll('iframe[data-secret="'+d.secret+'"]'),k=b.querySelectorAll('blockquote[data-secret="'+d.secret+'"]');for(e=0;e<k.length;e++)k[e].style.display="none";for(e=0;e<j.length;e++)if(f=j[e],c.source===f.contentWindow){if(f.removeAttribute("style"),"height"===d.message){if(g=parseInt(d.value,10),g>1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);
|
Loading…
Reference in New Issue
Block a user