diff --git a/ekko-lightbox.js b/ekko-lightbox.js index fa759b3..ab57ade 100644 --- a/ekko-lightbox.js +++ b/ekko-lightbox.js @@ -10,7 +10,7 @@ const Lightbox = (($) => { maxHeight: 9999, showArrows: true, //display the left / right arrows or not wrapping: true, //if true, gallery loops infinitely - type: null, //force the lightbox into image / youtube mode. if null, or not image|youtube|vimeo; detect it + type: null, //force the lightbox into image / youtube mode. if null, or not image|youtube|vimeo|dailymotion; detect it alwaysShowClose: false, //always show the close button, even if there is no title loadingMessage: '
data-type="(image|youtube|vimeo)"
data-type="(image|youtube|vimeo|dailymotion)"
You cannot embed Vimeo videos using the standard url (ie http://vimeo.com/80629469); you must link to the embed source (ie player.vimeo.com/video/80629469). This will mean your link url - if the JavaScript fails, will open the full screen player (try opening the first link below in a new tab); the solution to this is to set the lightbox source directly - the second link below does this.
City Lights - from Colin Rich (using embed link)
-City Lights - from Colin Rich (with reccommended data-remote
setting)
City Lights - from Colin Rich (with recommended data-remote
setting)
+ You cannot embed Dailymotion videos using the standard url (ie https://dai.ly/x6xailo); you must link + to the embed source (ie https://www.dailymotion.com/embed/video/x6xailo). This will mean your link url - if + the JavaScript fails, will open the full screen player (try opening the first link below in a new + tab); the solution to this is to set the lightbox source directly - the second link below does this.
+Robin des Bois (using embed link)
+Robin des bois (with recommended data-remote
setting)
+
This also works with photos: GOtags.co.uk
+
Set the width of the video
-
+
diff --git a/index.html b/index.html
index 1d331bb..300394c 100644
--- a/index.html
+++ b/index.html
@@ -392,21 +392,31 @@ City Lights - from Colin Rich (with reccommended data-remote
setting)
+ You cannot embed Dailymotion videos using the standard url (ie https://dai.ly/x6xailo); you must link + to the embed source (ie https://www.dailymotion.com/embed/video/x6xailo). This will mean your link url - if + the JavaScript fails, will open the full screen player (try opening the first link below in a new + tab); the solution to this is to set the lightbox source directly - the second link below does this.
+Robin des Bois (using embed link)
+Robin des bois (with recommended data-remote
setting)
+
+
Set the width of the video
-