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

Side by Side Diff: polymer_1.0.4/bower_components/google-streetview-pano/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 unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <!-- Copyright (c) 2014 Google Inc. All rights reserved. -->
3 <html>
4 <head>
5 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial- scale=1.0, user-scalable=yes">
6
7 <title>google-streetview-pano Demo</title>
8
9 <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
10 <link rel="import" href="../google-streetview-pano.html">
11 <style>
12 html, body {
13 margin: 0;
14 padding: 0;
15 height: 100%;
16 background: black;
17 }
18 google-streetview-pano {
19 display: block;
20 height: 80%;
21 }
22 </style>
23 </head>
24
25 <body>
26
27 <google-streetview-pano pano-id="RjEjGqu4ymMAAAAGOtaGAQ" heading="350" pitch=" -2" zoom="0.8" disable-default-ui></google-streetview-pano>
28
29 <button onclick="showMachu();">Show me Machu Pichu</button>
30 <button onclick="showBrazil();">Show me Brazil</button>
31 <button onclick="showStatue();">Show me Statue of Vishnu</button>
32
33 <script>
34 var pano = document.querySelector('google-streetview-pano');
35 function showMachu() {
36 pano.heading = 330;
37 pano.pitch = -2;
38 pano.zoom = 0.8;
39 pano.panoId = 'VsCKIVGfvpEAAAQJKfdW1w';
40 }
41 function showBrazil() {
42 pano.heading = 210;
43 pano.pitch = 15;
44 pano.zoom = 0.2;
45 pano.panoId = 'CkmCkfwvIGUAAAQW-qy0KQ';
46 }
47 function showStatue() {
48 pano.heading = 80;
49 pano.pitch = 7;
50 pano.zoom = 0.2;
51 pano.panoId = 'pVFRQcvJ2IEAAAGuvUxa_w';
52 }
53 </script>
54 </body>
55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698