File: /var/www/html/wpprm/wp-content/themes/ronneby/assets/js/full-screen-video.js
!function(r){"use strict";r(document).ready(function(){if(0==r(".dfd-fullscreen-video-container").length)(a=r('<div class="dfd-fullscreen-video-container"><a href="#close-video" class="fullscreen-video-close"></a></div>')).appendTo("body");else var a=r(".dfd-fullscreen-video-container");r(".dfd-fullscreen-video").each(function(){r(this).find("a").each(function(){var o,e=r(this),i=e.attr("data-video-id"),t=e.attr("data-video-source");if(!i||!t)return!0;switch(t){case"youtube":o=r(['<iframe width="100%" height="100%" src="https://www.youtube.com/embed/',i,'?wmode=opaque&autoplay=1" frameborder="0" class="youtube-video" allowfullscreen></iframe>'].join(""));break;case"vimeo":o=r(['<iframe src="https://player.vimeo.com/video/',i,'?portrait=0&autoplay=1&rel=0" width="100%" height="100%" frameborder="0"></iframe>'].join(""));break;default:return!0}e.on("click",function(e){e.preventDefault(),a.fadeIn("slow"),setTimeout(function(){a.append(o)},300)}),a.find("a.fullscreen-video-close").on("click",function(e){e.preventDefault(),a.fadeOut("slow").find("iframe").remove()})})})})}(jQuery);