Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HTML
<script>
// Add video link to page to show only when printed
$( document ).ready(function() {
	$("iframe").each(function() {
		var videoLink = $(this).attr("src");
		videoLink = videoLink.replace("?rel=0","");
		videoLink = videoLink.replace("?seo=false&videoFoam=true","");
		if ((videoLink.lastIndexOf("youtube")!=-1)||(videoLink.lastIndexOf("wistia")!=-1)) {
			$(this).parent().parent().append("<div class='videoLinkPrintOnly' style='display:none;'>	<strong>Video link: </strong>"+videoLink+"</div>");
		}
	});
});
</script>

...