From 80c7ecc6ee3dd1896a285310d186a47da6bea12b Mon Sep 17 00:00:00 2001 From: Frankie B Date: Mon, 16 Oct 2023 23:41:33 +0100 Subject: Added "Things they never said" to the homepage --- public/js/neverSaid.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 public/js/neverSaid.js (limited to 'public/js/neverSaid.js') diff --git a/public/js/neverSaid.js b/public/js/neverSaid.js new file mode 100644 index 0000000..665094d --- /dev/null +++ b/public/js/neverSaid.js @@ -0,0 +1,35 @@ +// Define an array of strings +const neverSaid = [ + "ASM: The Director liked all the props we got today.", + "PM: Ah ha, a revolve. Terrific.", + "Chippie: I don't know, let's look at the ground plan.", + "Set Designer: Well, let's just have whatever is cheaper.", + "Sound: Better turn that down a bit. We don't want to deafen them.", + "Director: Sorry, my mistake.", + "Electrics: This equipment is more complicated than we need.", + "Performer: I really think my big scene should be cut.", + "SM: Can we doo that scene change again please?", + "LX designer: Bit more light from those big chaps at the side. Yes that's right, the ones on stalks whatever they are called.", + "Electrics: All the equipment works perfectly.", + "Musicians: So what if that's the end of a call. Let's just finish this bit off.", + "Wardrobe: Now, when exactly is the first dress rehearsal?", + "Workshop: I don't want anyone to know, but if you insist then yes, I admit it, I have just done an all-nighter.", + "Performer: This costume is so comfortable.", + "Admin: The level of overtime payments here are simply unacceptable. Our backstage staff deserve better.", + "Box Office: Comps? No problem.", + "Set Designer: You're right, it looks dreadful.", + "Flyman: No, my lips are sealed. What I may or may not have seen remains a secret.", + "Electrics: That had nothing to do with the computer, it was my fault.", + "Crew: No, no, I'm sure that's our job.", + "SMgt: Thanks, but I don't drink", + "Performer: Let me stand down here with my back to the audience.", + "Chippie: I can't really manage those big fast power tools myself.", + "Chippie: I prefer to use these little hand drills.", + "All: Let's go and ask the Production Manager. He'll know." +] + +// Generate a random index into the array +const randomIndex = Math.floor(Math.random() * neverSaid.length); + +// Use document.write to output the random string +document.write(neverSaid[randomIndex]); -- cgit v1.2.3-54-g00ecf