Skip to content

Instantly share code, notes, and snippets.

@trevburley
Created July 24, 2015 09:21
Show Gist options
  • Save trevburley/987b8d53085b3e27983e to your computer and use it in GitHub Desktop.
Save trevburley/987b8d53085b3e27983e to your computer and use it in GitHub Desktop.
Style test
<!doctype html>
<html>
<head>
</head>
<body>
<p>Test</p>
<script type="application/dart" src="main.dart"></script>
</body>
</html>
import 'dart:html';
main() {
ElementList<ParagraphElement> plist = document.querySelectorAll("p");
plist.forEach( (elem) {
elem.style.backgroundColor = "#ff0000";
elem.style.color = "#ffffff";
});
}
name: styletest.'styletest'
description: >
Style test
homepage: https://gist.github.com/scrivvysolutions/987b8d53085b3e27983e
environment:
sdk: '>=1.0.0 <2.0.0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment