Skip to content

Commit f7b2caf

Browse files
committed
fixed formating of delta modualtion text
1 parent 8f3ed37 commit f7b2caf

2 files changed

Lines changed: 49 additions & 29 deletions

File tree

delta-modulation/index.html

Lines changed: 49 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<link rel="stylesheet" type="text/css" href="styles_delta.css" media="screen" />
4+
<link rel="stylesheet" type="text/css" href="../tutorials/styles_tutorial.css" media="screen" />
55
<!-- p5.js begin -->
66
<!-- 1) use p5.min.js for optimizing size/transfer -->
77
<script src="../p5.min.js"></script>
@@ -18,21 +18,25 @@
1818
</head>
1919
<body>
2020
<div id="page-container">
21-
<center>
22-
<div class="tab">
23-
<a href="../index.html" class="button_round">Home </a>
24-
</div>
25-
26-
27-
</center>
21+
<center>
22+
<div class="tab">
23+
<a href="index.html" class="button_round">&laquo; Prev </a>
24+
<a href="../index.html" class="button_round">Home </a>
25+
<a href="tutorial3.html" class="button_round">Next &raquo;</a>
26+
</div>
27+
<div class="tabs">
28+
<button class="button_round" onclick="samplingSection(event, 'Question')" id="defaultOpen">Question</button>
29+
<button class="button_round" onclick="samplingSection(event, 'Answer')">Answer</button>
30+
</div>
31+
</center>
2832
<div id = "content-wrap" class="title qs">
2933
<H1>
3034
Delta Modulation
3135
</H1>
3236
<hr>
3337
</div>
3438

35-
<div id="Panel" class="tabcontent active">
39+
<div id="Question" class="tabcontent active">
3640
<main>
3741
<script>
3842
const widgetset = new_widget(
@@ -45,33 +49,50 @@ <H1>
4549
, new timeZoomSlider()
4650
]
4751
, ["original"]
48-
,"Panel"
52+
,"Question"
4953
,"qs"
5054
, 120
5155
)
5256
</script>
5357
<br>
5458
</main>
5559
</div>
60+
<div id="Answer" class="tabcontent">
61+
</div>
5662

57-
58-
59-
<script>
60-
function samplingSection(evt, cityName) {
61-
var i, tabcontent, tablinks;
62-
tabcontent = document.getElementsByClassName("tabcontent");
63-
for (i = 0; i < tabcontent.length; i++) {
64-
tabcontent[i].style.display = "none";
65-
}
66-
tablinks = document.getElementsByClassName("button_round");
67-
for (i = 0; i < tablinks.length; i++) {
68-
tablinks[i].className = tablinks[i].className.replace(" active", "");
69-
}
70-
document.getElementById(cityName).style.display = "block";
71-
evt.currentTarget.className += " active";
72-
}
7363

74-
75-
</script>
64+
<script>
65+
function samplingSection(evt, cityName) {
66+
var i, tabcontent, tablinks;
67+
tabcontent = document.getElementsByClassName("tabcontent");
68+
for (i = 0; i < tabcontent.length; i++) {
69+
tabcontent[i].style.display = "none";
70+
}
71+
tablinks = document.getElementsByClassName("button_round");
72+
for (i = 0; i < tablinks.length; i++) {
73+
tablinks[i].className = tablinks[i].className.replace(" active", "");
74+
}
75+
document.getElementById(cityName).style.display = "block";
76+
evt.currentTarget.className += " active";
77+
}
78+
79+
// Get the element with id="defaultOpen" and click on it
80+
document.getElementById("defaultOpen").click();
81+
82+
function questionlist(evt, questions) {
83+
var i, tabcontent, tablinks;
84+
tabcontent = document.getElementsByClassName("tab_questions_content");
85+
for (i = 0; i < tabcontent.length; i++) {
86+
tabcontent[i].style.display = "none";
87+
}
88+
tablinks = document.getElementsByClassName("ques");
89+
for (i = 0; i < tablinks.length; i++) {
90+
tablinks[i].className = tablinks[i].className.replace(" active", "");
91+
}
92+
document.getElementById(questions).style.display = "block";
93+
evt.currentTarget.className += " active";
94+
}
95+
// document.getElementById("defaulthover").click();
96+
</script>
7697
</body>
7798
</html>

tutorials/tutorial2.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ <H1>
9494
,["original"]
9595
,"Question" //question div id
9696
,"qs" //questions class
97-
9897
);
9998
</script>
10099
<br>

0 commit comments

Comments
 (0)