Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 0 additions & 47 deletions bower.json

This file was deleted.

41 changes: 21 additions & 20 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>google-apis Demo</title>
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../google-apis.html">
<script type="module" src="../google-apis.js"></script>
</head>
<body>
<div id="messages"></div>
Expand All @@ -26,26 +26,27 @@

</template>
</dom-bind>
<script>
// polymer 1.x compatibility
t.loadedShortener = function(event) {
var request = event.target.api.url.get({
shortUrl: 'http://goo.gl/fbsS'
})
request.execute(function(resp) {
console.log(resp);
});
}
<script type="module">
import '../google-apis.js';
// polymer 1.x compatibility
t.loadedShortener = function(event) {
var request = event.target.api.url.get({
shortUrl: 'http://goo.gl/fbsS'
})
request.execute(function(resp) {
console.log(resp);
});
}

t.loaded = function(e) {
document.querySelector('#messages').innerHTML +=
e.target.localName + ' loaded' + '<br>';
console.log(e.target.localName + ' loaded', event.target.api);
}
t.loaded = function(e) {
document.querySelector('#messages').innerHTML +=
e.target.localName + ' loaded' + '<br>';
console.log(e.target.localName + ' loaded', event.target.api);
}

// Polymer 2.0 compatibility
bind.loadedShortener = t.loadedShortener;
bind.loaded = t.loaded;
</script>
// Polymer 2.0 compatibility
bind.loadedShortener = t.loadedShortener;
bind.loaded = t.loaded;
</script>
</body>
</html>
19 changes: 10 additions & 9 deletions google-apis.html → google-apis.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<!--
import './google-client-loader.js';
import './google-legacy-loader.js';
import './google-maps-api.js';
import './google-plusone-api.js';
import './google-realtime-api.js';
import './google-youtube-api.js';

/*
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at https://polymer.github.io/LICENSE.txt
The complete set of authors may be found at https://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at https://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 https://polymer.github.io/PATENTS.txt
-->
*/
/* Load all Google APIs, for backwards compatibility */

<!-- Load all Google APIs, for backwards compatibility -->
<link rel="import" href="google-client-loader.html">
<link rel="import" href="google-legacy-loader.html">
<link rel="import" href="google-maps-api.html">
<link rel="import" href="google-plusone-api.html">
<link rel="import" href="google-realtime-api.html">
<link rel="import" href="google-youtube-api.html">
236 changes: 0 additions & 236 deletions google-client-loader.html

This file was deleted.

Loading