Permalink
Browse files

ref #505, Migrate old amara & universalsubtitle embed codes

  • Loading branch information...
1 parent 5cfd1d1 commit 8632cf43783a07f17238d862488848bf47ad149d @petercpg petercpg committed Dec 10, 2016
Showing with 25 additions and 202 deletions.
  1. +2 −13 contribute/index.shtml
  2. +1 −1 events/code-rush/index.shtml
  3. +5 −39 events/nctuserv2012/index.shtml
  4. +15 −118 events/service2013/index.shtml
  5. +2 −31 mobile/movie.html
@@ -163,19 +163,7 @@ h3.toggle, span.toggle {
</div>
<div id="video">
<iframe width="360" height="200" src="https://www.youtube-nocookie.com/embed/Z7sv7JMMCBI?list=PLOHV-5SHjI8hJTZ6rW-cLmPp7tzgI8bji" frameborder="0" allowfullscreen></iframe>
-<!-- <script type="text/javascript" src="http://s3.www.universalsubtitles.org/embed.js">
- ({
- "base_state": {"language": "zh-tw"},
- "video_url": "https://videos.mozilla.org/serv/brand/Mozilla_Firefox_Manifesto_v0.1.ogv",
- "video_config": {
- click_to_play: true,
- color: 'FF0000',
- poster: "poster-brand.jpg",
- id: "videoPlayer"
- }
- })
- </script>
- -->
+ <!-- <div class="amara-embed" data-initial-language="zh-tw" data-url="https://videos.mozilla.org/serv/brand/Mozilla_Firefox_Manifesto_v0.1.ogv"></div> -->
</div>
</div>
@@ -379,6 +367,7 @@ h3.toggle, span.toggle {
<!--#include virtual="/inc/footer.html" -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="../js/library/jquery-ui-1.7.3.custom.min.js"></script>
+<script type="text/javascript" src='https://amara.org/embedder-iframe'></script>
<script type="text/javascript">
$(function() {
$("#tabs").tabs({ selected: 0 }); //設定預設分頁
@@ -41,7 +41,7 @@
<h2>全片下載</h2>
<ul>
<li><a href="http://clickmovement.org/content/code-rush-download">影片下載</a><p><span class="new">Code Rush 以創用 CC 姓名標示-非商業性-相同方式分享 3.0 授權釋出,專案網址:<a href="http://clickmovement.org/coderush">http://clickmovement.org/coderush</a></span></p></li>
- <li><a href="http://www.universalsubtitles.org/widget/download_srt/?video_id=8kAaTv4LNAcN&lang_pk=322104">字幕下載</a><p>本片字幕由 MozTW 社群製作,歡迎<a onClick="ga('send', 'event', 'Outgoing', 'Amara', 'Code Rush');" href="http://www.universalsubtitles.org/zh-tw/videos/8kAaTv4LNAcN/zh-tw/322104/">至 Amara 協助編修</a>;如有興趣參與未來 Mozilla 相關影片的字幕製作,請參考「<a href="/contribute/">參與我們</a>」。</p></li>
+ <li><a href="http://www.universalsubtitles.org/widget/download_srt/?video_id=8kAaTv4LNAcN&lang_pk=322104">字幕下載</a><p>本片字幕由 MozTW 社群製作,歡迎<a onClick="ga('send', 'event', 'Outgoing', 'Amara', 'Code Rush');" href="http://www.universalsubtitles.org/zh-tw/videos/8kAaTv4LNAcN/zh-tw/322104/">至 Amara 協助編修</a>;如有興趣參與未來 Mozilla 相關影片的字幕製作,請參考「<a href="/contribute/">參與我們</a>」。</p></li>
<ul>
</section>
@@ -25,58 +25,23 @@
<h3>自訂、個性化、威力增強<span class="appendix">darkx</span></h3>
<div class="video">
- <script type="text/javascript" src="http://s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "zh-tw"},
- "video_url": "http://videos-cdn.mozilla.net/serv/marketing/696470/FF%20576%20h264%20v6.webm",
- "alternate_video_urls": ["https://www.youtube.com/watch?v=gZWU2estR10"],
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="http://www.youtube.com/watch?v=gZWU2estR10"></div>
</div>
<h3>Add-on Builder &amp; Add-on SDK 簡介<span class="appendix">darkx</span></h3>
<div class="video">
- <script type="text/javascript" src="http://s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "zh-tw"},
- "video_url": "http://videos-cdn.mozilla.net/serv/marketing/Firefox5/AddOnsBuilderOverview.webm",
- "alternate_video_urls": ["https://www.youtube.com/watch?v=EaoEdoxmJek"],
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="http://www.youtube.com/watch?v=EaoEdoxmJek"></div>
</div>
<h3>Add-on Builder 教學<span class="appendix">a9103041 &amp; huichun</span></h3>
<div class="video">
- <script type="text/javascript" src="http://s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "zh-tw"},
- "video_url": "http://videos-cdn.mozilla.net/serv/marketing/Firefox5/AddOnsBuilderTutorial.webm",
- "alternate_video_urls": ["http://www.youtube.com/watch?v=DAl0tOYDHxg"],
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="http://www.youtube.com/watch?v=DAl0tOYDHxg"></div>
</div>
<h3>History Of Mozilla Mitchell Baker<span class="appendix">黃健豪</span></h3>
<p>註:字幕包含影片前十分鐘部分</p>
<div class="video">
- <script type="text/javascript" src="http://s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "zh-tw"},
- "video_url": "http://www.youtube.com/watch?v=UDFVBleAC-E",
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="http://www.youtube.com/watch?v=UDFVBleAC-E"></div>
</div>
</section>
@@ -141,4 +106,5 @@
</section>
</div>
+<script type="text/javascript" src='https://amara.org/embedder-iframe'></script>
<!--#include virtual="/inc/footer.html" -->
@@ -25,175 +25,71 @@
<h3>Firefox Marketplace 夥伴:Evernote<span class="appendix">蘇士傑</span></h3>
<div class="video">
- <script src="//s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "zh-tw"},
- "video_url": "https://www.youtube.com/watch?v=qf0SNKwZ_SY",
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="https://www.youtube.com/watch?v=qf0SNKwZ_SY"></div>
</div>
<h3>Firefox Marketplace 夥伴:box<span class="appendix">張峯銘</span></h3>
<div class="video">
- <script src="//s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "zh-tw"},
- "video_url": "https://www.youtube.com/watch?v=zr6NA_O8E3Q",
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="https://www.youtube.com/watch?v=zr6NA_O8E3Q"></div>
</div>
<h3>網路無障礙 @ Mozilla:簡介<span class="appendix">陳炫樺</span></h3>
<div class="video">
- <script src="//s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "zh-tw"},
- "video_url": "https://www.youtube.com/watch?v=GmnHY6vNeQM",
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="https://www.youtube.com/watch?v=GmnHY6vNeQM"></div>
</div>
<h3>Firefox OS 展示<span class="appendix">薛煜霖、周鼎鈞、黃思誼</span></h3>
<div class="video">
- <script src="//s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "zh-tw"},
- "video_url": "https://www.youtube.com/watch?v=-9vktI70iHc",
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="https://www.youtube.com/watch?v=-9vktI70iHc"></div>
</div>
<h3>History Of Mozilla By Mitchell Baker<span class="appendix">胡乃元、宋俊德、余睿洋、吳長恩、陳學呈</span></h3>
<p>胡乃元、宋俊德和余睿洋同學完成 10 - 15 分</p>
<p>吳長恩同學完成 15 - 20 分,陳學呈同學完成 20 - 25 分</p>
<div class="video">
- <script src="//s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "zh-tw"},
- "video_url": "https://www.youtube.com/watch?v=UDFVBleAC-E",
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="https://www.youtube.com/watch?v=UDFVBleAC-E"></div>
</div>
<h3>參與 Mozilla - 小技巧<span class="appendix">趙守恩</span></h3>
<div class="video">
- <script src="//s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "zh-tw"},
- "video_url": "https://www.youtube.com/watch?v=zp-M73Cju7g",
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="https://www.youtube.com/watch?v=zp-M73Cju7g"></div>
</div>
<h3>Who's tracking you online? Find out with Mozilla's Collusion<span class="appendix">李宜霖</span></h3>
<p>英文字幕</p>
<div class="video">
- <script src="//s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "en-US"},
- "video_url": "https://www.youtube.com/watch?v=_ckCpKeAHMk",
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="en" data-url="https://www.youtube.com/watch?v=_ckCpKeAHMk"></div>
</div>
<h3>Firefox Developer Command Line<span class="appendix">李宜霖</span></h3>
<p>英文字幕</p>
<div class="video">
- <script src="//s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "en-US"},
- "video_url": "https://www.youtube.com/watch?v=YwOwJ1_JaKE",
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="en" data-url="https://www.youtube.com/watch?v=YwOwJ1_JaKE"></div>
</div>
<h3>Firefox 分頁群組<span class="appendix">吳柏諺</span></h3>
<div class="video">
- <script src="//s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "zh-tw"},
- "video_url": "https://www.youtube.com/watch?v=5r0TQJ-gGi0",
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="https://www.youtube.com/watch?v=5r0TQJ-gGi0"></div>
</div>
<h3>Firefox 的用戶研究 — 來自 Test Pilot 團隊的 Jinghua 與 Jono<span class="appendix">吳柏諺</span></h3>
<div class="video">
- <script src="//s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "zh-tw"},
- "video_url": "https://vimeo.com/12373225",
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="https://vimeo.com/12373225"></div>
</div>
<h3>Firefox Flicks 2013<span class="appendix">吳柏諺</span></h3>
<div class="video">
- <script src="//s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "zh-tw"},
- "video_url": "https://vimeo.com/57743653",
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="https://vimeo.com/57743653"></div>
</div>
<h3>Firefox 隱私瀏覽視窗<span class="appendix">吳柏諺</span></h3>
<div class="video">
- <script src="//s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "zh-tw"},
- "video_url": "https://www.youtube.com/watch?v=7EQHYcs8sl0",
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="https://www.youtube.com/watch?v=7EQHYcs8sl0"></div>
</div>
<h3>Mozilla 貢獻者群像: Chit Thiri Maung<span class="appendix">吳柏諺</span></h3>
<div class="video">
- <script src="//s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
- (
- {
- "base_state": {"language": "zh-tw"},
- "video_url": "//videos-cdn.mozilla.net/serv/drafts/Contributorstory1.webm",
- "video_config": { width: 640, height: 360 }
- }
- )
- </script>
+ <div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="//videos-cdn.mozilla.net/serv/drafts/Contributorstory1.webm"></div>
</div>
</section>
@@ -232,12 +128,13 @@ http://mozlinks.moztw.org/2013/03/firefox.html">Firefox 小秘笈:三種方法
<section id="sponsership">
<h2>合作單位</h2>
- <a title="OSSACC 教育部校園自由軟體數位資源推廣服務中心" href="//ossacc.moe.edu.tw/">
+ <a title="OSSACC 教育部校園自由軟體數位資源推廣服務中心" href="htto://ossacc.moe.edu.tw/">
<img src="logo.gif" alt="">
<img src="logo2.gif" alt="">
</a>
</section>
</div>
+ <script type="text/javascript" src='https://amara.org/embedder-iframe'></script>
<!--#include virtual="/inc/footer.html" -->
View
@@ -20,36 +20,7 @@
</head>
<body>
-<script type="text/javascript" src="http://s3.www.universalsubtitles.org/embed.js">
-({
- base_state: { language: "zh-tw"},
- video_url: "https://www.youtube.com/watch?v=uKqyxhEUrBg",
- video_config: {
- rel: 0,
- showinfo: 0,
- width: 640,
- height: 360
- },
- alternate_video_urls: [{
- url: "New_Firefox_for_Android_update_overview.webm",
- config: {
- poster: "images/FirefoxForAndroidUpdateOverview.png",
- click_to_play: true,
- width: 640,
- height: 360
- }
- },
- {
- url: "New_Firefox_for_Android_update_overview.mp4",
- config: {
- poster: "images/FirefoxForAndroidUpdateOverview.png",
- click_to_play: true,
- width: 640,
- height: 360
- }
- }]
-})
-</script>
-
+<div class="amara-embed" data-height="360px" data-width="640px" data-initial-language="zh-tw" data-url="http://www.youtube.com/watch?v=uKqyxhEUrBg"></div>
+<script type="text/javascript" src='https://amara.org/embedder-iframe'></script>
</body>
</html>

0 comments on commit 8632cf4

Please sign in to comment.