Changeset 1978


Ignore:
Timestamp:
Nov 6, 2012, 6:14:53 AM (7 years ago)
Author:
julian.reschke@…
Message:

add feedback link

Location:
draft-ietf-httpbis-http2/latest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis-http2/latest/draft-ietf-httpbis-http2.html

    r1952 r1978  
    44   <head profile="http://www.w3.org/2006/03/hcard http://dublincore.org/documents/2008/08/04/dc-html/">
    55      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    6       <title>SPDY Protocol</title><style type="text/css" title="Xml2Rfc (sans serif)">
     6      <title>SPDY Protocol</title><script>
     7var buttonsAdded = false;
     8
     9function init() {
     10  var fb = document.createElement("div");
     11  fb.className = "feedback noprint";
     12  fb.setAttribute("onclick", "feedback();");
     13  fb.appendChild(document.createTextNode("feedback"));
     14
     15  var bodyl = document.getElementsByTagName("body");
     16  bodyl.item(0).appendChild(fb);
     17}
     18
     19function feedback() {
     20  toggleButtonsToElementsByName("h1");
     21  toggleButtonsToElementsByName("h2");
     22  toggleButtonsToElementsByName("h3");
     23  toggleButtonsToElementsByName("h4");
     24 
     25  buttonsAdded = !buttonsAdded;
     26}
     27
     28function toggleButtonsToElementsByName(name) {
     29  var list = document.getElementsByTagName(name);
     30  for (var i = 0; i < list.length; i++) {
     31    toggleButton(list.item(i));
     32  }
     33}
     34
     35function toggleButton(node) {
     36  if (! buttonsAdded) {
     37 
     38    // docname
     39    var template = "mailto:ietf-http-wg@w3.org?subject={docname},%20%22{section}%22&body=<{ref}>:";
     40
     41    var id = node.getAttribute("id");
     42    // better id available?
     43    var titlelinks = node.getElementsByTagName("a");
     44    for (var i = 0; i < titlelinks.length; i++) {
     45      var tl = titlelinks.item(i);
     46      if (tl.getAttribute("id")) {
     47        id = tl.getAttribute("id");
     48      }
     49    }
     50
     51    // ref
     52    var ref = window.location.toString();
     53    var hash = ref.indexOf("#");
     54    if (hash != -1) {
     55      ref = ref.substring(0, hash);
     56    }
     57    if (id != "") {
     58      ref += "#" + id;
     59    }
     60   
     61    // docname
     62    var docname = "draft-ietf-httpbis-http2-latest";
     63
     64    // section
     65    var section = node.textContent;
     66    section = section.replace("\u00a0", " ");
     67   
     68    // build URI from template
     69    var uri = template.replace("{docname}", encodeURIComponent(docname));
     70    uri = uri.replace("{section}", encodeURIComponent(section));
     71    uri = uri.replace("{ref}", encodeURIComponent(ref));
     72 
     73    var button = document.createElement("a");
     74    button.className = "fbbutton noprint";
     75    button.setAttribute("href", uri);
     76    button.appendChild(document.createTextNode("send feedback"));
     77    node.appendChild(button);
     78  }
     79  else {
     80    var buttons = node.getElementsByTagName("a");
     81    for (var i = 0; i < buttons.length; i++) {
     82      var b = buttons.item(i);
     83      if (b.className == "fbbutton noprint") {
     84        node.removeChild(b);
     85      }
     86    }
     87  }
     88}</script><style type="text/css" title="Xml2Rfc (sans serif)">
    789a {
    890  text-decoration: none;
     
    239321  background-color: yellow;
    240322}
    241 
     323.feedback {
     324  position: fixed;
     325  bottom: 1%;
     326  right: 1%;
     327  padding: 3px 5px;
     328  color: white;
     329  border-radius: 5px;
     330  background: #a00000;
     331  border: 1px solid silver;
     332}
     333.fbbutton {
     334  margin-left: 1em;
     335  color: #303030;
     336  font-size: small;
     337  font-weight: normal;
     338  background: #d0d000;
     339  padding: 1px 4px;
     340  border: 1px solid silver;
     341  border-radius: 5px;
     342}
    242343
    243344@media print {
     
    283384  }
    284385  @top-right {
    285        content: "October 2012";
     386       content: "November 2012";
    286387  }
    287388  @top-center {
     
    292393  }
    293394  @bottom-center {
    294        content: "Expires April 28, 2013";
     395       content: "Expires May 10, 2013";
    295396  }
    296397  @bottom-right {
     
    332433      <meta name="dct.creator" content="Thomson, M.">
    333434      <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-http2-latest">
    334       <meta name="dct.issued" scheme="ISO8601" content="2012-10-25">
     435      <meta name="dct.issued" scheme="ISO8601" content="2012-11-06">
    335436      <meta name="dct.abstract" content="This document describes SPDY, a protocol designed for low-latency transport of content over the World Wide Web. SPDY introduces two layers of protocol. The lower layer is a general purpose framing layer which can be used atop a reliable transport (likely TCP) for multiplexed, prioritized, and compressed data communication of many concurrent streams. The upper layer of the protocol provides HTTP-like RFC2616 semantics for compatibility with existing HTTP application servers.">
    336437      <meta name="description" content="This document describes SPDY, a protocol designed for low-latency transport of content over the World Wide Web. SPDY introduces two layers of protocol. The lower layer is a general purpose framing layer which can be used atop a reliable transport (likely TCP) for multiplexed, prioritized, and compressed data communication of many concurrent streams. The upper layer of the protocol provides HTTP-like RFC2616 semantics for compatibility with existing HTTP application servers.">
    337438   </head>
    338    <body>
     439   <body onload="init();">
    339440      <table class="header">
    340441         <tbody>
     
    352453            </tr>
    353454            <tr>
    354                <td class="left">Expires: April 28, 2013</td>
     455               <td class="left">Expires: May 10, 2013</td>
    355456               <td class="right">Google, Inc</td>
    356457            </tr>
     
    365466            <tr>
    366467               <td class="left"></td>
    367                <td class="right">October 25, 2012</td>
     468               <td class="right">November 6, 2012</td>
    368469            </tr>
    369470         </tbody>
     
    385486         in progress”.
    386487      </p>
    387       <p>This Internet-Draft will expire on April 28, 2013.</p>
     488      <p>This Internet-Draft will expire on May 10, 2013.</p>
    388489      <h1><a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a></h1>
    389490      <p>Copyright © 2012 IETF Trust and the persons identified as the document authors. All rights reserved.</p>
  • draft-ietf-httpbis-http2/latest/draft-ietf-httpbis-http2.xml

    r1952 r1978  
    1414<?rfc-ext include-references-in-index="yes" ?>
    1515
    16 <rfc ipr="trust200902" docName="draft-ietf-httpbis-http2-latest">
     16<rfc ipr="trust200902" docName="draft-ietf-httpbis-http2-latest" xmlns:x='http://purl.org/net/xml2rfc/ext'>
     17  <x:feedback template="mailto:ietf-http-wg@w3.org?subject={docname},%20%22{section}%22&amp;body=&lt;{ref}&gt;:"/>
    1718  <front>
    1819    <title abbrev="SPDY">SPDY Protocol</title>
Note: See TracChangeset for help on using the changeset viewer.