1
0
Fork 0
mirror of https://gitlab.com/Oreolek/ludumdare37.git synced 2024-04-29 23:59:39 +03:00

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() salet.goBack()
) )
$("#night").on("click", () -> $("#night").on("click", () ->
$("#night").toggleClass("active")
$("body").toggleClass("night")
if (window.night) if (window.night)
styles = {
"-webkit-filter": ""
"filter": ""
"background-color": ""
}
$("body").css(styles)
$("#night").removeClass("active")
window.night = false window.night = false
else 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 window.night = true
) )

View file

@ -55,16 +55,16 @@ en_lang =
meet_alexey: """ meet_alexey: """
Good evening. Good evening.
- Hello to you. I'm Alex. Hello to you. I'm Alex.
You introduce yourself. You introduce yourself.
""" """
meet_margo: """ meet_margo: """
- Good evening. Good evening.
You introduce yourself. Lady burns your eyes and replies: You introduce yourself. Lady burns your eyes and replies:
- Margarita. Margarita.
Very nice. Very nice.
@ -96,7 +96,7 @@ en_lang =
alexey_speed_answ: """ alexey_speed_answ: """
What do you think will come soon? What do you think will come soon?
- We will arrive as the come. We will arrive as the come.
They also have a schedule. They also have a schedule.
You want to play cards? You want to play cards?
@ -228,13 +228,13 @@ en_lang =
He's hiding in the far corner, where you can see it well. He's hiding in the far corner, where you can see it well.
When Margaret discovers the loss, it raises a cry. 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. Apparently, the ferret was a girl.
Hostess goes, but after a while returned with a guide Hostess goes, but after a while returned with a guide
wagon. 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. Let's look for first in your compartment.
Just then you and I need a guide. 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. And if your plan succeeds, it will remain here with you.
""" """
final: """ final: """
- Ah, there you are! Ah, there you are!
The conductor goes to the ferret, but instead slips on a puddle of your blood. 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. 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 { .center {
text-align: 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%);
}
}