- From: CVS User pjgenste <cvsmail@w3.org>
- Date: Fri, 17 Oct 2014 12:14:47 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/webvtt In directory roscoe:/tmp/cvs-serv757 Modified Files: webvtt-staged-snapshot.html Log Message: Sync WebVTT with Git commit 41a33a8acb901d9b38564045958bcacca97ef5e5 --- /sources/public/html5/webvtt/webvtt-staged-snapshot.html 2014/10/16 14:08:54 1.4 +++ /sources/public/html5/webvtt/webvtt-staged-snapshot.html 2014/10/17 12:14:47 1.5 @@ -5,10 +5,29 @@ <meta charset="utf-8"> - <!-- script to register bugs --> - <script src="https://dvcs.w3.org/hg/webcomponents/raw-file/tip/assets/scripts/bug-assist.js"></script> - <meta name="bug.product" content="TextTracks CG"> - <meta name="bug.component" content="WebVTT"> + + <script> + document.addEventListener("DOMContentLoaded", function() { + var bugUi = document.getElementById("bug-ui"); + var bugLink = bugUi.getElementsByTagName("a")[0]; + if (window.respecConfig) { + // Building with ReSpec. Forward the new bug URL from config. + bugLink.href = respecConfig.bugTracker.new; + } else { + // Static spec. Set up click handler and show UI. + bugLink.addEventListener("click", function(event) { + var bugUrl = bugLink.href; + var selectedText = getSelection().toString(); + if (selectedText) { + bugUrl += "&comment=" + encodeURIComponent('"' + selectedText + '"'); + } + open(bugUrl); + event.preventDefault(); + }, false); + bugUi.removeAttribute("hidden"); + } + }, false); + </script> <script class="snapshot"> document.addEventListener("DOMContentLoaded", function() { if (window.respecConfig) { @@ -20,7 +39,7 @@ } } } else { - // Static snapshot. Show the note if it hasn't already been dismissed. + // Static snapshot. Show the note if it hasn't already been dismissed. var snapshot = document.body.getElementsByClassName("snapshot")[0]; var button = snapshot.getElementsByTagName("button")[0]; button.addEventListener("click", function() { @@ -34,7 +53,6 @@ } }, false); </script> - <meta name="bug.bug_file_loc" content="http://www.w3.org/TR/webvtt1/"> <style> body { line-height: 1.35; @@ -122,21 +140,29 @@ margin-bottom: 0.25em; clear: left; } - /* fix bug entry form styling */ - #bug-assist-form { - padding: 4px; - border: 1px solid red; - background-color: rgba(255, 255, 255, 0.6); + #bug-ui { position: fixed; top: 1em; right: 1em; - width: 115px; - opacity: 0.8; + background: #fbe9e9; + border-left: .5em solid #e05252; text-align: right; } - /* move respec button out of the way of the bug button */ - #respec-ui{ - top: 100px !important; + #bug-ui p { + margin: 1em; + } + #bug-ui p a { + color: inherit; + } + #bug-ui button { + background: none; + border: none; + cursor: pointer; + font-family: inherit; + font-size: inherit; + margin: 0; + padding: 0; + text-decoration: underline; } </style> <style class="snapshot"> @@ -150,6 +176,9 @@ text-align: center; z-index: 2; } + .snapshot a { + color: inherit; + } </style> <style>/***************************************************************** * ReSpec 3 CSS @@ -316,11 +345,11 @@ </p> <h1 class="title p-name" id="title">WebVTT: The Web Video Text Tracks Format</h1> - <h2 id="w3c-first-public-working-draft-16-october-2014"><abbr title="World Wide Web Consortium">W3C</abbr> First Public Working Draft <time class="dt-published" datetime="2014-10-16">16 October 2014</time></h2> + <h2 id="w3c-first-public-working-draft-17-october-2014"><abbr title="World Wide Web Consortium">W3C</abbr> First Public Working Draft <time class="dt-published" datetime="2014-10-17">17 October 2014</time></h2> <dl> <dt>This version:</dt> - <dd><a class="u-url" href="http://www.w3.org/TR/2014/WD-webvtt1-20141016/">http://www.w3.org/TR/2014/WD-webvtt1-20141016/</a></dd> + <dd><a class="u-url" href="http://www.w3.org/TR/2014/WD-webvtt1-20141017/">http://www.w3.org/TR/2014/WD-webvtt1-20141017/</a></dd> <dt>Latest published version:</dt> <dd><a href="http://www.w3.org/TR/webvtt1/">http://www.w3.org/TR/webvtt1/</a></dd> @@ -391,9 +420,7 @@ <hr> </div> <div class="snapshot" hidden=""> - <p>This is a snapshot! For the latest updates, possibly including important bug fixes, please - look at the <a href="http://dev.w3.org/html5/webvtt/">editor's draft</a> instead. - <button>Dismiss</button></p> + <p>For the latest updates, possibly including important bug fixes, please look at the <a href="http://dev.w3.org/html5/webvtt/">editor's draft</a> instead. <button>Dismiss</button></p> </div> <section id="abstract" class="introductory"><h2 role="heading" id="h2_abstract">Abstract</h2> @@ -5934,6 +5961,10 @@ </section> + <div id="bug-ui" hidden=""> + <p>See a problem?<br>Select text and <a target="_blank" href="http://www.w3.org/Bugs/Public/enter_bug.cgi?product=TextTracks%20CG&amp;component=WebVTT&amp;bug_file_loc=http%3A%2F%2Fwww.w3.org%2FTR%2Fwebvtt1%2F">file a bug</a>!</p> + </div> + -<form id="bug-assist-form" action="//www.w3.org/Bugs/Public/enter_bug.cgi" target="_blank">See a problem? Select text and <input type="submit" accesskey="f" style="font-family: Tahoma, sans-serif; font-size: 10px; " value="file a bug"><input type="hidden" name="comment" value=""><input type="hidden" name="product" value="TextTracks CG"><input type="hidden" name="component" value="WebVTT"><input type="hidden" name="bug_file_loc" value="http://www.w3.org/TR/webvtt1/">.</form></body></html> \ No newline at end of file +</body></html> \ No newline at end of file
Received on Friday, 17 October 2014 12:14:48 UTC