changeset 56:62faaba01dd2

fix naml "Watch a video" link
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 18 Oct 2021 20:36:25 -0600
parents 11e847f25845
children d5ee58e3abe5
files src/nabble/view/naml/macro_viewer.naml
diffstat 1 files changed, 1 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/src/nabble/view/naml/macro_viewer.naml	Wed Jul 07 11:12:00 2021 -0600
+++ b/src/nabble/view/naml/macro_viewer.naml	Mon Oct 18 20:36:25 2021 -0600
@@ -18,17 +18,6 @@
 </macro>
 
 <macro name="macro_viewer_header" dot_parameter="text">
-	<n.put_in_head.>
-		<script type="text/javascript">
-			function openVideo() {
-				$('#demo-video').slideDown();
-			};
-			function closeVideo() {
-				$('#demo-video').slideUp();
-			};
-		</script>
-	</n.put_in_head.>
-
 	<div style="clear:both;padding-top:1em">
 		<div style="float:left;margin-top:1.1em">
 			<n.macro_options_dropdown/>
@@ -44,15 +33,7 @@
 </macro>
 
 <macro name="naml_video_link">
-	<a href="#" onclick="openVideo()">Watch a video</a>
-	<div id="demo-video" style="display:none;text-align:center;position:fixed;z-index:1001;width:100%;top:3em">
-		<div class="shaded-bg-color rounded drop-shadow" style="width:450px;height:400px;margin:0 auto;text-align:center">
-			<div style="text-align:right;padding:.3em .9em">
-				<a href="#" onclick="closeVideo()"><t>Close</t></a>
-			</div>
-			<iframe width="425" height="349" src="http://www.youtube.com/embed/06hd0keRN80" frameborder="0" allowfullscreen="true"></iframe>
-		</div>
-	</div>
+	<a href="https://youtu.be/06hd0keRN80">Watch a video</a>
 </macro>
 
 <macro name="macro_viewer" requires="servlet">