Skip to content

Commit

Permalink
table
Browse files Browse the repository at this point in the history
  • Loading branch information
imuniyat committed Mar 27, 2024
1 parent 97357e7 commit 75a7f70
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/learningmodule/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Filter learning modules by the following subject areas:
<li>SCIENCE</li>
</ul>
Type in the subject name in the search box below.
<br>
<!-- <a href="/workspaces/callysto.github.io/content/post/content_1.md" target="_blank">Test md</a> -->

<!-- <button style="background:#3630a3;color:white;"
Expand All @@ -24,7 +25,7 @@ Type in the subject name in the search box below.

<script src="table.js"></script>

<input type="text" id="myInput" border="1px solid #000" width="200px" padding="20px" onkeyup="myFunction()" placeholder="Search by subject.." title="Type in a name">
<input class="task-text" type="text" id="myInput" onkeyup="myFunction()" placeholder="Search by subject.." title="Type in a name">

<table id="myTable" class="table table-bordered table-hover table-condensed">
<thead><tr><th title="Field #1">Subject</th>
Expand Down
11 changes: 11 additions & 0 deletions content/learningmodule/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,15 @@ function myFunction() {
tr[i].style.display = "none";
}
}
}

.task-text {
padding: 5px;
outline: none;
border: none;
box-shadow: inset 0 0 0 5px red;
}

.task-text:hover {
box-shadow: inset 0 0 0 2px red;
}

0 comments on commit 75a7f70

Please sign in to comment.