Created
November 11, 2015 12:26
-
-
Save vadimtsushko/9f787535efbc259fb791 to your computer and use it in GitHub Desktop.
Broken Dartium in 1.13.0-dev.7.10
This file contains 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> | |
<!-- | |
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> |
This file contains 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
// 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); | |
} |
This file contains 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 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