GithubHelp home page GithubHelp logo

Generate button not working about secretsanta HOT 3 OPEN

arcanis avatar arcanis commented on July 1, 2024
Generate button not working

from secretsanta.

Comments (3)

bikerusl avatar bikerusl commented on July 1, 2024 1

Hi, I was also having the button doing nothing on Firefox. I didn't bother resetting my cache.

I tried
Santa
Elf
Krampus
Ms. Klaus
Elvis
Rudolf
Santa !Ms. Klaus
Santa =Krampus

...which didn't work.

Then I did a list with no other rules that did work.

Then I did:
Santa
Elf
Krampus
Ms. Klaus
Elvis
Rudolf
Rudolf !Elvis

which didn't work. but then I tried:
Santa
Elf
Krampus
Ms. Klaus
Elvis
Rudolf !Elvis

Which did work.

So I'm assuming the syntax is each name can only be given once at the start of a line? But can be used multiple times in various rules?

Could you maybe make a few example case templates for us to clarify syntax? I always find an example easier than a described explanation. And having a few cases to look at makes it easier to see.

Thanks for making this :-D So many times we've done a commercial one and it spams you for years afterwards. This is much better.

from secretsanta.

arcanis avatar arcanis commented on July 1, 2024

I've just tried and it seems to work (I tried with "Foo" on one line and "Bar" on another) - can you share the content you paste in the box (or something that would allow be to reproduce the problem, generally speaking)?

from secretsanta.

jmelett avatar jmelett commented on July 1, 2024

I think the issue is related to the "matching" function. When using following parameters, everything works:

Cat
Elephant
Mouse
Tiger

As soon you add the matching part, the console throws an error

Cat
Elephant
Mouse
Tiger

Tiger =Mouse

SecretSanta.js:13 Uncaught Error: Cannot redefine Tiger at SecretSanta.add (SecretSanta.js:13) at HTMLFormElement.generate ((index):377) SecretSanta.add @ SecretSanta.js:13 generate @ (index):377

Unfortunately I don't know any JS to help, but maybe this helps to narrow it down.

from secretsanta.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.