mirror of
https://gh.wpcy.net/https://github.com/4suredev/Avada-Dynamic-Video-Lightbox.git
synced 2026-04-20 19:42:19 +08:00
11 lines
No EOL
524 B
JavaScript
11 lines
No EOL
524 B
JavaScript
jQuery(document).ready(function($){
|
|
$('.generate-lightbox-video-shortcode').click(function(e){
|
|
var btn = $(this);
|
|
e.preventDefault();
|
|
navigator.clipboard.writeText('[lightbox_video url="" img=""]');
|
|
$(btn).html('<span class="wp-media-buttons-icon dashicons dashicons-shortcode"></span> Copied to clipboard');
|
|
setTimeout(() => {
|
|
$(btn).html('<span class="wp-media-buttons-icon dashicons dashicons-shortcode"></span> Insert Video Lightbox');
|
|
}, 1000);
|
|
});
|
|
}) |