;(function() { const ifw = { tpl: { player: function(videoId) { return ( '
' ) }, }, player: { init: function() { var players = document.querySelectorAll('.ifw-player:not(.expanded)') players.forEach(player => { var videoId = player.getAttribute('data-video-id') player.innerHTML = ifw.tpl.player(videoId) player.className += ' expanded' }) }, }, } ifw.player.init() })()