Skip to content

Instantly share code, notes, and snippets.

@triptych
Forked from apipkin/gist:605147
Created September 30, 2010 20:28
Show Gist options
  • Save triptych/605260 to your computer and use it in GitHub Desktop.
Save triptych/605260 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src="http://yui.yahooapis.com/3.2.0/build/yui/yui-min.js"></script>
<style> .red { color: red; } </style>
</head>
<body>
<div id="myDiv">Happy</div>
<script>
YUI().use('node',function(Y){
Y.one('#myDiv').addClass('red');
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment