const input = document.createElement("input");
document.body.append(input);
input.type = "file";
input.accept = "image/*";
input.onchange = e => {
if (input.files && input.files[0]) {
const canvas = document.getElementById("draw-canvas");
const ctx = canvas.getContext("2d");
createImageBitmap(input.files[0]).then(img => ctx.drawImage(img, 0, 0));
}
};Worked out the box didn't think twice of it
Good point though as the site doesnt follow responsive design patterns
https://drawafish.com/tank.html?capacity=55&sort=popular also don't sleep on that one
Semi relevant Silicon Valley clip (maybe nsfw, language)
Any en_GB speaker will probably do one of two things here:
"an 'ot" - where the h is dropped and "an" and "'ot" sound like a bit like "annot"
"a hot" - here the a becomes ay (rhymes with hay)
I'm very impressed that the old school rules still turn up. I do own a copy of "Usage and abusage" somewhere but it is and should be largely consigned to history.When you trot out a phrase like:
"Well what's the difference between a lamprey and an hot dog?"
I can't help but notice a lack of a comma post "well"!
A lamprey is a fish and a hot dog is a sausage. The first is a living organism and the other is a processed food.
Cheers mate
sigh
5 -> five, english -> English (we are not Germans who insist on all nouns be capitalised but why not try it for a proper noun), novel -> diatribe. Possible missing ellipsis.
I speak roughly seven languages really badly and can fail to apologise properly in several others.
Really nice toy!
https://www.evanmiller.org/how-not-to-sort-by-average-rating...
Please fix it.
Edit: these down-votes are going down by the 100s or so, someone is really bullish to have "RiverToSea" fish down-voted. Ironically, the "RiverToSea" fish was made by someone who named himself "f**k palestine".
[1] After refresh, you can continue voting till you reach the limit, which is problematic.
If you have an anonymous user, you can register their userId. So someone did that with the palestine fish, hence the username. I knowingly added this vuln to the design bc there's very little someone can gain from registering claiming an account for the fish and the stakes for a fish website are pretty low IMO.
1. https://drawafish.com/rank.html?userId=1753510318634_cdeh6a4...