-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
72 lines (70 loc) · 1.65 KB
/
demo.html
File metadata and controls
72 lines (70 loc) · 1.65 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!doctype html>
<html>
<head>
<title>ui-tooltip</title>
<script src="http://localhost:35729/livereload.js"></script>
<link rel="import" href="node_modules/polymer/polymer.html">
<link rel="import" href="src/ui-tooltip.html">
<style>
body {
font-family: "Helvetica Neue", "Helvetica", Arial;
}
#a {
position: absolute;
top: 0;
left: 0;
}
#b {
position: absolute;
top: 0;
right: 0;
}
#c {
position: absolute;
bottom: 0;
right: 0;
}
#d {
position: absolute;
bottom: 0;
left: 0;
}
#e {
position: absolute;
top: 50%;
left: 50%;
}
#f {
position: absolute;
top: 30%;
left: 50%;
}
</style>
</head>
<body unresolved>
<ui-tooltip id="a" label="Woo Hoo!">
<span>Upper Left</span>
</ui-tooltip>
<ui-tooltip id="b" label="Yessir!">
<span>Upper Right</span>
</ui-tooltip>
<ui-tooltip id="c" label="reebob!">
<span>Lower Right</span>
</ui-tooltip>
<ui-tooltip id="d" label="Down here buddy">
<span>Lower Left</span>
</ui-tooltip>
<ui-tooltip id="e" delay="2000">
<span>Middle with a custom delay of 2 seconds</span>
<span tip>This is <em>tooltip <b>content</b></em></span>
</ui-tooltip>
<ui-tooltip id="f" label="I've been moved!" xposition="80" yposition="130">
<span>Tweek tooltip location</span>
</ui-tooltip>
<script>
document.addEventListener('polymer-ready', function() {
//poke your element here
})
</script>
</body>
</html>