Make quotes work on homepage
parent
8d80f506f9
commit
765e29092e
Binary file not shown.
After Width: | Height: | Size: 753 B |
@ -1,40 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Quotes</title>
|
|
||||||
<style>
|
|
||||||
@import url(css/elknernet.css);
|
|
||||||
</style>
|
|
||||||
<script src="js/quotes.js"></script>
|
|
||||||
<script>
|
|
||||||
function showQuote() {
|
|
||||||
let mainElem = document.getElementById("quotes");
|
|
||||||
console.log(mainElem);
|
|
||||||
mainElem.innerHTML = "Hellooooooo there ;-)";
|
|
||||||
}
|
|
||||||
function init() {
|
|
||||||
let loc = window.location.href;
|
|
||||||
let HTMLvalidLinkStr = 'http://validator.w3.org/check?uri=' + loc;
|
|
||||||
let CSSvalidLinkStr = 'http://jigsaw.w3.org/css-validator/validator?uri=' +
|
|
||||||
loc + '?profile=css3';
|
|
||||||
document.getElementById("vLink1").setAttribute("href", HTMLvalidLinkStr);
|
|
||||||
document.getElementById("vLink2").setAttribute("href", CSSvalidLinkStr);
|
|
||||||
showQuote();
|
|
||||||
}
|
|
||||||
window.onload = init;
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Quotes</h1>
|
|
||||||
<main id="quotes">
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<a id="vLink1">
|
|
||||||
<strong> HTML </strong> Valid! </a>
|
|
||||||
<a id="vLink2">
|
|
||||||
<strong> CSS </strong> Valid! </a>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue