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

Unified Diff: bower_components/core-transition/demo.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 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: bower_components/core-transition/demo.html
diff --git a/bower_components/core-transition/demo.html b/bower_components/core-transition/demo.html
deleted file mode 100644
index 9efd403a3e1257db5da053ba82f8f05c25613583..0000000000000000000000000000000000000000
--- a/bower_components/core-transition/demo.html
+++ /dev/null
@@ -1,87 +0,0 @@
-<!doctype html>
-<!--
-Copyright 2013 The Polymer Authors. 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,chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
-
- <title>core-transition</title>
-
- <script src="../platform/platform.js"></script>
-
- <link href="core-transition-css.html" rel="import">
-
- <style>
- #animate-me {
- background-color: lime;
- position: fixed;
- top: 100px;
- width: 100%;
- height: 100%;
- }
- </style>
-
-</head>
-<body unresolved>
-
- <div id="animate-me" hidden></div>
-
- <select id="sel" onchange="setup();">
- <option value="core-transition-fade" selected>core-transition-fade</option>
- <option value="core-transition-center">core-transition-center</option>
- <option value="core-transition-top">core-transition-top</option>
- <option value="core-transition-bottom">core-transition-bottom</option>
- <option value="core-transition-left">core-transition-left</option>
- <option value="core-transition-right">core-transition-right</option>
- </select>
-
- <button onclick="stuff();">toggle</button>
-
- <script>
-
- document.addEventListener('polymer-ready', function() {
- // initial setup
- setup();
- document.getElementById('animate-me').removeAttribute('hidden');
- });
-
- var meta;
- var transition;
- var state = {
- opened: false
- }
-
- function getMeta() {
- if (!meta) {
- meta = document.createElement('core-meta');
- meta.type = 'transition';
- }
- return meta;
- }
-
- function setup() {
- var target = document.getElementById('animate-me');
-
- if (transition) {
- transition.teardown(target);
- }
-
- var value = document.getElementById('sel').selectedOptions[0].value;
- transition = getMeta().byId(value);
- transition.setup(target);
- }
-
- function stuff() {
- var target = document.getElementById('animate-me');
- state.opened = !state.opened;
- transition.go(target, state);
- }
- </script>
-</body>
-</html>
« no previous file with comments | « bower_components/core-transition/core-transition-overlay.css ('k') | bower_components/core-transition/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698