JS code is not clickable on mobile devices

Asked

Viewed 38 times

0

This JS code is not clickable on mobile devices. only on desktop. Could someone help me:

test blogger https://programarpostagem.blogspot.com.br/2017/10/strange-todos-os-episodios-formato.html

codigo js

$(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>';

    // Abro uma janela popup
    video_popup = window.open("pagina_da_popup.html","video_popup","width=400, height=200");

    $('.meuVideo, .nowPlaying').remove();

    // Insiro os dados na popup
    video_popup.document.write(videos);

  });

  // Fechar Videos
  $('.close').click(function() {
    $('.meuVideo, .nowPlaying').remove();
  });

})
  • It is possible that the path is not being interpreted by the mobile browser with the same accuracy as the PC browser, you would have to implement an ID instead of the object-related class. [exe: #meuvideoXPTO]

  • friend. I do not understand anything of programming . I know only a basic of the basic..

  • if you can edit the code I’ll be grateful

  • someone to help..

  • which vc plugin is using to display the video?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.