-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
18 lines (18 loc) · 1.18 KB
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
<head>
<title>Video Popup Example</title>
</head>
<body>
<h1>Simple Video Popup Demo</h1>
<p>Format: VideoPopup(url, size, shouldSkip = false);</p>
<p>url: string - the url to the video. (mp4 only, for now)</p>
<p>size: string - "small", "medium", or "large", or object with width and height values.</p>
<p>shouldSkip: boolean - if the skip button should appear with 5 seconds remaining. (videos less than 5 seconds long will not appear)</p>
<button onclick="VideoPopup('example.mp4', 'small', true)" id='popupvid'>VideoPopup('example.mp4', 'small', true)</button> <br>
<button onclick="VideoPopup('example.mp4', 'medium', false)" id='popupvid'>VideoPopup('example.mp4', 'medium', false)</button> <br>
<button onclick="VideoPopup('example.mp4', {width:100, height:245}, true)" id='popupvid'>VideoPopup('example.mp4', {width:100, height:245}, true)</button> <br>
<button onclick="VideoPopup('example.mp4', {width:260, height:190}, false)" id='popupvid'>VideoPopup('example.mp4', {width:260, height:190}, false)</button> <br>
<script src='video-popup.js'></script>
</body>
</html>