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

Unified Diff: third_party/polymer/components-chromium/core-animated-pages/demos/simple.html

Issue 1215543002: Remove Polymer 0.5. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test Created 5 years, 6 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/polymer/components-chromium/core-animated-pages/demos/simple.html
diff --git a/third_party/polymer/components-chromium/core-animated-pages/demos/simple.html b/third_party/polymer/components-chromium/core-animated-pages/demos/simple.html
deleted file mode 100644
index 3267d66c6615214c8961ce222ceb741df085bbb2..0000000000000000000000000000000000000000
--- a/third_party/polymer/components-chromium/core-animated-pages/demos/simple.html
+++ /dev/null
@@ -1,98 +0,0 @@
-<!--
- @license
- Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
- Code distributed by Google as part of the polymer project is also
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
--->
-<!doctype html>
-<html>
-<head>
-
- <script src="../../webcomponentsjs/webcomponents.js"></script>
- <link href="../core-animated-pages.html" rel="import">
- <link href="../transitions/cross-fade.html" rel="import">
- <link href="../transitions/slide-from-right.html" rel="import">
-
- <style>
- body {
- font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
- margin: 0;
- }
-
- core-animated-pages {
- position: absolute;
- top: 50px;
- right: 0;
- bottom: 0;
- left: 0;
- font-size: 72px;
- overflow: hidden;
- }
-
- section > div {
- height: 100%;
- color: white;
- }
-
- </style>
-
-</head>
-<body unresolved>
- <select onchange="change();">
- <option value="cross-fade-all" selected>cross-fade-all</option>
- <option value="slide-from-right">slide-from-right</option>
- </select>
-
- <core-animated-pages onclick="stuff();" transitions="cross-fade-all">
- <section>
- <div layout vertical center center-justified style="background:red;">
- <div>1</div>
- </div>
- </section>
- <section>
- <div layout vertical center center-justified style="background:blue;">
- <div>2</div>
- </div>
- </section>
- <section>
- <div layout vertical center center-justified style="background:purple;">
- <div>3</div>
- </div>
- </section>
- <section>
- <div layout vertical center center-justified style="background:orange;">
- <div>4</div>
- </div>
- </section>
- <section>
- <div layout vertical center center-justified style="background:green;">
- <div>5</div>
- </div>
- </section>
- </core-animated-pages>
-
- <script>
- function change() {
- var s = document.querySelector('select');
- document.querySelector('core-animated-pages').transitions = document.querySelector('select').options[s.selectedIndex].value;
- }
-
- var up = true;
- var max = 4;
- function stuff() {
- var p = document.querySelector('core-animated-pages');
- if (up && p.selected === max || !up && p.selected === 0) {
- up = !up;
- }
- if (up) {
- p.selected += 1;
- } else {
- p.selected -= 1;
- }
- }
- </script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698