Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dom_manipulation/button.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
<script>
let button = document.getElementById("squeeze");
function shout(){
alert("... and I squeak");
}
let elapsed = performance.now() / 1000; // ms to seconds
alert(`It took you ${elapsed} seconds to squeeze me ... \n ... and I squeak`);
}
button.addEventListener("click", shout);
</script>
</body>
Expand Down
15 changes: 15 additions & 0 deletions html_css/styling-lists.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@
font-size: 10px;
}

dl {
list-style-type: none; /* Remove default list style */
padding-left: 0; /* Remove default padding */
}

dt::before {
content: '\2022'; /* Unicode character for bullet point */
font-size: 1.5em; /* Adjust size if needed */
margin-right: 0.5em; /* Adjust spacing if needed */
}

dd {
margin-left: 1.5em; /* Adjust indentation of descriptions */
}

h2 {
font-size: 2rem;
}
Expand Down