mirror of
https://github.com/its-michaelroy/Simple_Portfolio.git
synced 2026-06-03 23:00:43 +00:00
Added Dark Mode and working on color scheme
This commit is contained in:
14
assets/js/fullparagrph.js
Normal file
14
assets/js/fullparagrph.js
Normal file
@@ -0,0 +1,14 @@
|
||||
function toggleParagraph() {
|
||||
var spans = document.querySelectorAll("#more");
|
||||
var btnText = document.querySelector(".learn-more");
|
||||
|
||||
spans.forEach(function (span) {
|
||||
span.classList.toggle("hidden");
|
||||
});
|
||||
|
||||
if (spans[0].classList.contains("hidden")) {
|
||||
btnText.textContent = "Learn More";
|
||||
} else {
|
||||
btnText.textContent = "Less";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user