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

Unified Diff: polymer_1.0.4/bower_components/iron-ajax/demo/index.html

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 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: polymer_1.0.4/bower_components/iron-ajax/demo/index.html
diff --git a/polymer_1.0.4/bower_components/iron-ajax/demo/index.html b/polymer_1.0.4/bower_components/iron-ajax/demo/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..8d585832f764cf342e8ef33b436d88f0006adab0
--- /dev/null
+++ b/polymer_1.0.4/bower_components/iron-ajax/demo/index.html
@@ -0,0 +1,45 @@
+<!doctype html>
+<!--
+Copyright (c) 2015 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
+-->
+<html>
+<head>
+
+ <title>iron-ajax</title>
+
+ <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
+ <link rel="import" href="../iron-ajax.html">
+ <link rel="import" href="../../iron-image/iron-image.html">
+ <link rel="import" href="../../paper-styles/classes/typography.html">
+ <link rel="import" href="../../iron-flex-layout/classes/iron-flex-layout.html">
+ <link rel="stylesheet" href="../../paper-styles/demo.css">
+ <style>
+ iron-image {
+ background-color: lightgray;
+ margin: 1em;
+ }
+ </style>
+</head>
+<body>
+
+ <template is="dom-bind">
+ <iron-ajax auto url="//gdata.youtube.com/feeds/api/videos/"
+ params='{"alt":"json", "q":"polymer"}'
+ handle-as="json" last-response="{{ajaxResponse}}"></iron-ajax>
+ <h1>Video Feed</h1>
+ <section class="flex layout horizontal wrap">
+ <template is="dom-repeat" items="[[ajaxResponse.feed.entry]]">
+ <a href="[[item.link.0.href]]" target="_blank">
+ <iron-image src="[[item.media$group.media$thumbnail.0.url]]" width="256" height="256" sizing="cover" preload fade></iron-image>
+ </a>
+ </template>
+ </section>
+ </template>
+
+</body>
+</html>
« no previous file with comments | « polymer_1.0.4/bower_components/iron-ajax/bower.json ('k') | polymer_1.0.4/bower_components/iron-ajax/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698