-
Notifications
You must be signed in to change notification settings - Fork 0
/
test1.html
75 lines (59 loc) · 2.64 KB
/
test1.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/M2.css" />
</head>
<body id="body">
<div id="Sve">
<header id="header" >
<link rel="stylesheet" type="text/css" href="css/stil.css"/>
<div id="Meni" class="Meni_mobilni">
<ul class="topnav">
<li><div><a href="/">QUANTUM COMPUTING</a></div></li>
<li><a class="active tablink" onclick="openPage('home', this, 'white')" id="Home">Home</a></li>
<li><a class="Normalno" href="/about.html">About</a></li>
<li><a class="Normalno" href="/contanct.html">Contact</a></li>
<li><a class="Normalno1" href="#" onclick="myFunction()">☰</a></li>
</ul>
</div>
</header>
<!--<button class="tablink" onclick="openPage('Home', this, 'red')">Home</button>
<button class="tablink" onclick="openPage('News', this, 'green')" id="defaultOpen">News</button>
<button class="tablink" onclick="openPage('Contact', this, 'blue')">Contact</button>
<button class="tablink" onclick="openPage('About', this, 'orange')">About</button>-->
<div id="Home" class="tabcontent">
<iframe class="frame" src="/tabs/tabpage1.html"></iframe>
</div>
<div id="News" class="tabcontent">
<h3>News</h3>
<p>Some news this fine day!</p>
</div>
<div id="Contact" class="tabcontent">
<h3>Contact</h3>
<p>Get in touch, or swing by for a cup of coffee.</p>
</div>
<div id="About" class="tabcontent">
<h3>About</h3>
<p>Who we are and what we do.</p>
</div>
<script>
function openPage(pageName, elmnt, color) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablink");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].style.backgroundColor = "";
}
document.getElementById(pageName).style.display = "block";
elmnt.style.backgroundColor = color;
}
// Get the element with id="defaultOpen" and click on it
document.getElementById("defaultOpen").click();
</script>
</div>
</body>
</html>