-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtooltip_example.html
More file actions
55 lines (55 loc) · 2.28 KB
/
Copy pathtooltip_example.html
File metadata and controls
55 lines (55 loc) · 2.28 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
<!DOCTYPE html><!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Tooltip Example</title>
<link href="https://test-webtools.webservices.illinois.edu//webservices/dist/assets/css/app.css?time=2023103111" rel="stylesheet">
<script src="https://test-webtools.webservices.illinois.edu//webservices/js/foundation/fontawesome-all.js"></script>
</head>
<body>
<form>
<div class="grid-container" role="main">
<div class="grid-x align-center margin-top-1">
<div class="large-6 cell">
<h1><span class="tab-name">Tooltip Example</span></h1>
</div>
</div>
<div class="grid-x align-center margin-top-2">
<div class="large-6 cell">
<div>
<label for="FIRST_name">First name
<input id="FIRST_name" name="FIRST_name" type="text">
</label>
</div>
<div>
<label for="LAST_name">Last name <span class="tp-wrapper">
<button class="tp-trigger btn btn-primary" aria-describedby="tp-container_1" type="button"><i class="fas fa-info-circle information-icon"></i></button>
<span id="tp-container_1" role="tooltip" class="tip tip-right">
This is where we would display details that are usually more technical and not often needed. However those that do need them need them often. </span>
</span>
<input id="LAST_name" name="LAST_name" type="text">
</label>
</div>
<div>
<label for="department">Department
<input id="department" name="department" type="text">
</label>
</div>
</div>
</div>
</div>
</form>
<script>
document.onkeydown = function(evt) {
evt = evt || window.event;
if (evt.keyCode == 27) {
tooltip_buttons = document.getElementsByClassName("tp-trigger");
for (let i = 0; i < tooltip_buttons.length; i++) {
tooltip_buttons[i].blur();
}
}
};
</script>
</body>
</html>