فهرست منبع

change the way the youtube player is embedded, upgrade jquery

raylu 14 سال پیش
والد
کامیت
b526438feb
1فایلهای تغییر یافته به همراه3 افزوده شده و 5 حذف شده
  1. 3 5
      templates/p.html

+ 3 - 5
templates/p.html

@@ -18,16 +18,14 @@
 </header>
 <article>
 </article>
-{{$first := "82KEVKGRAhI"}}
 <script>
 	var pid = '{{.Id}}';
 </script>
-<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
+<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
 <script src="/static/script.js"></script>
-<object data="http://www.youtube.com/v/{{$first}}?version=3&amp;enablejsapi=1" id="player" width="1" height="1" type="application/x-shockwave-flash">
-	<param name="movie" value="http://www.youtube.com/v/{{$first}}?version=3&amp;enablejsapi=1">
+{{$youtube := "http://www.youtube.com/e/82KEVKGRAhI?version=3&amp;enablejsapi=1&amp;rel=0&amp;controls=0&amp;disablekb=1&amp;showinfo=0"}}
+<object data="{{$youtube}}" id="player" width="1" height="1" type="application/x-shockwave-flash">
 	<param name="allowScriptAccess" value="always">
-	<embed src="http://www.youtube.com/v/{{$first}}?version=3&amp;enablejsapi=1" allowScriptAccess="always">
 </object>
 
 {{template "footer.html"}}