-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0accc0e
commit da9bf3f
Showing
9 changed files
with
799 additions
and
601 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,41 @@ | ||
let likesTexst, dislikesTexst; | ||
|
||
function changeBackground(color) | ||
{ | ||
document.getElementById("main").style.backgroundColor = `rgb(${color/2}, ${color}, ${color/3})`; | ||
function changeBackground(color) { | ||
if (color > 8 || color < 6) { | ||
let colorChangebleItems = Array.prototype.slice.call(document.getElementsByClassName('color-changeble')); | ||
colorChangebleItems.forEach((element) => { | ||
element.style.backgroundColor = `rgb(${color * 16}, ${color * 16}, ${color * 16})`; | ||
element.style.color = `rgb(${255 - color * 16}, ${255 - color * 16}, ${255 - color * 16})`; | ||
}); | ||
} | ||
} | ||
|
||
function makeBorderBlue() | ||
{ | ||
document.getElementById("page").style.borderColor = "blue"; | ||
} | ||
function makeBorderBlue() { | ||
document.getElementById('page').style.borderColor = 'blue'; | ||
} | ||
|
||
function makeBorderGreen() | ||
{ | ||
document.getElementById("page").style.borderColor = "green"; | ||
} | ||
function makeBorderGreen() { | ||
document.getElementById('page').style.borderColor = 'green'; | ||
} | ||
|
||
function makeBorderYellow() | ||
{ | ||
document.getElementById("page").style.borderColor = "yellow"; | ||
} | ||
function makeBorderYellow() { | ||
document.getElementById('page').style.borderColor = 'yellow'; | ||
} | ||
|
||
document.getElementById('likes').onmouseenter = function () { | ||
likesTexst = this.textContent; | ||
this.innerHTML = '🍎 🍔 ⚽ 🏐 🏀 🦵 🎸 🐕 🚙 📺'; | ||
}; | ||
|
||
document.getElementById('likes').onmouseleave = function () { | ||
this.innerHTML = likesTexst; | ||
}; | ||
|
||
document.getElementById('dislikes').onmouseenter = function () { | ||
dislikesTexst = this.textContent; | ||
this.innerHTML = '🤬 😡 😫 🐈 🤮 🙄'; | ||
}; | ||
|
||
document.getElementById('likes').onmouseenter = function() { | ||
likesTexst=this.textContent; | ||
this.innerHTML = "🍎 🍔 ⚽ 🏐 🏀 🦵 🎸 🐕 🚙 📺"; | ||
}; | ||
|
||
document.getElementById('likes').onmouseleave = function() { | ||
this.innerHTML = likesTexst; | ||
}; | ||
|
||
document.getElementById('dislikes').onmouseenter = function() { | ||
dislikesTexst=this.textContent; | ||
this.innerHTML = "🤬 😡 😫 🐈 🤮 🙄"; | ||
}; | ||
|
||
document.getElementById('dislikes').onmouseleave = function() { | ||
this.innerHTML = dislikesTexst; | ||
}; | ||
document.getElementById('dislikes').onmouseleave = function () { | ||
this.innerHTML = dislikesTexst; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.