惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
WordPress大学
WordPress大学
Recent Announcements
Recent Announcements
G
Google Developers Blog
I
InfoQ
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
M
MIT News - Artificial intelligence
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
C
Check Point Blog
J
Java Code Geeks
T
Tailwind CSS Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
MongoDB | Blog
MongoDB | Blog
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
量子位
A
About on SuperTechFans
D
DataBreaches.Net
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

WordPress Plugin

How to Create an Audio Player Playlist from an XML File Copy Audio URL in Wonder Audio Player YouTube Error 153 | WordPress Plugin How to Create a WordPress Gallery from an XML File How to Remove URL Query Parameters in Wonder Lightbox How to Dynamically Create a WordPress Image and Video Gallery Using WordPress Media Library IDs How to Add an Image to the Lightbox Gallery Without Showing It in the Grid Gallery How to Make the PDF Page Fit the Entire Lightbox Width When Opening a PDF File Double Tap to Play or Pause the WordPress Audio Player on Touch Devices
Wonder Lightbox JavaScript Events | WordPress Plugin
2025-07-30 · via WordPress Plugin

Plugin:

Wonder Lightbox

Tutorial:

This tutorial lists the JavaScript events supported by the Wonder Lightbox plugin.

When the lightbox is opened:

(function($){
  $(window).on("html5lightbox.event", function( event, type, url, title) {
    console.log("Lightbox URL: " + url);
    console.log("Lightbox Title: " + title);
  });
})(jQuery);

When the lightbox is closed:

(function($){
  $(window).on("html5lightbox.lightboxclosed", function(){
    console.log("Lightbox Closed");
  });
})(jQuery);

When the lightbox opens a video and the video finishes playing:

(function($){
  $(window).on("html5lightbox.videofinished", function(){
    console.log("Video Finishes");
  });
})(jQuery);