Colour Thingy
h
CodingCactus (2822)

Hi!

This is a colour thingy!

Basically just shows you colours

I dunno

You are viewing a single comment. View All
BobTheTomatoPie (1051)

I like it, how'd you get it to open up as a link for each color?

CodingCactus (2822)

@BobTheTomatoPie with flask, if you look at the code you will be able to see something like

@app.route('/<colour>')
def colour(colour):
  return flask.render_temate('index.html', colour=colour)

what that does is when you go to that route, it passes that colour into the template and then the js in that does stuff based on it

CodingCactus (2822)

@BobTheTomatoPie basically look at code and you will see, it isnt too complicated I don't think

BobTheTomatoPie (1051)

that is beyond my knowledge lmao @CodingCactus