-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.html
More file actions
55 lines (50 loc) · 2.2 KB
/
debug.html
File metadata and controls
55 lines (50 loc) · 2.2 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
<html lang="en">
<head>
<style>
body {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
</style>
<link type="text/css" rel="stylesheet" href="css/HelpWidget.css"></link>
<script type="text/javascript" src="js/HelpWidget.js"></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', () => {
var id = 1;
var div = document.getElementById("SourceTextDiv");
var radioButton = document.createElement('input');
radioButton.type = 'radio';
radioButton.name = 'sourceText';
radioButton.value = 'Default';
radioButton.id = 'radio' + id++;
radioButton.checked = true;
var label = document.createElement('label');
label.innerText = radioButton.value;
label.htmlFor = radioButton.id;
div.appendChild(radioButton);
div.appendChild(label);
var br = document.createElement('br');
div.appendChild(br);
for (var text in HelpWidget.HelpUrlOverrideDictionary) {
var radioButton = document.createElement('input');
radioButton.type = 'radio';
radioButton.name = 'sourceText';
radioButton.value = text;
radioButton.id = 'radio' + id++;
var label = document.createElement('label');
label.innerText = radioButton.value;
label.htmlFor = radioButton.id;
div.appendChild(radioButton);
div.appendChild(label);
var br = document.createElement('br');
div.appendChild(br);
}
});
</script>
<title>iFrame Test</title>
</head>
<body>
<h1>Just a Test</h1>
<p>This is a quick and dirty test of displaying and hiding an iFrame from a button.</p>
<div id="SourceTextDiv"></div>
</body>
</html>