You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-6Lines changed: 17 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Turn any element into a lightbox or popover link for Youtube and Vimeo videos.
6
6
### MAJOR BUG IN (3.0.0 - 3.0.2)
7
7
If you are using these versions you will be unable to initialize on elements specified by id rather than a class.
8
8
9
-
**Corrected in version 3.0.3**, so upgrading is highly recommended.
9
+
**Corrected in version 3.0.3+ **, so upgrading is highly recommended.
10
10
11
11
### 3.0 is a significant update (complete re-write).
12
12
Some things have changed, though the only real non-backward compatible change is a couple updated defaults.
@@ -107,7 +107,9 @@ Alternatively, for a simple setup you could initialize on a class, set your opti
107
107
```
108
108
109
109
### Passing in Options
110
-
Options can be passed in any of three ways. They can be passed as attributes off the element object:
110
+
Options can be passed in any of the following three ways.
111
+
112
+
#### Options as attributes off the element object (local to element):
111
113
112
114
```javascript
113
115
videoLightning({
@@ -123,7 +125,7 @@ videoLightning({
123
125
});
124
126
```
125
127
126
-
They can be passed as attributes of the `setting` object (doesn't apply to jQuery style init):
128
+
#### Options as attributes of the `setting` object (global, overwritten by local, doesn't apply to jQuery style init):
127
129
128
130
```javascript
129
131
videoLightning({
@@ -142,9 +144,14 @@ videoLightning({
142
144
});
143
145
```
144
146
145
-
Or they can be passed as data attributes: *(Note that data attributes are all prefixed with `data-video` and camel cased options should be dashed instead in data attributes. So `startTime` becomes `data-video-start-time`)*
147
+
#### Options as data attributes:
148
+
149
+
*(Note that data attributes are all prefixed with `data-video` and camel cased options should be dashed instead in data attributes. So `startTime` becomes `data-video-start-time`)*
150
+
151
+
*IE<10 does not support `dataset` and as such the only backported settings that work with older IE versions are `id`, `width`, and `height`*
0 commit comments