Skip to content

Commit 809ed24

Browse files
committed
create new pages for serving
0 parents  commit 809ed24

36 files changed

+566
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

AUTHORS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Below is a list of people and organizations that have contributed
2+
# to the Dart project. Names should be added to the list like so:
3+
#
4+
# If you contributed to the project(s) in this repository, and would
5+
# like your name included here, please contact [email protected] mailing list.
6+
#
7+
# Name/Organization <email address>
8+
9+
Google Inc.

LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Copyright 2012, the Dart project authors. All rights reserved.
2+
Redistribution and use in source and binary forms, with or without
3+
modification, are permitted provided that the following conditions are
4+
met:
5+
* Redistributions of source code must retain the above copyright
6+
notice, this list of conditions and the following disclaimer.
7+
* Redistributions in binary form must reproduce the above
8+
copyright notice, this list of conditions and the following
9+
disclaimer in the documentation and/or other materials provided
10+
with the distribution.
11+
* Neither the name of Google Inc. nor the names of its
12+
contributors may be used to endorse or promote products derived
13+
from this software without specific prior written permission.
14+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
18+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
19+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
20+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
These are small Dart samples used by the online tutorial for Dart: "A Game of Darts".

pubspec.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: tutorialsamples
2+
description: A sample application
3+
4+
#dependencies:
5+
# unittest: { sdk: unittest }

web/target01/clickme/clickme.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
body {
3+
background-color: #F8F8F8;
4+
font-family: 'Open Sans', sans-serif;
5+
font-size: 14px;
6+
font-weight: normal;
7+
line-height: 1.2em;
8+
margin: 15px;
9+
}
10+
11+
p {
12+
color: #333;
13+
}
14+
15+
#container {
16+
width: 100%;
17+
height: 400px;
18+
position: relative;
19+
border: 1px solid #ccc;
20+
background-color: #fff;
21+
}
22+
23+
#text {
24+
font-size: 24pt;
25+
text-align: center;
26+
margin-top: 140px;
27+
}

web/target01/clickme/clickme.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import 'dart:html';
2+
3+
void main() {
4+
query("#text")
5+
..text = "Click me!"
6+
..on.click.add(reverseText);
7+
}
8+
9+
void reverseText(Event event) {
10+
var text = query("#text").text;
11+
var buffer = new StringBuffer();
12+
for (int i = text.length - 1; i >= 0; i--) {
13+
buffer.add(text[i]);
14+
}
15+
query("#text").text = buffer.toString();
16+
}

web/target01/clickme/clickme.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
3+
<html>
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Clickme</title>
7+
<link rel="stylesheet" href="clickme.css">
8+
</head>
9+
<body>
10+
<h1>Clickme</h1>
11+
12+
<p>Hello world from Dart!</p>
13+
14+
<div id="container">
15+
<p id="text"></p>
16+
</div>
17+
18+
<script type="application/dart" src="clickme.dart"></script>
19+
<script src="https://dart.googlecode.com/svn/branches/bleeding_edge/dart/client/dart.js"></script>
20+
</body>
21+
</html>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
void main() {
2+
print("Hello, World!");
3+
}

web/target02/mini/mini.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import 'dart:html';
2+
3+
void main() {
4+
query('#RipVanWinkle').text = "Wake up, sleepy head!";
5+
}

0 commit comments

Comments
 (0)