public
Created

  • Download Gist
classes.dart
Dart
1 2 3 4 5 6 7 8 9
import 'dart:html';
 
 
void main() {
var carousel = query(".carousel");
var classList = [];
carousel.children.forEach((childElement) => classList.addAll(childElement.classes));
print(classList);
}
classes.html
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
<!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>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.