Commit 54f0dcfa authored by Alexander Yakovlev's avatar Alexander Yakovlev

Fixed the night mode

parent c85c3b61
......@@ -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
)
......
......@@ -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.
......
......@@ -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%);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment