|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html> |
3 | 3 | <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" /> |
5 | 5 | <!-- p5.js begin --> |
6 | 6 | <!-- 1) use p5.min.js for optimizing size/transfer --> |
7 | 7 | <script src="../p5.min.js"></script> |
|
18 | 18 | </head> |
19 | 19 | <body> |
20 | 20 | <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">« Prev </a> |
| 24 | + <a href="../index.html" class="button_round">Home </a> |
| 25 | + <a href="tutorial3.html" class="button_round">Next »</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> |
28 | 32 | <div id = "content-wrap" class="title qs"> |
29 | 33 | <H1> |
30 | 34 | Delta Modulation |
31 | 35 | </H1> |
32 | 36 | <hr> |
33 | 37 | </div> |
34 | 38 |
|
35 | | - <div id="Panel" class="tabcontent active"> |
| 39 | + <div id="Question" class="tabcontent active"> |
36 | 40 | <main> |
37 | 41 | <script> |
38 | 42 | const widgetset = new_widget( |
|
45 | 49 | , new timeZoomSlider() |
46 | 50 | ] |
47 | 51 | , ["original"] |
48 | | - ,"Panel" |
| 52 | + ,"Question" |
49 | 53 | ,"qs" |
50 | 54 | , 120 |
51 | 55 | ) |
52 | 56 | </script> |
53 | 57 | <br> |
54 | 58 | </main> |
55 | 59 | </div> |
| 60 | + <div id="Answer" class="tabcontent"> |
| 61 | + </div> |
56 | 62 |
|
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 | | - } |
73 | 63 |
|
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> |
76 | 97 | </body> |
77 | 98 | </html> |
0 commit comments