forked from boogiespook/osma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testInfoButtons.php
63 lines (51 loc) · 1.36 KB
/
testInfoButtons.php
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Example Info Buttons</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$(function() {
$(".dialog").dialog({
autoOpen: false
});
$(".opener").click(function () {
var id = $(this).data('id');
$(id).dialog("open");
});
} );
</script>
<style>
body {
margin: 50px 50px;
font-family: 'trebuchet MS', 'Lucida sans', Arial;
font-size: 14px;
color: #444;
}
img{
border:0px;
width: 20px;
height: 20px;
display: block;
}
</style>
</head>
<body>
<table>
<tr>
<td><div class="dialog" id="dialog1" title="Question 1">Detailed explanation of Question 1 </div></td>
<td>Question 1</td>
<td><button class="opener" data-id="#dialog1"><img src="images/info-button.png" alt=""></button></td>
</tr>
<tr>
<td><div class="dialog" id="dialog2" title="Question 2">Detailed explanation of Question 2 </div></td>
<td>Question 2</td>
<td><button class="opener" data-id="#dialog2"><img src="images/info-button.png" alt=""></button></td>
</tr>
</table>
</body>
</html>