Try adding quotes to homepage

main
Jeff Elkner 11 months ago
parent 961717a0e0
commit 8d80f506f9

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

Loading…
Cancel
Save