Skip to content

Instantly share code, notes, and snippets.

@sdesai
Created July 15, 2013 19:34
Show Gist options
  • Save sdesai/6002726 to your computer and use it in GitHub Desktop.
Save sdesai/6002726 to your computer and use it in GitHub Desktop.

Revisions

  1. sdesai renamed this gist Jul 15, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. sdesai created this gist Jul 15, 2013.
    23 changes: 23 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type='text/javascript' src='http://yui.yahooapis.com/3.10.3/build/yui/yui.js'></script>
    <title>Node</title>
    </head>
    <body>
    <div>
    <style scoped>
    #testme.hidden {
    display:none;
    }
    </style>
    <div id="testme" class="hidden">Stuff</div>
    <script>
    YUI({filter:"raw", combine:false}).use("node", function(Y) {
    alert(Y.one("#testme").getComputedStyle("display"));
    });
    </script>
    </div>
    </body>
    </html>