0
I know no codes. If anyone can help me. This below is the JS code... it opens in the same tab the video... if you have how to change the code to open in a popup or in new tab, I would appreciate.
$(function() {
var videohtml5 = $('.videoGallery .videohtml5');
var liHeight = $('.videoGallery li').height();
// BLOGGER
videohtml5.click(function() {
var videoID = $(this).attr('data-videoID');
var videos = $('<div class="meuVideo"><center> <video width="100%" controls="controls" autoplay="true" poster="https://i.imgur.com/SoclbRY.png" src="https://www.blogger.com/video-play.mp4?contentId=' + videoID + '" type="video/mp4"></video></center> </div>');
$('.meuVideo, .nowPlaying').remove();
$(this).parents().eq(2).append(videos);
});
// Fechar Videos
$('.close').click(function() {
$('.meuVideo, .nowPlaying').remove();
});
})
You can only do this if the user clicks on something (e.g., a "open video" button), otherwise the browser blocks the popup.
– Sam
friend. this and test link look how it opens.. click on an episode to view http://programptostagem.blogspot.com.br/2017/10/strange-todos-episodios-formato.html
– Andrielson
yes.. but you can change the code above. to open in another window or even in popup
– Andrielson
This link explicitly asks you to turn off the ad block, and that’s why it works, otherwise it would certainly be blocked
– Isac
friend vc be wrong... disabled the gadget. look there again and make the test it runs with ad block on
– Andrielson
I tested it here and it runs with Adblock
– Andrielson
I just tested it and saw the Adblock warning, but now I really don’t see it. It still won’t open in a new tab unless I explicitly turn off Adblock (as I did now to test)
– Isac
friend. I think you’ve got it wrong.. when clicking on the episode it opens in the same tab... I wanted to know if there is a way to open it in another tab when clicked.. and kind when click it open on another..
– Andrielson
and like this code ..
– Andrielson
<div dir="Ltr" style="text-align: left;" trbidi="on"> <a href="https://www.blogger.com/video-play.mp4?contentId=%203906ae6d9485568c" target="_Blank">click here</a></div>
– Andrielson
I just don’t know if it’s possible to do it in the js.. file I don’t know anything about html.. I don’t really know anything about programming
– Andrielson