This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hello!
I am not so great at coding. At r/indypogo, I am using some upvote animation code to animate our upvote buttons. Right now we are only using four variants because of an event. It would be pretty sweet if we could have close to 150 varieties, or 250. We are using the last letter/number of a post or comment's shortlink to achieve this, so our variation tops out at 37 varieties. Is there a way to increase the variety of upvotes by using the last two character combinations of a shortlink instead of just the last character? Also can I do it in a way that I don't have to write out 1369 combinations and can just type out the 250 or so lines that I need to use all of the pokemon sprites?
Does what I'm asking make sense?
Our current code (when an event is not going on) is here.
I either need a good idea to implement or help with code for using multiple last characters.
Edit: Answered my own question. If I use .thing[data-fullname$="aa"]>.midcol>.upmod:focus::after{content:" "}
then it will take the last two letters.
Subreddit
Post Details
- Posted
- 7 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/CodingHelp/...