-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (51 loc) · 1.62 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
<html>
<head>
<title>Combined ShinyCell Instances</title>
<style>
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
iframe {
width: 100%;
height: 800px; /* Adjust based on your needs */
border: none;
}
</style>
</head>
<body>
<div class="tabs">
<button class="tab-button" onclick="openTab('tab1')">Lumbar_injury</button>
<button class="tab-button" onclick="openTab('tab2')">Cervical_injury</button>
<button class="tab-button" onclick="openTab('tab3')">Intra Cortical Injury</button>
</div>
<div id="tab1" class="tab-content">
<iframe src="https://manojkumar2991.shinyapps.io/Lumbar/"></iframe>
</div>
<div id="tab2" class="tab-content">
<iframe src="https://manojkumar2991.shinyapps.io/cSCI/"></iframe>
</div>
<div id="tab3" class="tab-content">
<iframe src="https://manojkumar2991.shinyapps.io/IntraCortical/"></iframe>
</div>
<script>
function openTab(tabName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tab-content");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tab-button");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(tabName).style.display = "block";
document.getElementById(tabName).className += " active";
}
// Open the first tab by default
document.getElementsByClassName('tab-button')[0].click();
</script>
</body>
</html>