Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(500)

Unified Diff: third_party/pkg/angular/demo/bouncing_balls/index.html

Issue 124053002: Adding Angular and dependent packages for testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/angular/demo/bouncing_balls/index.html
diff --git a/third_party/pkg/angular/demo/bouncing_balls/index.html b/third_party/pkg/angular/demo/bouncing_balls/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..267371c28ae52df332419dc122de42222bf27f51
--- /dev/null
+++ b/third_party/pkg/angular/demo/bouncing_balls/index.html
@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Hello, World!</title>
+ <style>
+ .balls {
+ border: 1px solid black;
+ width: 420px;
+ height: 420px;
+ margin: 5px;
+ }
+
+ .ball {
+ display: inline-block;
+ position: absolute;
+ width: 20px;
+ height: 20px;
+ border: 1px solid black;
+ -webkit-border-radius: 10px;
+ -moz-border-radius: 10px;
+ border-radius: 10px;
+ }
+
+ .fps-bar {
+ width: 200px;
+ height: 10px;
+ border: 1px solid black;
+ display: inline-block;
+ margin-left: 5px;
+ }
+
+ .fps {
+ height: 10px;
+ width: 60px;
+ background-color: green;
+ }
+ </style>
+</head>
+<body ng-app>
+ <div bounce-controller>
+ <div class="balls">
+ <div ng-repeat="ball in bounce.balls"
+ class="{{bounce.ballClassName}}"
+ ball-position="ball"></div>
+ </div>
+
+ <div>
+ <div class="fps-bar"><div class="fps" ng-style-width="bounce.fps*4 + 'px'"></div></div>
+ </div>
+
+ {{bounce.fps}} fps. ({{bounce.balls.length}} balls) [{{(1000/bounce.fps).round()}} ms] <br>
+ Digest: {{bounce.digestTime}} ms<br>
+ <a href ng-click="bounce.changeCount(1)">+1</a>
+ <a href ng-click="bounce.changeCount(10)">+10</a>
+ <a href ng-click="bounce.changeCount(100)">+100</a>
+ <br>
+ <a href ng-click="bounce.changeCount(-1)">-1</a>
+ <a href ng-click="bounce.changeCount(-10)">-10</a>
+ <a href ng-click="bounce.changeCount(-100)">-100</a>
+ <br>
+ <a href ng-click="bounce.playPause()">&#x25B6;&#10073;&#10073;</a> <br>
+ <a href ng-click="bounce.toggleCSS()">Toggle CSS</a><br>
+ <a href ng-click="bounce.timeDigest()">noop</a><br>
+ </div>
+
+ <script type="application/dart" src="bouncy_balls.dart"></script>
+ <script src="packages/browser/dart.js"></script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698