Change colour based on tags in Tumblr -


I am trying to create a type of IP statement, which uses Tumbler tags.

Tumblers uses these shortcodes to output tags of each post:

{block: tag} {tag} {/ block: tag}

... which will output it to:

"tag1tag2tag3tag4etc"

I have to create something like this ... < / P>

If {block: tags} {tag} {block} tags include "red", come back to hex for red. If it contains "blue", then return the hex to blue, and if it returns "red", then return to red.

I am feeling that this will require JavaScript, which I have never used, it should be quite simple, and any help would be greatly appreciated.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -