Adobe unveils 9 types of experimental content tools… “A glimpse into the future of creative work” | CIO’; // Add textoverlay inside youtube emded div jQuery(‘.wp-block-embed-youtube’).each(function(index,element) { jQuery(element).find(“iframe”).hide(); if (element .closest(“.wp-block-embed-youtube”)?.querySelectorAll(‘.external-embed-wrapper’)?.length === 0) { jQuery(element).prepend(youtubeTextOverlay); } }); } setTimeout(youtubeDisplayTextoverlay, 0); } }); /* * Visitor has not consented to everything so we need to add click-event handlers to the consent-buttons */ jQuery(document).on(“click”,”.consent-button”,function() { var buttonElement = event.target; var embedType = jQuery(buttonElement).data(‘type’); if(embedType === ‘youtube’) { /* * Find all youtube iframes and * add a src attribute with the value from data-src */ jQuery(‘.wp-block-embed-youtube iframe’).each(function(index,element) { jQuery(element).attr(‘src’, jQuery(element).attr(‘data-src’) ); jQuery(element).css({‘z-index’: ‘initial’, ‘display’: ‘initial’}) } else if(embedType === ‘instagram’) { /* * Add instagram embed js. */ instagramIntegrate(); } else if(embedType === ‘facebook’) { /* * Find all facebook/twitter iframes and * add a src attribute with the value from data-src */ jQuery(‘ iframe’).each(function(index,element) { var src = jQuery(element).attr(‘data-src’); if( src !== undefined ) { if( src.indexOf(‘//www. facebook.com/plugins/post.php’) > -1 ) { jQuery(element).attr(‘src’, jQuery(element).data(‘src’)); jQuery(element).show(); } } }); } else if(embedType === ‘twitter’) { /* * Add instagram embed js. */ var twitterScript = document.createElement(‘script’); twitterScript.src=” twitterScript.async = true; twitterScript.charset = “utf-8″; document.getElementsByTagName(‘head’)[0].appendChild(twitterScript);
} else if(embedType === ‘vimeo’) {
/*
* Find all vimeo iframes and
* add a src attribute with the value from data-src
*/
jQuery(‘.wp-block-embed-vimeo iframe’).each(function(index,element) {
jQuery(element).attr(‘src’, jQuery(element).attr(‘data-src’));
jQuery(element).css({‘z-index’: ‘initial’, ‘display’: ‘initial’});
});
} else if(embedType === ‘slideshare’) {
/*
* Find all slideshare iframes and
* add a src attribute with the value from data-src
*/
jQuery(‘.wp-block-embed-slideshare iframe’).each(function(index,element) {
jQuery(element).attr(‘src’, jQuery(element).attr(‘data-src’));
jQuery(element).css({‘z-index’: ‘initial’, ‘display’: ‘initial’});
});
}
/*
* Now the embedded content should be loading
* so we can hide all text-overlays with this data-type
*/
jQuery(‘.embed-consent-notice[data-type=”‘+ embedType +'”]’).hide();
});
Adobe unveils 9 types of experimental content tools… “A glimpse into the future of creative work”
"The Voice Kids 6" Finale: Martyna Gąsak Wins and Takes Home Cash Prize for Musical Education
The Public Disclosure of a Genuine Confession: Gurchenko's Terrified Demise and the Call for Silence...
Kylie Jenner Shares Cuteness Overload: Adorable Snaps of Aire and Stormi
Tao Dayu's Typhoon Cover of "I Will Replace You" with New Moves Steals the Show: Netizens React with...