microdata; hixie: Make the close box persistent.

microdata; hixie: Make the close box persistent.

http://dev.w3.org/cvsweb/html5/md/Overview.html?r1=1.104&r2=1.105&f=h

===================================================================
RCS file: /sources/public/html5/md/Overview.html,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -d -r1.104 -r1.105
--- Overview.html 15 Nov 2010 23:48:54 -0000 1.104
+++ Overview.html 16 Nov 2010 00:21:39 -0000 1.105
@@ -464,7 +464,12 @@
   <script type="text/javascript">
    function closeWarning(element) {
      element.parentNode.removeChild(element);
+     var date = new Date();
+     date.setDate(date.getDate()+4);
+     document.cookie = 'hide-obsolescence-warning=1; expires=' + date.toGMTString();
    }
+   if (getCookie('hide-obsolescence-warning') == '1')
+     setTimeout(function () { document.getElementById('wip').parentNode.removeChild(document.getElementById('wip')); }, 2000);
   </script><!--
   <script type="text/javascript">
    if (location == 'http://dev.w3.org/html5/md/') {

Received on Tuesday, 16 November 2010 00:22:22 UTC