forked from pupunzi/jquery.mb.YTPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo_domElement.html
80 lines (72 loc) · 3.07 KB
/
demo_domElement.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<!--
~ /*******************************************************************************
~ jquery.mb.components
~ file: demo_domElement.html
~
~ Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
~ Open lab srl, Firenze - Italy
~ email: [email protected]
~ site: http://pupunzi.com
~ blog: http://pupunzi.open-lab.com
~ http://open-lab.com
~
~ Licences: MIT, GPL
~ http://www.opensource.org/licenses/mit-license.php
~ http://www.gnu.org/licenses/gpl.html
~
~ last modified: 02/04/14 22.14
~ ******************************************************************************/
-->
<html>
<head>
<meta charset="UTF-8">
<title>youtube Chromeless Player - mb.YTPlayer</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.js"></script>
<script type="text/javascript" src="inc/jquery.mb.YTPlayer.js"></script>
<link href="css/YTPlayer.css" media="all" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Lekton' rel='stylesheet' type='text/css'>
<style>
body{
border:none;
margin:0;
padding:30px;
background: #e4a51b;
font:normal 16px/20px Lekton, sans-serif;
}
#testText{
position: absolute;
font-size: 45px;
line-height: 45px;
color: #ffffff;
width: 400px;
height: 70px;
top:50%;
left: 50%;
margin-top: -35px;
margin-left: -200px;
}
</style>
<script>
jQuery(function(){
if (self.location.href == top.location.href){
var logo=$("<a href='http://pupunzi.com/#mb.components/components.html' style='position:absolute;top:0;z-index:1000'><img id='logo' border='0' src='http://pupunzi.com/images/logo.png' alt='mb.ideas.repository'></a>");
$("#wrapper").prepend(logo);
$("#logo").fadeIn();
}
jQuery(".player").mb_YTPlayer();
});
</script>
</head>
<body>
<div id="wrapper" style="position:relative; padding:30px 20px;z-index:10">
<h1 style="color:white"> jQuery.mb.YTPlayer </h1>
<h2 style="color:white"> A Background HTML5 player for YouTube videos</h2>
<div id="customElement" style="width: 100%; height: 300px; background: red;">
<div id="testText">this is a text</div>
</div>
</div>
<a id="video" class="player" data-property="{videoURL:'7SnmCUwOsts',containment:'#customElement', showControls:true, autoPlay:true, loop:true, mute:true, startAt:0, opacity:1, addRaster:false, quality:'default'}">My video</a> <!--BsekcY04xvQ-->
<a style="position: fixed;top:20px;right: 20px;" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=V6ZS8JPMZC446&lc=GB&item_name=mb%2eideas&item_number=MBIDEAS&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted"><img border="0" alt="PayPal" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG_global.gif" class="alignright"></a>
</body>
</html>