Skip to content

Commit

Permalink
Inital commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Cantero committed Apr 21, 2012
0 parents commit 4eaece5
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions .children
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SaldoUnico.dart
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>SaldoUnico</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.google.dart.tools.core.dartBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.google.dart.tools.core.dartNature</nature>
</natures>
</projectDescription>
20 changes: 20 additions & 0 deletions SaldoUnico.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#import('dart:html');

class SaldoUnico {

SaldoUnico() {
}

void run() {
write("Hello World!");
}

void write(String message) {
// the HTML library defines a global "document" variable
document.query('#status').innerHTML = message;
}
}

void main() {
new SaldoUnico().run();
}
13 changes: 13 additions & 0 deletions SaldoUnico.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>

<html>
<head>
<title>SaldoUnico</title>
</head>
<body>
<h1>SaldoUnico</h1>
<h2 id="status">dart is not running</h2>
<script type="application/dart" src="SaldoUnico.dart"></script>
<script src="http://dart.googlecode.com/svn/branches/bleeding_edge/dart/client/dart.js"></script>
</body>
</html>

0 comments on commit 4eaece5

Please sign in to comment.