silly
This commit is contained in:
parent
fb56268b9b
commit
f6c372f7ee
2 changed files with 8 additions and 2 deletions
|
@ -16,8 +16,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<p>
|
||||||
<em>Certified PHP User</em><br>
|
<span id="title"><em>Certified PHP User</em></span><br>
|
||||||
"My life is a living nightmare!"
|
<span id="quote">"My life is a living nightmare!"</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div><img src="./res/images/profile.png" class="profile-image"></div>
|
<div><img src="./res/images/profile.png" class="profile-image"></div>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
const christmas = isItChristmas();
|
const christmas = isItChristmas();
|
||||||
|
|
||||||
if (christmas) {
|
if (christmas) {
|
||||||
|
console.log("Merry christmas!")
|
||||||
var head = document.getElementsByTagName('head')[0];
|
var head = document.getElementsByTagName('head')[0];
|
||||||
var snowJS = document.createElement("script");
|
var snowJS = document.createElement("script");
|
||||||
snowJS.type = "text/javascript";
|
snowJS.type = "text/javascript";
|
||||||
|
@ -9,6 +10,11 @@ if (christmas) {
|
||||||
|
|
||||||
const profileImage = document.querySelector("img.profile-image");
|
const profileImage = document.querySelector("img.profile-image");
|
||||||
profileImage.src = "./res/images/profile-christmas.jpg";
|
profileImage.src = "./res/images/profile-christmas.jpg";
|
||||||
|
|
||||||
|
const quote = document.querySelector("#quote");
|
||||||
|
const title = document.querySelector("#title");
|
||||||
|
title.innerHTML = "I changed the image with JS"
|
||||||
|
quote.innerHTML = "<em>(because of course I did it with JS)</em>"
|
||||||
}
|
}
|
||||||
|
|
||||||
function isItChristmas() {
|
function isItChristmas() {
|
||||||
|
|
Loading…
Reference in a new issue