index.js 284 B

123456789101112
  1. $('.topic-video').on('click', '.icon-play',function() {
  2. var player = new Txp.Player({
  3. containerId: 'videoplayer',
  4. vid: $(this).data('vid')
  5. });
  6. player.on('ready', function() {
  7. $('.videoposter').hide()
  8. $('#videoplayer').show()
  9. })
  10. })