| 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>
|
|
|