Skip to content

Instantly share code, notes, and snippets.

@kasperpeulen
Created August 7, 2015 02:03
Show Gist options
  • Select an option

  • Save kasperpeulen/5775a73e55f36bbcd9d2 to your computer and use it in GitHub Desktop.

Select an option

Save kasperpeulen/5775a73e55f36bbcd9d2 to your computer and use it in GitHub Desktop.
mini_with_style
<!-- Copyright (c) 2012, the Dart project authors.
Please see the AUTHORS file for details.
All rights reserved. Use of this source code is
governed by a BSD-style license that can be found
in the LICENSE file.
-->
<!DOCTYPE html>
<html>
<head>
<title>A Minimalist App</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<p id="RipVanWinkle">
RipVanWinkle paragraph.
</p>
<script type="application/dart" src="main.dart"></script>
<script src="packages/browser/dart.js"></script>
</body>
</html>
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:html';
void main() {
querySelector('#RipVanWinkle').text = 'Wake up, sleepy head!';
}
#RipVanWinkle {
font-size: 20px;
font-family: 'Open Sans', sans-serif;
text-align: center;
margin-top: 20px;
background-color: SlateBlue;
color: Yellow;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment