[html5] r3312 - [e] (0) Add a UI to hide or highlight the UA text.

whatwg at whatwg.org whatwg at whatwg.org
Wed Jun 24 00:01:19 PDT 2009


Author: ianh
Date: 2009-06-24 00:01:18 -0700 (Wed, 24 Jun 2009)
New Revision: 3312

Modified:
   index
Log:
[e] (0) Add a UI to hide or highlight the UA text.

Modified: index
===================================================================
--- index	2009-06-24 05:52:06 UTC (rev 3311)
+++ index	2009-06-24 07:01:18 UTC (rev 3312)
@@ -9,8 +9,10 @@
    .applies th > * { display: block; white-space: nowrap; }
    #updatesStatus { display: none; }
    #updatesStatus.relevant { display: block; position: fixed; right: 1em; top: 1em; padding: 0.5em; font: bold small sans-serif; min-width: 25em; width: 30%; max-width: 40em; height: auto; border: ridge 4px gray; background: #EEEEEE; color: black; }
-   #configUI { position: absolute; z-index: 20; top: 10em; right: 1em; width: 11em; font-size: small; text-align: center; }
-   #configUI p { padding: 0.3em; background: #EEEEEE; color: black; border: inset thin; }
+   #configUI { position: absolute; z-index: 20; top: 10em; right: 1em; width: 11em; font-size: small; }
+   #configUI p { margin: 0.5em 0; padding: 0.3em; background: #EEEEEE; color: black; border: inset thin; }
+   #configUI p label { display: block; }
+   #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
    @media print { #configUI { display: none; } }
    .rfc2119 { font-variant: small-caps; text-shadow: 0 0 0.5em yellow; position: static; }
@@ -18,11 +20,28 @@
    .rfc2119.m\ust::after { content: '\2605'; }
    .rfc2119.s\hould::after { content: '\2606'; }
    [hidden] { display: none; }
-  </style><link href=data:text/css, rel=stylesheet title="Complete specification"><link href=data:text/css,.impl%20{%20display:%20none;%20} rel="alternate stylesheet" title="Author documentation only"><link href=data:text/css,.impl%20{%20background:%20%23FFEEEE;%20} rel="alternate stylesheet" title="Highlight implementation requirements"><link href=status.css rel=stylesheet><script>
+  </style><link href=data:text/css, id=complete rel=stylesheet title="Complete specification"><link href=data:text/css,.impl%20{%20display:%20none;%20} id=author rel="alternate stylesheet" title="Author documentation only"><link href=data:text/css,.impl%20{%20background:%20%23FFEEEE;%20} id=highlight rel="alternate stylesheet" title="Highlight implementation requirements"><link href=status.css rel=stylesheet><script>
    var loadTimer = new Date();
    var current_revision = "r" + "$Revision$".substr(11);
    current_revision = current_revision.substr(0, current_revision.length - 2);
    var last_known_revision = current_revision;
+   function getCookie(name) {
+     var params = location.search.substr(1).split("&");
+     for (var index = 0; index < params.length; index++) {
+       if (params[index] == name)
+         return "1";
+       var data = params[index].split("=");
+       if (data[0] == name)
+         return unescape(data[1]);
+     }
+     var cookies = document.cookie.split("; ");
+     for (var index = 0; index < cookies.length; index++) {
+       var data = cookies[index].split("=");
+       if (data[0] == name)
+         return unescape(data[1]);
+     }
+     return null;
+   }
    function load(script) {
      var e = document.createElement('script');
      e.setAttribute('src', script);
@@ -31,11 +50,12 @@
    function init() {
      if (location.search == '?slow-browser')
        return;
-     load('status.js');
-     load('dfn.js');
      load('toc.js');
+     load('styler.js');
      load('updater.js');
-     if (location.search == '?profile')
+     load('dfn.js');
+     load('status.js');
+     if (getCookie('profile') == '1')
        document.getElementsByTagName('h2')[0].textContent += '; load: ' + (new Date() - loadTimer) + 'ms';
    }
   </script><body class=draft onload=init()>




More information about the Commit-Watchers mailing list