Try adding quotes to homepage

main
Jeff Elkner 1 year ago
parent 961717a0e0
commit 8d80f506f9

@ -10,11 +10,25 @@ rel='stylesheet'>
<style>
@import url(css/elknernet.css);
</style>
<script src="js/quotes.js"></script>
<script>
function reportScreenWidth() {
let screenWidthOutput = document.querySelector("#screenWidth");
screenWidthOutput.textContent = window.innerWidth;
}
function showQuote() {
console.log(quotes);
let quoteElem = document.getElementById("quote");
let quoteAuthor = document.getElementById("qauthor");
quoteElem.innerHTML = quotes[0].quote;
quoteAuthor.innerHTML = quotes[0].author;
}
function init() {
showQuote();
reportScreenWidth();
}
window.onload = init;
window.onload = reportScreenWidth;
window.onresize = reportScreenWidth;
</script>
@ -268,8 +282,8 @@ LTSP: Moving into the Mainstream</a></li>
<footer>
<blockquote>
<p><!-- insert quote here --></p>
<p id="author2">-- <!-- insert author here --></p>
<p id="quote"><!-- insert quote here --></p>
<p id="qauthor">-- <!-- insert author here --></p>
</blockquote>
<p>Copyright © 2023 Jeffrey Elkner CC BY-ND 4.0</p>
<a href="http://validator.w3.org/check?uri=https://elkner.net/">

Loading…
Cancel
Save