- From: CVS User pjgenste <cvsmail@w3.org>
- Date: Fri, 17 Oct 2014 03:11:35 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/webvtt In directory roscoe:/tmp/cvs-serv28237 Modified Files: Overview.html Log Message: Sync WebVTT with Git commit 5af4ce51d8f08c34c7fd1cc71ac00d12008857db --- /sources/public/html5/webvtt/Overview.html 2014/10/17 03:06:56 1.187 +++ /sources/public/html5/webvtt/Overview.html 2014/10/17 03:11:34 1.188 @@ -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> <style> body { line-height: 1.35; @@ -96,21 +115,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>/***************************************************************** @@ -289,7 +316,7 @@ <dt>Bug tracker:</dt> - <dd><a href="http://www.w3.org/Bugs/Public/enter_bug.cgi?product=TextTracks%20CG&component=WebVTT">file a bug</a> (<a href="http://www.w3.org/Bugs/Public/buglist.cgi?product=TextTracks%20CG&component=WebVTT&resolution=---">open bugs</a>)</dd> + <dd><a href="http://www.w3.org/Bugs/Public/enter_bug.cgi?product=TextTracks%20CG&component=WebVTT&bug_file_loc=http%3A%2F%2Fdev.w3.org%2Fhtml5%2Fwebvtt%2F">file a bug</a> (<a href="http://www.w3.org/Bugs/Public/buglist.cgi?product=TextTracks%20CG&component=WebVTT&resolution=---">open bugs</a>)</dd> @@ -5818,6 +5845,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%2Fdev.w3.org%2Fhtml5%2Fwebvtt%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">.</form></body></html> \ No newline at end of file +</body></html> \ No newline at end of file
Received on Friday, 17 October 2014 03:11:36 UTC