Created
August 19, 2013 12:30
-
-
Save chrisbu/6268607 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:html'; | |
void main() { | |
var carousel = query(".carousel"); | |
var classList = []; | |
carousel.children.forEach((childElement) => classList.addAll(childElement.classes)); | |
print(classList); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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