50
| <![CDATA[<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"cb","theme_token":"8O0pXU38VpfG37XVKb8Xt5gKY1GCOoN2iCjIOWBJ_70","js":{"misc\/jquery.js":1,"misc\/jquery.once.js":1,"misc\/drupal.js":1,"public:\/\/languages\/pt-br_qT3O0QVnb66OYrK-NkBqbC0mnNHIzJUs4B_fM8JDOXs.js":1,"sites\/all\/modules\/custom_search\/js\/custom_search.js":1,"sites\/all\/themes\/cb.bkp\/js\/jquery-2.2.4.min.js":1,"sites\/all\/themes\/cb.bkp\/js\/owl.carousel.min.js":1,"sites\/all\/themes\/cb.bkp\/js\/clappr.min.js":1,"sites\/all\/themes\/cb.bkp\/js\/script.js":1,"sites\/all\/themes\/cb.bkp\/js\/mc-validate.js":1,"sites\/all\/themes\/cb.bkp\/js\/jquery.colorbox.js":1},"css":{"modules\/system\/system.base.css":1,"modules\/system\/system.menus.css":1,"modules\/system\/system.messages.css":1,"modules\/system\/system.theme.css":1,"sites\/all\/modules\/date\/date_api\/date.css":1,"sites\/all\/modules\/date\/date_repeat_field\/date_repeat_field.css":1,"modules\/field\/theme\/field.css":1,"modules\/node\/node.css":1,"modules\/search\/search.css":1,"modules\/user\/user.css":1,"sites\/all\/modules\/views\/css\/views.css":1,"sites\/all\/modules\/ckeditor\/css\/ckeditor.css":1,"sites\/all\/themes\/cb.bkp\/css\/tabs.css":1,"sites\/all\/modules\/ctools\/css\/ctools.css":1,"sites\/all\/modules\/custom_search\/custom_search.css":1,"sites\/all\/themes\/cb.bkp\/css\/style.css":1,"sites\/all\/themes\/cb.bkp\/assets\/owl.carousel.min.css":1,"sites\/all\/themes\/cb.bkp\/assets\/owl.theme.default.min.css":1,"sites\/all\/themes\/cb.bkp\/css\/colorbox.css":1}},"custom_search":{"form_target":"_self","solr":0}});
//--><!]]>
</script>]]>
|
297
| <![CDATA[<script type="text/javascript">
$(document).ready(function() {
$('.openVideo').append('');
$("a[rel=modal]").click( function(ev){
ev.preventDefault();
var id = $(this).attr("href");
var alturaTela = $(document).height();
var larguraTela = $(window).width();
//colocando o fundo preto
$('#mascara').css({'width':larguraTela,'height':alturaTela});
$('#mascara').fadeIn(1000);
$('#mascara').fadeTo("slow",0.8);
var left = ($(window).width() /2) - ( $(id).width() / 2 );
var top = ($(window).height()) - ( $(id).height());
$(id).css({'top':top,'left':left});
$(id).show();
});
$('.fechar').click(function(ev){
ev.preventDefault();
$("#mascara").hide();
$(".window").hide();
$('video')[0].pause();
});
$(window).on("keydown", function(e) {
var key = e.which || e.keyCode || 0;
if (key == 27) {
$("#mascara").hide();
$(".window").hide();
$('video')[0].pause();
}
});
$(".openVideo").click(function() {
$('video')[0].play();
});
var playerElement = document.getElementById("player-wrapper");
var player = new Clappr.Player({
source: 'http://media.bcc.org.br/video/filme/mp4/640x480/019761_640x480.mp4',
mute: false,
autoPlay: false,
width: 640,
height: 390
});
player.attachTo(playerElement);
$('#videoBox').click(function() {
var video = $("#janela1 video");
video.paused ? video.play() : this.pause();
});
});
</script>]]>
|