a.prompt:hover { text-decoration: none; position: relative; border: 2px solid #F24E53; background: #fff; color:#F24E53;}
.user-not-authenticated a.prompt { display: inline-block;}
-.video-thumb { border:2px dashed #3582AC; overflow: hidden; height: 282px; position: relative;}
+.video-thumb { border:2px dashed #3582AC; overflow: hidden; height: 282px; position: relative; margin-bottom: 1em}
.video-thumb .play { position: absolute; top:0; left:0; height: 100%;width: 100%; display: block; background:url(../images/play-off.png) no-repeat center center; text-indent: -1000px }
-.video-thumb .play:hover { background-image: url(../images/play-on.png); text-decoration: none;}
\ No newline at end of file
+.video-thumb .play:hover { background-image: url(../images/play-on.png); text-decoration: none;}
+#stop-youtube { font-weight: bold; font-size:20px; display: block; visibility: hidden; text-align: right;color:#3582AC;}
+#stop-youtube:hover { text-decoration: none; color:#F89A1C; }
this.videoEl = this.wrapper.find('.player-placeholder');
this.currwidth = this.wrapper.width();
this.currheight = parseInt(458* (this.currwidth/816));
+ this.close = $('#stop-youtube');
var self = this;
this.player = new YT.Player(this.videoEl[0], {
height: self.currheight,
width: self.currwidth,
playerVars: { 'modestbranding':1},
- videoId: options.youtube_id,
- suggestedQuality: 'hd1080',
+ videoId: options.youtube_id,
events: {
'onStateChange': function(event) {
if ( event.data == YT.PlayerState.ENDED ) {
self.wrapper.animate({
height: self.currheight
},1000, function(){
+ self.close.css('visibility','visible');
self.link.hide();
- self.player.setPlaybackQuality('hd1080');
+ self.player.setPlaybackQuality('hd720');
self.player.playVideo();
})
});
- $('.stop-youtube').click(function(e){
+ this.close.click(function(e){
e.preventDefault();
self.endEvents();
})
YouTube.prototype.endEvents = function() {
var self = this;
-
+ self.close.css('visibility','hidden');
self.image.fadeIn({duration:1500,easing:'easeOutCirc'});
- $(self.player.a).show().fadeIn({duration:1500,easing:'easeOutCirc'});
- self.wrapper.animate({
- height:'282'
- },1000, function(){
- self.link.show();
+ $(self.player.a).show().fadeIn({duration:1500,easing:'easeOutCirc'});
+ self.wrapper.animate({
+ height:'282'
+ },1000, function(){
+ self.link.show();
})
}
<div class="stats-block">
<h2 style="color:{{ content.color }}">{{ content.title }}</h2>
- <ul>
+ <ul class="clearfix">
{% if content.running_vms %}
<li class="running_vms"><em>{{ content.title_running_vms }}</em><span>0</span></li>
{% endif %}
<li class="active_networks"><em>{{ content.title_active_networks }}</em><span>0</span></li>
{% endif %}
-
</ul>
<script>
var stats_settings = {