added custom video overlay player to avoid to load all the iframe systematicly

This commit is contained in:
2017-02-11 13:12:11 +01:00
parent 990c5b5edf
commit 786f561936
10 changed files with 173 additions and 60 deletions
@@ -289,8 +289,9 @@ input {
opacity: 1;
background-color: rgba(255, 255, 255, 0.9); }
#DOMWindowOverlay {
background-color: #fff !important; }
#DOMWindow .embedded-video, #DOMWindow .player, #DOMWindow iframe {
width: 100%;
height: 100%; }
#footer-bottom {
text-align: center; }
@@ -360,11 +360,14 @@ body{
}
#DOMWindowOverlay{
background-color: #fff!important;
// background-color: #fff!important;
}
#DOMWindow{
.embedded-video, .player ,iframe{
width:100%;
height:100%;
}
}
#footer{
@@ -1,3 +1,3 @@
Drupal.behaviors.init_theme=function(context){$('#messages-and-help > div.messages:not(.processed)').addClass('processed').each(function(){if($('a',this).size()||$(this).is('.error')||$(this).is('.warning')||$(this).text().length>100){$(this).prepend("<span class='close'>X</span>");$('span.close',this).click(function(){$(this).parent().slideUp('fast');});}
else{$(this).animate({opacity:1},5000,'linear',function(){$(this).slideUp('fast');});}});};
(function($){Drupal.behaviors.init_theme=function(context){$('#messages-and-help > div.messages:not(.processed)').addClass('processed').each(function(){if($('a',this).size()||$(this).is('.error')||$(this).is('.warning')||$(this).text().length>100){$(this).prepend("<span class='close'>X</span>");$('span.close',this).click(function(){$(this).parent().slideUp('fast');});}
else{$(this).animate({opacity:1},5000,'linear',function(){$(this).slideUp('fast');});}});};})(jQuery);
@@ -1,27 +1,29 @@
// @codekit-prepend "gui.js"
(function($) {
Drupal.behaviors.init_theme = function (context) {
// Growl-style system messages
$('#messages-and-help > div.messages:not(.processed)')
.addClass('processed')
.each(function() {
// If a message meets these criteria, we don't autoclose
// - contains a link
// - is an error or warning
// - contains a lenghthy amount of text
if ($('a', this).size() || $(this).is('.error') || $(this).is('.warning') || $(this).text().length > 100) {
$(this).prepend("<span class='close'>X</span>");
$('span.close', this).click(function() {
$(this).parent().slideUp('fast');
});
}
else {
// This essentially adds a 3 second pause before hiding the message.
$(this).animate({opacity:1}, 5000, 'linear', function() {
$(this).slideUp('fast');
});
}
});
};
Drupal.behaviors.init_theme = function (context) {
// Growl-style system messages
$('#messages-and-help > div.messages:not(.processed)')
.addClass('processed')
.each(function() {
// If a message meets these criteria, we don't autoclose
// - contains a link
// - is an error or warning
// - contains a lenghthy amount of text
if ($('a', this).size() || $(this).is('.error') || $(this).is('.warning') || $(this).text().length > 100) {
$(this).prepend("<span class='close'>X</span>");
$('span.close', this).click(function() {
$(this).parent().slideUp('fast');
});
}
else {
// This essentially adds a 3 second pause before hiding the message.
$(this).animate({opacity:1}, 5000, 'linear', function() {
$(this).slideUp('fast');
});
}
});
};
})(jQuery);
@@ -0,0 +1,4 @@
/*
column css
nothing need
*/
@@ -6,7 +6,7 @@
*/
// Plugin definition.
$plugin = array(
'title' => t('Column'),
'title' => t('1 Column clameur'),
'category' => t('Columns: 1'),
'icon' => 'column.png',
'theme' => 'panels_column',