diff --git a/src/page/prompt/index.md b/src/page/prompt/index.md index b99c01c..774022d 100644 --- a/src/page/prompt/index.md +++ b/src/page/prompt/index.md @@ -1,11 +1,11 @@ --- -title: Random Prompt Generator +title: Random Short Story Prompt --- -This prompt is randomly generated using the current day as a seed. +The items below are randomly chosen using the current day as a seed. -Sources: [[1]](https://www.nycmidnight.com/genres) [[2]](https://52prompts.com/random-location-generator/) [[3]](https://archive.ph/tDYtI) +Sources: [[1]](https://www.nycmidnight.com/genres) [[2]](https://52prompts.com/random-location-generator/) [[3]](https://github.com/dariusk/corpora/) [[4]](https://archive.ph/tDYtI) *** @@ -13,6 +13,8 @@ Sources: [[1]](https://www.nycmidnight.com/genres) [[2]](https://52prompts.com/r *Location:* Loading... +*Object:* Loading... + *Required word: one of* ... Length: 1,000 words @@ -47,6 +49,7 @@ rand(); rand(); rand(); rand(); rand(); // the words fetch will call rand() another few thousand times let genreRand = rand(); let locRand = rand(); +let objRand = rand(); let wordRand = Math.floor(10 * rand()); fetch("genre.txt") @@ -64,6 +67,13 @@ fetch("location.txt") let loc = locationList[Math.floor(locRand * locationList.length)]; document.getElementById("loc").innerText = loc; }); +fetch("objects.txt") + .then(response => response.text()) + .then(text => { + let objectList = text.split("\n"); + let obj = objectList[Math.floor(objRand * objectList.length)]; + document.getElementById("obj").innerText = obj; + }); fetch(`words${wordRand}.txt`) .then(response => response.text()) .then(text => { diff --git a/src/page/prompt/objects.txt b/src/page/prompt/objects.txt new file mode 100644 index 0000000..1963c8f --- /dev/null +++ b/src/page/prompt/objects.txt @@ -0,0 +1,447 @@ +CD +Christmas ornament +acorn +apple +bag +bag of cotton balls +bag of popcorn +bag of rubber bands +ball of yarn +balloon +banana +bananas +bandana +bangle bracelet +bar of soap +baseball +baseball bat +baseball hat +basketball +beaded bracelet +beaded necklace +bed +beef +bell +belt +blouse +blowdryer +bonesaw +book +book of jokes +book of matches +bookmark +boom box +bottle +bottle cap +bottle of glue +bottle of honey +bottle of ink +bottle of lotion +bottle of nail polish +bottle of oil +bottle of paint +bottle of perfume +bottle of pills +bottle of soda +bottle of sunscreen +bottle of syrup +bottle of water +bouquet of flowers +bow +bow tie +bowl +box +box of Q-tips +box of baking soda +box of chalk +box of chocolates +box of crayons +box of markers +box of tissues +bracelet +bread +broccoli +brush +buckle +butter knife +button +camera +can of beans +can of chili +can of peas +can of whipped cream +candle +candlestick +candy bar +candy cane +candy wrapper +canteen +canvas +car +card +carrot +carrots +cars +carton of ice cream +cat +catalogue +cell phone +cellphone +cement stone +chain +chair +chalk +chapter book +check book +chenille stick +chicken +children's book +chocolate +class ring +clay pot +clock +clothes +clothes pin +coffee mug +coffee pot +comb +comic book +computer +conditioner +container of pudding +cookie jar +cookie tin +cork +couch +cow +cowboy hat +craft book +credit card +crow +crowbar +cucumber +cup +dagger +deodorant +desk +dictionary +dog +dolphin +domino set +door +dove +drawer +drill press +egg +egg beater +egg timer +empty bottle +empty jar +empty tin can +eraser +extension cord +eye liner +face wash +fake flowers +feather +feather duster +few batteries +fish +fishing hook +flag +flashlight +floor +flowers +flyswatter +food +football +fork +fridge +frying pan +game CD +game cartridge +garden spade +giraffe +glass +glasses +glow stick +grid paper +grocery list +hair brush +hair clip +hair pin +hair ribbon +hair tie +hammer +hamster +hand bag +hand fan +hand mirror +handbasket +handful of change +handheld game system +hanger +harmonica +helmet +house +ice cream stick +ice cube +ice pick +incense holder +ipod +ipod charger +jar of jam +jar of peanut butter +jar of pickles +jigsaw puzzle +key +key chain +keyboard +keychain +keys +kitchen knife +knife +lace +ladle +lamp +lamp shade +laser pointer +leg warmers +lemon +letter opener +light +light bulb +lighter +lime +lion +lip gloss +locket +lotion +magazine +magnet +magnifying glass +map +marble +martini glass +matchbook +microphone +milk +miniature portrait +mirror +mobile phone +model car +money +monitor +mop +mouse pad +mp3 player +multitool +music CD +nail +nail clippers +nail filer +necktie +needle +notebook +notepad +novel +ocarina +orange +outlet +pack of cards +package of crisp and crunchy edibles +package of glitter +packet of seeds +pail +paint brush +paintbrush +pair of binoculars +pair of dice +pair of earrings +pair of glasses +pair of handcuffs +pair of knitting needles +pair of rubber gloves +pair of safety goggles +pair of scissors +pair of socks +pair of sunglasses +pair of tongs +pair of water goggles +panda +pants +paper +paperclip +pasta strainer +pearl necklace +pen +pencil +pencil holder +pepper shaker +perfume +phone +photo album +picture frame +piece of gum +pillow +pinecone +plastic fork +plate +plush bear +plush cat +plush dinosaur +plush dog +plush frog +plush octopus +plush pony +plush rabbit +plush unicorn +pocketknife +pocketwatch +pool stick +pop can +postage stamp +puddle +purse +purse/bag +quartz crystal +quilt +rabbit +radio +rat +remote +rhino +ring +rock +roll of duct tape +roll of gauze +roll of masking tape +roll of stickers +roll of toilet paper +rolling pin +rope +rubber band +rubber duck +rubber stamp +rug +rusty nail +safety pin +sailboat +salt shaker +sand paper +sandal +sandglass +scallop shell +scarf +scotch tape +screw +screwdriver +seat belt +shampoo +shark +sharpie +shawl +sheep +sheet of paper +shirt +shirt button +shoe lace +shoes +shopping bag +shovel +sidewalk +sketch pad +slipper +small pouch +snail shell +snowglobe +soap +soccer ball +socks +sofa +spatula +speakers +spectacles +spice bottle +sponge +spool of ribbon +spool of string +spool of thread +spool of wire +spoon +spring +squirrel +squirt gun +statuette +steak knife +stick +stick of incense +sticker book +sticky note +stockings +stop sign +straw +street lights +sun glasses +sword +table +tea cup +tea pot +teddies +television +tennis ball +tennis racket +thermometer +thimble +thread +tiger +tire swing +tissue box +toe ring +toilet +toilet paper tube +tomato +tooth pick +toothbrush +toothpaste +toothpick +towel +toy boat +toy car +toy plane +toy robot +toy soldier +toy top +trash bag +tree +trucks +tube of lip balm +tube of lipstick +turtle +tv +tweezers +twister +umbrella +vase +video games +wallet +washcloth +washing machine +watch +water +water bottle +wedding ring +whale +whip +whistle +white out +window +wine glass +wireless control +wishbone +wooden spoon +word search +wrench +wristwatch +zebra +zipper