-
Notifications
You must be signed in to change notification settings - Fork 92
/
index.html
87 lines (83 loc) · 3.4 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=us-ascii">
<!-- <meta content='width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' name='viewport' /> -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="app/system/libs/jquery-3.6.0.js"></script>
<script type="text/javascript" src="app/system/libs/jquery-migrate-3.3.2.js"></script>
<link rel='stylesheet' type='text/css'href='devEnv/css/animate.css' />
<link rel="stylesheet" type="text/css" href="devEnv/css/style.css" />
<script type="text/javascript">
//<![CDATA[
function loadPage(value) {
var cw = document.getElementById('screen').contentWindow;
cw.location = value;
}
function autoResize(newBaseHeight){
var tabBodies = document.getElementsByClassName('content-tab');
var maxHeight = 0;
for ( var i = 0 ; i < tabBodies.length ; ++i ) {
var tabBody = tabBodies[i];
var height = tabBody.scrollHeight;
if ( maxHeight < height ) {
maxHeight = height;
}
}
if ( maxHeight < 1600 ) {
maxHeight = 1600;
}
if ( newBaseHeight > maxHeight + 3 ) {
console.log('resizing from ' + maxHeight + ' to new ' + (newBaseHeight + 3) );
$('.content-tab').height(newBaseHeight+3);
}
}
function switchTab(event, tabId) {
var contentTabs = document.getElementsByClassName("content-tab");
for (var i = 0; i < contentTabs.length; i++) {
contentTabs[i].style.display = "none";
}
var tabLinks = document.getElementsByClassName("tab-link");
for (var i = 0; i < tabLinks.length; i++) {
tabLinks[i].className = tabLinks[i].className.replace(" active", "");
}
document.getElementById(tabId).style.display = "block";
event.currentTarget.className += " active";
}
//]]>
</script>
<title>ODK-X Development Environment Homepage</title>
</head>
<body class="absolute">
<noscript>This page requires javascript</noscript>
<div class="topversion">ODK-X 2.1.11</div>
<ul class="tabs">
<li>
<button onclick="switchTab(event, 'tab1')" class="tab-link active">Preview</a>
</li>
<li>
<button onclick="switchTab(event, 'tab3')" class="tab-link">XLSX Converter</a>
</li>
<li>
<button onclick="switchTab(event, 'tab4')" class="tab-link">File Browser</a>
</li>
<li>
<button onclick="switchTab(event, 'tab6')" class="tab-link">QR Code Generator</a>
</li>
<li>
<button onclick="switchTab(event, 'tab5')" class="tab-link" style="background-color: red">Scan Form Designer</a>
</li>
<li>
<button onclick="switchTab(event, 'tab2')" class="tab-link" style="background-color: red">Customize</a>
</li>
</ul>
<div class="content">
<iframe id="tab1" class="content-tab" src="devEnv/tab1.html" frameborder="0" style="display: block"></iframe>
<iframe id="tab2" class="content-tab" src="devEnv/tab2.html" frameborder="0" ></iframe>
<iframe id="tab3" class="content-tab" src="devEnv/tab3.html" frameborder="0" ></iframe>
<iframe id="tab4" class="content-tab" src="devEnv/tab4.html" frameborder="0" ></iframe>
<iframe id="tab5" class="content-tab" src="devEnv/tab5.html" frameborder="0" ></iframe>
<iframe id="tab6" class="content-tab" src="devEnv/tab6.html" frameborder="0" ></iframe>
</div>
</body>
</html>