Skip to content

Instantly share code, notes, and snippets.

@chrisbu
Created August 19, 2013 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisbu/6268607 to your computer and use it in GitHub Desktop.
Save chrisbu/6268607 to your computer and use it in GitHub Desktop.
import 'dart:html';
void main() {
var carousel = query(".carousel");
var classList = [];
carousel.children.forEach((childElement) => classList.addAll(childElement.classes));
print(classList);
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Classes</title>
<link rel="stylesheet" href="classes.css">
</head>
<body>
<div class="carousel">
<div class="galleryCars">
....
</div>
<div class="galleryCars2">
....
</div>
<div class="galleryCars3">
....
</div>
<div class="galleryCars4">
....
</div>
</div>
<script type="application/dart" src="classes.dart"></script>
<script src="packages/browser/dart.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment