Home Events! Entrance Everyone Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
November 22, 2024 - @246.27 (what is this?)
Forum activity rating: Three Stars Posts: 38/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts    Start New Topic
News: :eyes: ~ Inconvenience is counterculture ~ :eyes:

+  MelonLand Forum
|-+  World Wild Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  HELP: making a sort of randomizer?


« previous next »
Pages: [1] Print
Author Topic: HELP: making a sort of randomizer?  (Read 611 times)
glitterpigeon
Full Member ⚓︎
***


And there's a blue like where the urban angels go

⛺︎ My Room
iMood: glitterpigeon

View Profile WWW

First 1000 Members!Joined 2023!
« on: July 26, 2023 @387.30 »

so I am a fan of this musical that is kind of infamous for having each version of it be drastically different and also very strange, and I thought it would be funny if I made a website that could generate a description of a "new" version of the musical by having a sort of like. madlibs-like thing with blanks that would be filled in with a word picked randomly from a list of words. if that makes sense.

for example one of them could be:

this version takes place in the year ______

and then the list would have things like. 2012, 1991, 1984, 1972, 1960, etc and it would choose 1 of those to put in the blank.

I would ideally want several of these in the thing.


but I just. do not know where to start? how hard would this be to make? what would be the best way to approach it, etc
« Last Edit: July 26, 2023 @394.47 by glitterpigeon » Logged





pigeons will save the world!!!
(pigeon gif by
candycanearter07)
lilac
Casual Poster
*


Just for Fun. No, Really.

⛺︎ My Room

View Profile

Story Builder!First 1000 Members!Joined 2023!
« Reply #1 on: July 26, 2023 @736.26 »

I tried to come up with a solution that only uses vanilla-js. There may be a better way to do it  :ok:
Every instance of a #word gets replaced by a random word from the words variable.
Refresh the page to see it in action.

https://codepen.io/paper-flower/pen/VwVEPWB

link: codepen.io/paper-flower/pen/VwVEPWB
Logged

Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

I am new to making sites and I want some tips to improve.

Started by Icey!Board ☔︎ ∙ I need Help!

Replies: 4
Views: 2161
Last post December 14, 2021 @853.48
by Icey!
php heck: making a search engine

Started by cinniBoard ☔︎ ∙ I need Help!

Replies: 2
Views: 1976
Last post February 22, 2022 @256.30
by ellievoyyd
making a game character in blender

Started by cinniBoard ➶ ∙ Art Gallery

Replies: 7
Views: 2675
Last post June 08, 2022 @501.32
by Memory

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi