-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
69 lines (65 loc) · 2.01 KB
/
index.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Inline Confirmation Demo (by Fred Wu)</title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.inline-confirmation.js"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
$("form#users input.remove").inlineConfirmation({
confirmCallback: function() {
$(this).parents("tr").fadeOut();
},
reverse: true,
expiresIn: 3
});
});
</script>
</head>
<body>
<h1>Inline Confirmation Demo</h1>
<h3>by Fred Wu</h3>
<br />
<form id="users">
<table>
<tr>
<td>Fred Wu</td>
<td><input class="remove" type="submit" value="Remove" /></td>
</tr>
<tr>
<td>Sheldon Cooper</td>
<td><input class="remove" type="submit" value="Remove" /></td>
</tr>
<tr>
<td>Leonard Hofstadter</td>
<td><input class="remove" type="submit" value="Remove" /></td>
</tr>
<tr>
<td>Howard Wolowitz</td>
<td><input class="remove" type="submit" value="Remove" /></td>
</tr>
<tr>
<td>Rajesh Koothrappali</td>
<td><input class="remove" type="submit" value="Remove" /></td>
</tr>
<tr>
<td>Penny</td>
<td><input class="remove" type="submit" value="Remove" /></td>
</tr>
<tr>
<td>Leslie Winkle</td>
<td><input class="remove" type="submit" value="Remove" /></td>
</tr>
<tr>
<td>Bernadette Rostenkowski</td>
<td><input class="remove" type="submit" value="Remove" /></td>
</tr>
<tr>
<td>Amy Farrah Fowler</td>
<td><input class="remove" type="submit" value="Remove" /></td>
</tr>
</table>
</form>
</body>
</html>