« first day (2720 days earlier)      last day (2453 days later) » 

23:02
@Luggage changing the initial payload is so important, I wish I had done that the first time
meh. even on harder starts you have another rocket and some money
just don't screw up the first BATCH of rockets
idk, some of the initial resources for Europe were unnecessary
I restarted as Europe / Rocket Scientist and started bringing people in earlier
and managing resources better. i grew too fast too last last game
I have the storyline where everything keeps turning green, though
I restarted a few times :(
current game is fine, last game I ran out of water.
I've done two games so far. Ditched the second one after is got wedged
23:06
@rlemon How did that turn out?
the first one was going well, but I was most of the way into the 100 days and generating very little research
thought the evaporators could support me, they did for a while. got a water resource. didn't pay attention to it, ran out, rushed to get more but couldn't get enough fuel to get a rocket back
so eventually people started dying.
europe makes research easy, especially with politician. You get ALMOST enough money as a bonus for competing research to buy another round of outsourcing
until later game.
100 people went down to like 60 in about 10 sols
and that was with me scrambling with some evaporators still.
just not enough. so water and/or o2 was low in most domes
it sucks when you start running out of resources, but haven't quite yet...
23:08
Is anyone here into minecraft?
my current game I think I'm on sol 150ish. everything is going okay.
so your domes start to run out of water, then you fix that, then they're out of air, then you fix that
my resource low right now is just that factories and labs don't produce enough
man i thought you guys are real rocket scientists... lmao
@Afra Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
23:09
@Afra that would be downright irresponsible of NASA
🍪 it sure would
idk. if I had to choose anyone I know to be in a rocket with me it'd be kendall.
well, Kendall, sure
if I didn't kill him, he'd keep me alive :P
you'd die with him saying 'well actually' and your hands around his throat as you hit the surface
23:11
@WayneWerner turns out you just need to run require 'coffeescript/register' (or coffee-script, if you're not up with the times)
But... you also need to make sure that your imports have the right dependencies as well -_-
@Luggage I'd treat him like McKay with his citrus. but hold the only cube on the spaceship with a knife to it
@WayneWerner you can pre-compile them, too
Yeah, that was the other option - not how our dev thing is supposed to work, though :)
or better yet, use decaffeinate to drop coffeescript.
if you can get away with it, pre-compiling has some benefits
23:12
turn them back into JS
it's just generally more predictable
Hah. Nice.
@Luggage that's amazing
I wonder how long it will be before there will be a decaffeinate for every other language that compiles to The Language
this raspberry sour is delicious, but when it goes flat, it's easy to forget it's beer
The anderson valley one? Or a different one
untappd?
[/returns] from a "gezellige borrel" (drinks) with friends
Strongly recommend the anderson valley framboise rose gose
23:24
Oh krieks, I'm out.. I don't talk with man who drink woman's beer.
we got a gose recently
@paul23 wtf?
was that sarcasm in poor taste or are you being sexist?
Was he talking about you or me
doesn't matter
23:26
@ssube Sarcasm + probably a bit of sexist we talk to each other when we drink a bit.
k then
don't be sexist
I mean it's funnier if hes talking about me
or my appletini
Sigh, you don't want to talk about beer or you are joking?
how do you spell that? that looks strange
23:28
@Meredith it adds a layer of irony
so you enjoy sour beer?
Yeah
I make my own kombucha too
Hello, I was wondering if someone can help me solve my js querry
I draw the line at fermented poop juice, but sour beer is the shit
I am trying to make a dropdown sign in form on my navbar
Anyway if you wish to hear my recommendation: untappd.com/b/brouwerij-bosteels-tripel-karmeliet/6511 - it's an easy beer for people who have not much experience with beers. Soft taste with a nice tripel finesse.
23:29
@ssube I hope that is a euphemism for something
kombucha isn't made from poop, it's like... bubble tea
with mold-cohol
I hate bubble tea
It's essentially vinegar made from sweet tea
I want to like bubble tea but I don't
it tastes good, using a straw to suck up boogers is fuckin weird
tapioca pearls are gross.
23:31
Youre crazy
tapioca jello is good, especially with bananas in red sauce
Essentially my question is, once a div is changed from display none to display block, is there a event handler which i can use to check if a mouse click has occured inside or outside the visible div?
I would rather drink an original orbitz than bubble tea
@SShah yes
@ssube ...
Please don't call that beer
Also I would only like the event handler to be active once the div is set to display block
not when hidden*
@SShah I think jQuery has a :visible selector.
@paul23 we've been off beer for a while now
I'm drinking a tropicannon
23:33
oh I'll idle away then.
@SShah user .on with delegation and :visible selector I guess.
@SShah if you're watching for clicks, a hidden div will be somewhat difficult to click
@ssube sure, but this way he learned about the :visible selector :P
:visible is certainly the robust solution
which is a thing from jQuery I would love in main stream js
23:34
I'm only doubting the problem :P
Essentially I want to pop out a sign in form, and make it dissapear again if the "X Button", or a mouse click occurs outside the sign in form div
@ssube I'm sorry, I'm covering for not having the obvious answer. mock as you will :P
Oh
Easy trick
2 elements
pull a rabbit out of a hat?
one full page element behind the dialogue box
watch for a click event on that
ezpz
23:35
@rlemon wait, mock what?
🐰
🎩
@ssube me, I'm giving the opening
like a free shot, on the internet
-.o
I was being serious about visible being a good idea
now I'm just very confused :D
@Meredith So like an overlay?
Yeah
it's okay on delegation, but not worrying about an existing element to be clickable if it isn't visible is obvious
23:37
That overlay is also useful to PREVENT clicks on other items in the background
Would that prevent scrolling of the existing content?
@SShah ever seen a translucent gray overlay?
and even then, jQuery swallows all errors
so it shouldn't actually be a problem either way
Yes, but my signin pop up acts like a drop down
oh, you just want to close the menu?
not like a modal box
23:38
How do i add screenshot here?
there's an upload button
paste a link that ends in .jpg, .png, .gif
ohh, there is?
next to send
neat
ok, m gna upload to img.bb ok
23:39
upload that image bb
sorry imgbb* xD
i'll be amazeed if that works
it posts to imgur
imgur doesn't accept .bmp :(
lol really?
that's one of those things I would never think to try
not on i.stack.imgur
which is a paid account
didn't try the public upload
https://ibb.co/nzCjun
https://ibb.co/nsF4un
Ignore my CSS for now :D
so the way it currently works is, if you click on sign in/ register the form pops out, and to take it away you need to click on "Sign in/register" again
but i want it to work, if clicked anywhere outside of the form
23:42
you could still use an overlay, but a transparent (0% opacity) one
not sure that's the best way
it's easy
That's how I always did it
easy and effective is often a good deal for best
I never learned a better way
the overlay helps a few things. it tells you when you click outside, but also prevents those clicks from hitting what is underneath
and can prevent scrolling like he wanted
or she
23:43
or shlim
no, just he or she
or 'they' if they wish
Lol he :D
ok I will try an overlay in that case
Thanks alot
@Luggage sorry *Shkle
I can never remember
Yivo is so wise
Don't bother remembering. :)
Shmi
23:44
"they" until corrected, then a really aggressive "you" with eye contact
Final question, should I make the overlay position fixed, like the nav bar?
overlays work best when fixed, imo.
I'm not trying to pull it home, I just don't want my reference to be construed for real opinions
23:46
Ok thanks
> pull it home ?
can Cap autoreply with the alot?
I've never heard that.
It's an old canadian phrase
in work chat we have autoreplies for alot and lgtm
@Meredith that's sadly plausible
23:47
@ssube why lgtm?
I hate auto replies
1 hour ago, by rlemon
sorry, I don't english the best
they're both onebox autoreplies
23:49
@ssube You said that is not the best way?, what other options do i have?
You can just detect a click anywhere and then determine at that time if it was a click inside or outside the popup. no overlay needed.
I said I wasn't sure, then lemon and Luggage (who are both much more familiar with this) confirmed it was a good one
it's just easy.
I don't always use an overlay.
handleDocumentClick = (event) => {
    // close when clicking anywhere but me and my target
    if (event.target === this.tetherContainer
        || this.tetherContainer.contains(event.target)
        || event.target === this.props.target
        || this.props.target.contains(event.target)) {
        return;
    }

    this.props.onClose();
}
layer them and put the click handler on the overlay
23:51
I don't like the idea of watching for clicks and figuring out what was clicked
Seems like it defeats the purpose of html
how so?
html/the DOM is nested to make things like that possible and easy
Just seems that way
in my case, i didn't want an overlay, because i wanted other click to register with what you clicked (along with also closing the popup)
23:52
:41857025 I actually was trying that:
sign_in_div.onclick = function(){
    var signInForm = document.querySelector("#sign_in");
    var display_set = signInForm.style.display;

    console.log(display_set)

    if(display_set == "none"){
        signInForm.style.display = "block";

        $(document).click(function() {
            signInForm.style.display = "none";
        });

        $("#sign_in").click(function(e) {
            e.stopPropagation(); // This is the preferred method.
            return false;        // This should not be used unless you do not want
Plus let's be real
If you try to implement that on your own it's gonna be buggy as hell
i'm real :(
how did black adder end up with so many good comedians?
The issue is after I added $(document).click... function, when i click on sign in/ register it doesnt show the form

« first day (2720 days earlier)      last day (2453 days later) »