forked from ytiurin/html5tooltipsjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-amd.html
113 lines (97 loc) · 2.37 KB
/
example-amd.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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html><head>
<title>HTML5 Tooltips example</title>
<link rel="stylesheet" type="text/css" href="./html5tooltips.css" />
<link rel="stylesheet" type="text/css" href="./html5tooltips.animation.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.15/require.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<style type="text/css">
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head><body>
<form action="#" method="post">
<h3>Register new customer</h3>
<fieldset>
<legend>Login and password</legend>
<table>
<tbody>
<tr>
<td>
<label for="name">Login name</label>
</td>
<td>
<input id="name" type="text" data-tooltip="your name" data-tooltip-stickto="right"/>
</td>
</tr>
<tr>
<td>
<label for="password">Password</label>
</td>
<td>
<input id="password" type="password" />
</td>
</tr>
<tr>
<td>
<label for="password2">Repeat password</label>
</td>
<td>
<input id="password2" type="password" />
</td>
</tr>
</tbody>
</table>
</fieldset>
<br>
<fieldset>
<legend>Contact information</legend>
<table>
<tbody>
<tr>
<td>
<label for="fullname">Full name</label>
</td>
<td>
<input id="fullname" type="text" />
</td>
</tr>
<tr>
<td>
<label for="email">Email</label>
</td>
<td>
<input id="email" type="text" />
</td>
</tr>
<tr>
<td>
<label for="phone">Phone</label>
</td>
<td>
<input id="phone" type="text" />
</td>
</tr>
<tr>
<td>
<label for="address">Address</label>
</td>
<td>
<textarea id="address"></textarea>
</td>
</tr>
</tbody>
</table>
</fieldset>
</form>
<script type="text/javascript">
require(['html5tooltips'],function(html5tooltips){
$(function(){
html5tooltips.autoinit();
});
});
</script>
</body></html>