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
The script prevents all files from being downloaded from yotube while the page is loading. Only by clicking on the appropriate movie, you recharge the necessary codes to display the movie. It's also possible to put a movie on a layer and a few other options to control the appearance - all info below.
15
+
</p>
16
+
17
17
<palign="center">
18
18
<imgsrc="static/01.png">
19
19
</p>
@@ -39,17 +39,17 @@ See the demo - [example](https://tomik23.github.io/lazy-youtube/)
-**"id": "TUIbj4mviXU"** - id is the id of the movie you can find it in every youtube link
52
-
-**"local": true** - parameter that tells the library that the movie should play in the same div as the thumbnail, not in the lightbox
52
+
-**"local": true** - parameter that tells the library that the movie should play in the same div as the thumbnail, not in the lightbox, default: true for all videos
53
53
-**"maxWidth": 50** - the video opens to the given width, it is a percentage, in this example 50%, if there is no number then the video opens to the whole window - 100%. You can also set a global `maxWidth` for all videos that open in the lightbox. Just add the same `maxWidth: 80` parameter to option, see the example below
54
54
-**"openIn"** - this parameter allows you to display a button which, when clicked, directly opens the youtube page with the movie. For full functionality you need the corresponding parameter also added to js, see below `createWatchIn: () => {}`
55
55
-**"title"** - the title of the video, it is displayed top of container`
@@ -59,8 +59,8 @@ See the demo - [example](https://tomik23.github.io/lazy-youtube/)
0 commit comments