Skip to content

Instantly share code, notes, and snippets.

@vadimtsushko
Created November 11, 2015 12:26
Show Gist options
  • Save vadimtsushko/9f787535efbc259fb791 to your computer and use it in GitHub Desktop.
Save vadimtsushko/9f787535efbc259fb791 to your computer and use it in GitHub Desktop.
Broken Dartium in 1.13.0-dev.7.10
<!DOCTYPE html>
<!--
Copyright (c) 2015, <your name>. All rights reserved. Use of this source code
is governed by a BSD-style license that can be found in the LICENSE file.
-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="scaffolded-by" content="https://github.com/google/stagehand">
<title>untitled3</title>
<link rel="stylesheet" href="styles.css">
<script async src="main.dart" type="application/dart"></script>
<script async src="packages/browser/dart.js"></script>
</head>
<body>
<div id="output"></div>
<button id="btn">Run</button>
</body>
</html>
// Copyright (c) 2015, <your name>. 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('#output').text = 'Your Dart app is running.';
(querySelector('#btn') as ButtonElement).onClick.listen(logSomething);
}
logSomething(e) {
print('logSomething');
int iVal = 42;
double dVal = iVal as double;
print(dVal);
}
@import url(https://fonts.googleapis.com/css?family=Roboto);
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-family: 'Roboto', sans-serif;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment