diff --git "a/\\" "b/\\" new file mode 100644 index 0000000..5c36b35 --- /dev/null +++ "b/\\" @@ -0,0 +1,21 @@ +const buttons = document.getElementsByClassName("randomword-button"); + +export function randomizeWords() { + registerButtons(); +} + +function registerButtons() { + for (let button of buttons) { + button.addEventListener("click", function () { + button.innerHTML = processWordlist(button.getAttribute("data-wordlist")); + }); + button.click(); + } +} + +// takes all the words and returns only one +function processWordlist(wordlist) { + return wordlist; +} + +function stripSpaces() {} diff --git a/assets/scss/colors.scss b/assets/scss/colors.scss index 6b6bef4..4fa1ad5 100644 --- a/assets/scss/colors.scss +++ b/assets/scss/colors.scss @@ -35,6 +35,25 @@ a { color: $dark-ln; } +.randomword-button{ + &.light { + border-color: $light-fg; + background-color: $light-bg; + color: $light-fg; + &:hover { + color: $light-bg; + background-color: $light-fg; + } + } + border-color: $dark-fg; + background-color: $dark-bg; + color: $dark-fg; + &:hover{ + color: $dark-bg; + background-color: $dark-fg; + } +} + a.footer-nav-item.active, a.footer-nav-item:hover { &.light { diff --git a/assets/scss/layout.scss b/assets/scss/layout.scss index ac403a4..08feff7 100644 --- a/assets/scss/layout.scss +++ b/assets/scss/layout.scss @@ -21,13 +21,19 @@ footer { margin-bottom: 84pt; } +.randomword-button { + width: auto; + height: auto; +} + #content p, #content ul, #content ol, #content table, code, .postdescription, -hr +hr, +#content div .video-player { margin-right: 24%; margin-left: 24%; diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 664d339..14e75e0 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -108,3 +108,12 @@ ul a{ padding: 0.12em; } } + +.randomword-button { + border-style: solid; + padding: 0.12em; + border-radius: 0; + &::before { + content: " "; + } +} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 69a1be2..6adab8f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,6 +5,5 @@ {{- partial "header.html" . -}}