From a2abbf41a013769a8965632d31fb80560622b11b Mon Sep 17 00:00:00 2001 From: reind33r Date: Tue, 30 Nov 2021 21:58:34 +0000 Subject: [PATCH] | for newline and drum roll + text edit for hostux --- index.html | 25 +++++++++++++++++++++++-- pairing.html | 33 +++++++++++++++++++++------------ 2 files changed, 44 insertions(+), 14 deletions(-) diff --git a/index.html b/index.html index 564de49..7bceb14 100755 --- a/index.html +++ b/index.html @@ -1,4 +1,3 @@ - @@ -158,7 +157,28 @@

No signup, no email, no bullshit. Just a straightforward open-source tool to help you generate your secret santa pairings. One static page, and that's it.

In the most common case (no exclusion rules, pair each guest with another at random), enter the name of your guests one line at a time. Once done, press "generate" and you're all set: send the generated links to your guests (by mail, chat, whatever floats your boat) and their pairing will be revealed to them (and only them) once they open the link.

Where does this tool come from?

-

I wanted to make a Secret Santa over Facebook without having to reveal to anyone my guests email addresses (so nothing that would require a backend). I also wanted not to know who was paired with me, so I had to find a way to somehow obfuscate the information. And being a developer, well, my first thought was "Let's AES it, for fun and profits!". Classic.

+

This tool has been forked from arcanis/secretsanta. It is self-hosted on hostux.fr.

+

What about my privacy?

+

There is no backend, i.e. no data stored on my server! The links that are generated contain all the encrypted information.

+

How to use?

+
# You can add a user by adding a line
+Santa
+
+# You can add some details if you want to, using parentheses after the name
+Nicholas (the elf)
+Nicholas (the elf|with a second line)
+
+# You can prevent someone from being paired with someone else
+Maël !Aurélie
+Aurélie !Maël
+
+You can also exclude someone from being paired with multiple people
+Careful: too many exclusion rules can make your secret santa less interesting!
+Rudolph !Santa !Nicholas (the elf)
+
+You can also cheat a bit and force someone to be paired with another
+Nicholas (the saint) =Nicholas (the elf)
+...
@@ -176,6 +196,7 @@ # You can add some details if you want to, using parentheses after the name Nicholas (the elf) + Nicholas (the elf|with a second line) # You can prevent someone from being paired with someone else Maël !Aurélie diff --git a/pairing.html b/pairing.html index 2f3b132..6893965 100755 --- a/pairing.html +++ b/pairing.html @@ -50,7 +50,7 @@ padding: 20px; - font-size: 10px; + font-size: 12px; text-decoration: none; color: #FFFFFF; @@ -103,6 +103,7 @@ } #pairing-details { + margin-top: 20px; margin-bottom: 20px; font-size: 20px; @@ -134,7 +135,7 @@ var name = queryString.name; var pairing = CryptoJS.AES.decrypt( queryString.pairing, queryString.key ).toString(CryptoJS.enc.Utf8); - var pairingDefinition = pairing.match( /^([^(]+)(?: (\([^)]+\)))?$/ ); + var pairingDefinition = pairing.match( /^([^(]+)(?: \(([^)]+)\))?$/ ); @@ -147,35 +148,43 @@
-
Hi ! You've been paired with
+
+ Hej !
+ Your secret child is (drum roll) +
-
+
- -
Good luck!
- +
+ May you bring them joy and happiness with your gift! +
- + Want to start your own Secret Santa with your friends? Click here to get started!