Fixed the night mode

This commit is contained in:
Alexander Yakovlev 2017-11-10 20:43:40 +07:00
parent c85c3b61b6
commit 54f0dcfaa3
3 changed files with 24 additions and 21 deletions

View File

@ -34,23 +34,11 @@ $(document).ready(() ->
salet.goBack()
)
$("#night").on("click", () ->
$("#night").toggleClass("active")
$("body").toggleClass("night")
if (window.night)
styles = {
"-webkit-filter": ""
"filter": ""
"background-color": ""
}
$("body").css(styles)
$("#night").removeClass("active")
window.night = false
else
styles = {
"-webkit-filter": "invert(1)hue-rotate(180deg)"
"filter": "invert(1)hue-rotate(180deg)"
"background-color": "#000"
}
$("body").css(styles)
$("#night").addClass("active")
window.night = true
)

View File

@ -55,16 +55,16 @@ en_lang =
meet_alexey: """
Good evening.
- Hello to you. I'm Alex.
Hello to you. I'm Alex.
You introduce yourself.
"""
meet_margo: """
- Good evening.
Good evening.
You introduce yourself. Lady burns your eyes and replies:
- Margarita.
Margarita.
Very nice.
@ -96,7 +96,7 @@ en_lang =
alexey_speed_answ: """
What do you think will come soon?
- We will arrive as the come.
We will arrive as the come.
They also have a schedule.
You want to play cards?
@ -228,13 +228,13 @@ en_lang =
He's hiding in the far corner, where you can see it well.
When Margaret discovers the loss, it raises a cry.
- Help! Julia! Julia! She could be anywhere in the car!
Help! Julia! Julia! She could be anywhere in the car!
Apparently, the ferret was a girl.
Hostess goes, but after a while returned with a guide
wagon.
- I do speak, she could not run away.
I do speak, she could not run away.
Let's look for first in your compartment.
Just then you and I need a guide.
@ -286,7 +286,7 @@ en_lang =
And if your plan succeeds, it will remain here with you.
"""
final: """
- Ah, there you are!
Ah, there you are!
The conductor goes to the ferret, but instead slips on a puddle of your blood.
He falls and hits his head on the corner of the shelf. If it survives, it will be a long time to be ill.

View File

@ -187,3 +187,18 @@ hr {
.center {
text-align: center;
}
.night {
background-color: #000;
#content_wrapper,
#tools_wrapper {
background: transparent;
}
color: #fff;
.muted,
#legal {
color: #eee;
}
a {
color: lighten($link-color, 30%);
}
}