Show quotes on contact page

main
Jeffrey Elkner 12 months ago
parent 51d5058b40
commit c90beff414

@ -2,17 +2,13 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
<title>Contact Information</title>
<style type="text/css">
@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() {
let qnum = Math.floor(Math.random() * quotes.length);
let quoteElem = document.getElementById("quote");
@ -22,17 +18,15 @@ function showQuote() {
}
function init() {
showQuote();
reportScreenWidth();
}
window.onload = init;
window.onresize = reportScreenWidth;
</script>
</head>
<body>
<blockquote>
<p><!-- insert quote here --></p>
<p class="author">-- <!-- insert author here --></p>
<p id="quote"><!-- insert quote here --></p>
<p id="qauthor">-- <!-- insert author here --></p>
</blockquote>
<h1>Contact Information</h1>

Loading…
Cancel
Save