|
| 1 | +<!DOCTYPE html> |
| 2 | + |
| 3 | +<html> |
| 4 | +<head> |
| 5 | + <link rel="stylesheet" href="assets/css/knowledge.css"> |
| 6 | +</head> |
| 7 | + |
| 8 | +<title> 【知識管理 / 自修堆疊】 Knowledge Management and Autodidacticism</title> |
| 9 | +<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 10 | +<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> |
| 11 | +<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-teal.css"> |
| 12 | +<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto"> |
| 13 | +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> |
| 14 | + |
| 15 | +<style> |
| 16 | + body {font-family: "Roboto", sans-serif} |
| 17 | + .w3-bar-block .w3-bar-item { |
| 18 | + padding: 16px; |
| 19 | + font-weight: bold; |
| 20 | + } |
| 21 | + |
| 22 | + * { |
| 23 | + box-sizing: border-box; |
| 24 | + } |
| 25 | + |
| 26 | + #myInput, #myInput2 { |
| 27 | + background-image: url('/css/searchicon.png'); |
| 28 | + background-position: 10px 10px; |
| 29 | + background-repeat: no-repeat; |
| 30 | + width: 100%; |
| 31 | + font-size: 16px; |
| 32 | + padding: 12px 20px 12px 40px; |
| 33 | + border: 1px solid #ddd; |
| 34 | + margin-bottom: 12px; |
| 35 | + } |
| 36 | + |
| 37 | + #myTable { |
| 38 | + border-collapse: collapse; |
| 39 | + width: 100%; |
| 40 | + border: 1px solid #ddd; |
| 41 | + font-size: 18px; |
| 42 | + } |
| 43 | + |
| 44 | + #myTable th, #myTable td { |
| 45 | + text-align: left; |
| 46 | + padding: 12px; |
| 47 | + } |
| 48 | + |
| 49 | + #myTable tr { |
| 50 | + border-bottom: 1px solid #ddd; |
| 51 | + } |
| 52 | + |
| 53 | + #myTable tr.header, #myTable tr:hover { |
| 54 | + background-color: #f1f1f1; |
| 55 | + } |
| 56 | + /* Style the button that is used to open and close the collapsible content */ |
| 57 | + .collapsible { |
| 58 | + background-color: #eee; |
| 59 | + color: #444; |
| 60 | + cursor: pointer; |
| 61 | + padding: 18px; |
| 62 | + width: 100%; |
| 63 | + border: none; |
| 64 | + text-align: left; |
| 65 | + outline: none; |
| 66 | + font-size: 15px; |
| 67 | + } |
| 68 | + |
| 69 | + /* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */ |
| 70 | + .active, .collapsible:hover { |
| 71 | + background-color: #ccc; |
| 72 | + } |
| 73 | + |
| 74 | + /* Style the collapsible content. Note: hidden by default */ |
| 75 | + .content { |
| 76 | + padding: 0 18px; |
| 77 | + display: none; |
| 78 | + overflow: hidden; |
| 79 | + background-color: #f1f1f1; |
| 80 | + } |
| 81 | + .content { |
| 82 | + padding: 0 18px; |
| 83 | + background-color: white; |
| 84 | + max-height: 0; |
| 85 | + overflow: hidden; |
| 86 | + transition: max-height 0.2s ease-out; |
| 87 | + |
| 88 | + }.collapsible:after { |
| 89 | + content: '\02795'; /* Unicode character for "plus" sign (+) */ |
| 90 | + font-size: 13px; |
| 91 | + color: white; |
| 92 | + float: right; |
| 93 | + margin-left: 5px; |
| 94 | + } |
| 95 | + |
| 96 | + .active:after { |
| 97 | + content: "\2796"; /* Unicode character for "minus" sign (-) */ |
| 98 | + } |
| 99 | +</style> |
| 100 | + |
| 101 | +<body> |
| 102 | + |
| 103 | + |
| 104 | + <nav class="w3-sidebar w3-bar-block w3-collapse w3-animate-left w3-card" style="z-index:3;width:250px;" id="mySidebar"> |
| 105 | + <a class="w3-bar-item w3-button w3-border-bottom w3-large" href="#"></a> |
| 106 | + <a class="w3-bar-item w3-button w3-hide-large w3-large" href="javascript:void(0)" onclick="w3_close()">Close <i class="fa fa-remove"></i></a> |
| 107 | + <a class="w3-bar-item w3-button " href="https://nelsonlan01.github.io/index.html#">返回【個人主頁】<br> Back to Personal index page</a> |
| 108 | + |
| 109 | + <div> |
| 110 | + <a class="w3-bar-item w3-button" onclick="myAccordion('demo')" href="javascript:void(0)">小工具 Script <i class="fa fa-caret-down"></i></a> |
| 111 | + <div id="demo" class="w3-hide"> |
| 112 | + <a class="w3-bar-item w3-button" href=" side_project_main.html">小工具 主頁<br> Scripts index</a> |
| 113 | + <a class="w3-bar-item w3-button " href="project_subtitle_adding.html">Premiere Pro用 字幕生成腳本<br>Premiere Pro Subtitle Adding Script</a> |
| 114 | + <a class="w3-bar-item w3-button" href="project_premiere_pro_text_card.html">Premiere Pro用 特效字卡<br>Premiere Pro Text Card Animations</a> |
| 115 | + <a class="w3-bar-item w3-button " href="project_arithmetical_circle.html">「圓環運算」<br> Arithmetical Circle</a> |
| 116 | + <a class="w3-bar-item w3-button" href="#">Minecraft桌遊用腳本<br>Minecraft Boardgame Script<br><br>(coming soon)</a> |
| 117 | + <a class="w3-bar-item w3-button w3-teal" href="#"> 【知識點目錄 / 自修堆疊】 <br>Knowledge Management and Autodidacticism<br><br>(本頁)</a> |
| 118 | + </div> |
| 119 | + </div> |
| 120 | + |
| 121 | + </nav> |
| 122 | + |
| 123 | + <div class="w3-overlay w3-hide-large w3-animate-opacity" onclick="w3_close()" style="cursor:pointer" id="myOverlay"></div> |
| 124 | + |
| 125 | + <div class="w3-main" style="margin-left:250px;"> |
| 126 | + |
| 127 | + <div id="myTop" class="w3-container w3-top w3-theme w3-large"> |
| 128 | + <p><i class="fa fa-bars w3-button w3-teal w3-hide-large w3-xlarge" onclick="w3_open()"></i> |
| 129 | + <span id="myIntro" class="w3-hide">知識管理 / 自修堆疊 <br> Knowledge Management and Autodidacticism</span></p> |
| 130 | + </div> |
| 131 | + |
| 132 | + <header class="w3-container w3-theme" style="padding:64px 32px"> |
| 133 | + <h1 class="w3-xxxlarge">【知識點目錄 / 自修堆疊】<br> Knowledge Management and Autodidacticism </h1> |
| 134 | + </header> |
| 135 | + |
| 136 | + <div class="w3-container" style="padding:32px"> |
| 137 | + <h2>【知識點 目錄】</h2> |
| 138 | + |
| 139 | + <input type="text" id="myInput" onkeyup="myFunction()" placeholder="Search for names.." title="Type in a name"> |
| 140 | + |
| 141 | + |
| 142 | + <table id="myTable"> |
| 143 | + <tr class="header"> |
| 144 | + <th onclick="sortTable(0)" style="width:10%;">RegID</th> |
| 145 | + <th onclick="sortTable(1)" style="width:15%;">Disciplines of Learning</th> |
| 146 | + <th onclick="sortTable(2)" style="width:10%;">Type(s)</th> |
| 147 | + <th onclick="sortTable(3)" style="width:45%;">Topic / Content</th> |
| 148 | + <th onclick="sortTable(4)" style="width:10%;">FiledDate</th> |
| 149 | + <th onclick="sortTable(5)" style="width:10%;">PDF(s)</th> |
| 150 | + </tr> |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + <tr> |
| 155 | + <td>test123</td> |
| 156 | + <td>test123</td> |
| 157 | + <td>test123</td> |
| 158 | + <td>test123</td> |
| 159 | + <td>test123</td> |
| 160 | + <td>test123</td> |
| 161 | + </tr> |
| 162 | + |
| 163 | + <tr> |
| 164 | + <td colspan="6"> |
| 165 | + <button type="button" class="collapsible">Multiple topic on XXX</button> |
| 166 | + <div class="content"> |
| 167 | + <p> |
| 168 | + <table id="myTable99"> |
| 169 | + <td>test234</td> |
| 170 | + <td>test234</td> |
| 171 | + <td>test234</td> |
| 172 | + <td>test234</td> |
| 173 | + <td>test234</td> |
| 174 | + <td>test234</td> |
| 175 | + </p> |
| 176 | + </div> |
| 177 | + </table> |
| 178 | + </tr> |
| 179 | + |
| 180 | + |
| 181 | + </table> |
| 182 | + |
| 183 | + |
| 184 | + </div> |
| 185 | + |
| 186 | + <footer class="w3-center w3-theme w3-padding-64 w3-opacity w3-hover-opacity-off"> |
| 187 | + <a href="#home" class="w3-button w3-light-grey"> |
| 188 | + <i class="fa fa-arrow-up w3-margin-right"></i>To the top</a> |
| 189 | + <div class="w3-xlarge w3-section"> </a> <a href="https://youtube.com/playlist?list=PL9zygzz0hZakBpDPZLevbXaQCUzkf-Ncz"><i class="fa fa-youtube-play w3-hover-opacity" style="font-size:36px";></i></a> <a href="https://github.com/NelsonLAN"><i class="fa fa-github w3-hover-opacity" style="font-size:36px";></i></a> <a href="https://www.linkedin.com/in/nelsonlan574211143"><i class="fa fa-linkedin w3-hover-opacity" style="font-size:36px";></i></a> </div> |
| 190 | + <p> © 版權屬 Nelson LAN 所有 (2012 - 2024)</p> |
| 191 | + <p> © Copyright belong to Nelson LAN (2012 - 2024) </p> |
| 192 | + </footer> |
| 193 | + |
| 194 | + </div> |
| 195 | + |
| 196 | + <script> |
| 197 | + // Open and close the sidebar on medium and small screens |
| 198 | + function w3_open() { |
| 199 | + document.getElementById("mySidebar").style.display = "block"; |
| 200 | + document.getElementById("myOverlay").style.display = "block"; |
| 201 | + } |
| 202 | + |
| 203 | + function w3_close() { |
| 204 | + document.getElementById("mySidebar").style.display = "none"; |
| 205 | + document.getElementById("myOverlay").style.display = "none"; |
| 206 | + } |
| 207 | + |
| 208 | + // Change style of top container on scroll |
| 209 | + window.onscroll = function() {myFunction()}; |
| 210 | + function myFunction() { |
| 211 | + if (document.body.scrollTop > 80 || document.documentElement.scrollTop > 80) { |
| 212 | + document.getElementById("myTop").classList.add("w3-card-4", "w3-animate-opacity"); |
| 213 | + document.getElementById("myIntro").classList.add("w3-show-inline-block"); |
| 214 | + } else { |
| 215 | + document.getElementById("myIntro").classList.remove("w3-show-inline-block"); |
| 216 | + document.getElementById("myTop").classList.remove("w3-card-4", "w3-animate-opacity"); |
| 217 | + } |
| 218 | + } |
| 219 | + |
| 220 | + // Accordions |
| 221 | + function myAccordion(id) { |
| 222 | + var x = document.getElementById(id); |
| 223 | + if (x.className.indexOf("w3-show") == -1) { |
| 224 | + x.className += " w3-show"; |
| 225 | + x.previousElementSibling.className += " w3-theme"; |
| 226 | + } else { |
| 227 | + x.className = x.className.replace("w3-show", ""); |
| 228 | + x.previousElementSibling.className = |
| 229 | + x.previousElementSibling.className.replace(" w3-theme", ""); |
| 230 | + } |
| 231 | + } |
| 232 | + |
| 233 | + function myFunction() { |
| 234 | + var input, filter, table, tr, td, i, txtValue; |
| 235 | + input = document.getElementById("myInput"); |
| 236 | + filter = input.value.toUpperCase(); |
| 237 | + table = document.getElementById("myTable"); |
| 238 | + tr = table.getElementsByTagName("tr"); |
| 239 | + for (i = 0; i < tr.length; i++) { |
| 240 | + td = tr[i].getElementsByTagName("td")[0]; |
| 241 | + if (td) { |
| 242 | + txtValue = td.textContent || td.innerText; |
| 243 | + if (txtValue.toUpperCase().indexOf(filter) > -1) { |
| 244 | + tr[i].style.display = ""; |
| 245 | + } else { |
| 246 | + tr[i].style.display = "none"; |
| 247 | + } |
| 248 | + } |
| 249 | + } |
| 250 | + } |
| 251 | + |
| 252 | + |
| 253 | + |
| 254 | + var coll = document.getElementsByClassName("collapsible"); |
| 255 | + var i; |
| 256 | + |
| 257 | + for (i = 0; i < coll.length; i++) { |
| 258 | + coll[i].addEventListener("click", function() { |
| 259 | + this.classList.toggle("active"); |
| 260 | + var content = this.nextElementSibling; |
| 261 | + if (content.style.display === "block") { |
| 262 | + content.style.display = "none"; |
| 263 | + } else { |
| 264 | + content.style.display = "block"; |
| 265 | + } |
| 266 | + }); |
| 267 | + } |
| 268 | + |
| 269 | + var coll = document.getElementsByClassName("collapsible"); |
| 270 | + var i; |
| 271 | + |
| 272 | + for (i = 0; i < coll.length; i++) { |
| 273 | + coll[i].addEventListener("click", function() { |
| 274 | + this.classList.toggle("active"); |
| 275 | + var content = this.nextElementSibling; |
| 276 | + if (content.style.maxHeight){ |
| 277 | + content.style.maxHeight = null; |
| 278 | + } else { |
| 279 | + content.style.maxHeight = content.scrollHeight + "px"; |
| 280 | + } |
| 281 | + }); |
| 282 | + } |
| 283 | + |
| 284 | + function sortTable(n) { |
| 285 | + var table, rows, switching, i, x, y, shouldSwitch, dir, switchcount = 0; |
| 286 | + table = document.getElementById("myTable"); |
| 287 | + switching = true; |
| 288 | + // Set the sorting direction to ascending: |
| 289 | + dir = "asc"; |
| 290 | + /* Make a loop that will continue until |
| 291 | + no switching has been done: */ |
| 292 | + while (switching) { |
| 293 | + // Start by saying: no switching is done: |
| 294 | + switching = false; |
| 295 | + rows = table.rows; |
| 296 | + /* Loop through all table rows (except the |
| 297 | + first, which contains table headers): */ |
| 298 | + for (i = 1; i < (rows.length - 1); i++) { |
| 299 | + // Start by saying there should be no switching: |
| 300 | + shouldSwitch = false; |
| 301 | + /* Get the two elements you want to compare, |
| 302 | + one from current row and one from the next: */ |
| 303 | + x = rows[i].getElementsByTagName("TD")[n]; |
| 304 | + y = rows[i + 1].getElementsByTagName("TD")[n]; |
| 305 | + /* Check if the two rows should switch place, |
| 306 | + based on the direction, asc or desc: */ |
| 307 | + if (dir == "asc") { |
| 308 | + if (x.innerHTML.toLowerCase() > y.innerHTML.toLowerCase()) { |
| 309 | + // If so, mark as a switch and break the loop: |
| 310 | + shouldSwitch = true; |
| 311 | + break; |
| 312 | + } |
| 313 | + } else if (dir == "desc") { |
| 314 | + if (x.innerHTML.toLowerCase() < y.innerHTML.toLowerCase()) { |
| 315 | + // If so, mark as a switch and break the loop: |
| 316 | + shouldSwitch = true; |
| 317 | + break; |
| 318 | + } |
| 319 | + } |
| 320 | + } |
| 321 | + if (shouldSwitch) { |
| 322 | + /* If a switch has been marked, make the switch |
| 323 | + and mark that a switch has been done: */ |
| 324 | + rows[i].parentNode.insertBefore(rows[i + 1], rows[i]); |
| 325 | + switching = true; |
| 326 | + // Each time a switch is done, increase this count by 1: |
| 327 | + switchcount ++; |
| 328 | + } else { |
| 329 | + /* If no switching has been done AND the direction is "asc", |
| 330 | + set the direction to "desc" and run the while loop again. */ |
| 331 | + if (switchcount == 0 && dir == "asc") { |
| 332 | + dir = "desc"; |
| 333 | + switching = true; |
| 334 | + } |
| 335 | + } |
| 336 | + } |
| 337 | + } |
| 338 | + |
| 339 | + |
| 340 | + </script> |
| 341 | + |
| 342 | +</body> |
| 343 | +</html> |
0 commit comments