-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
43 lines (36 loc) · 1.34 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!--
@license
This file is part of world-data element.
world-data is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
world-data is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with world-data. If not, see <http://www.gnu.org/licenses/>.
-->
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>world-data Demo</title>
<script src="../platform/platform.js"></script>
<link rel="import" href="world-data.html">
</head>
<body unresolved>
<p>An example of using <code><world-data></code>:</p>
<world-data>
<h2>Hello world-data</h2>
</world-data>
<script>
// Wait for 'polymer-ready'. Ensures the element is upgraded.
window.addEventListener('polymer-ready', function(e) {
var world = document.querySelector('world-data');
console.log(world.world);
});
</script>
</body>
</html>