2Dapi; hixie: Make the close box persistent.

2Dapi; hixie: Make the close box persistent.

http://dev.w3.org/cvsweb/html5/2dcontext/Overview.html?r1=1.89&r2=1.90&f=h

===================================================================
RCS file: /sources/public/html5/2dcontext/Overview.html,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- Overview.html 15 Nov 2010 23:48:58 -0000 1.89
+++ Overview.html 16 Nov 2010 00:21:43 -0000 1.90
@@ -465,7 +465,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/2dcontext/') {

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