Conversation

Notices

  1. Guys, I'm a failure at JS. Someone help. ;~; http://pastebin.com/GP3Zg4sU

    Friday, 27-Apr-12 22:55:53 UTC from StatusNet Desktop
    1. @redenchilada what are you trying to accomplish in that?

      Friday, 27-Apr-12 22:58:29 UTC from web
      1. @alargesmallhorse Make an image scroll across the screen after a code is entered. setTimeout() never seems to want to work for me for some reason.

        Friday, 27-Apr-12 22:59:53 UTC from StatusNet Desktop
        1. @redenchilada so it is... NOT working?

          Friday, 27-Apr-12 23:02:50 UTC from web
          1. @alargesmallhorse Not working.

            Friday, 27-Apr-12 23:03:24 UTC from web
            1. @redenchilada Huh. Can't help ya, only know AS. Don't recognize the format. is it just the timeOut() that's having the problem?

              Friday, 27-Apr-12 23:06:31 UTC from web
              1. @alargesmallhorse I can't really tell. I'll probably figure it out later or something.

                Friday, 27-Apr-12 23:07:34 UTC from web
                1. @redenchilada I only have an idea, but I'm stupid at that code stuff. I hope you qba'g get it

                  Friday, 27-Apr-12 23:11:19 UTC from web
          2. @alargesmallhorse Gotta say... I never knew I was so good at these things.

            Friday, 27-Apr-12 23:05:24 UTC from web
    2. @redenchilada I... think I might see the problem. Hold on a minute while I test something.

      Friday, 27-Apr-12 23:22:23 UTC from web
    3. @redenchilada This seems to work for me: http://pastebin.com/RKduq1eV

      Friday, 27-Apr-12 23:33:32 UTC from IdentiCurse
    4. @redenchilada The problems I could see were: 1) the function for konami.code is a function as a variable, so it doesn't need a name, just function(). 2) It had one too few closing braces (an auto-indenting editor does wonders for spotting that sort of thing before it's a problem), and that was making everything else not get run.

      Friday, 27-Apr-12 23:35:54 UTC from IdentiCurse
    5. @redenchilada Also, opening {s should generally be placed on the same line as if/for/function statements, because javascript's guessing of where to add semi-colons might catch you out otherwise. Though I _think_ in that particular code you should be fine, it's just that it's not a good habit to get into with JS.

      Friday, 27-Apr-12 23:37:36 UTC from IdentiCurse