Jochem
KPCKevin Powell - Community
•Created by snxxwyy on 11/23/2024 in #front-end
dataset vs regular data methods.
pretty much. Like Choo King said, just use dataset, and only use get/setAttribute for official HTML attributes
9 replies
KPCKevin Powell - Community
•Created by snxxwyy on 11/23/2024 in #front-end
dataset vs regular data methods.
not sure, but dataset is just way more convenient and better practice. You never have to worry about mistyping
data-
for example9 replies
KPCKevin Powell - Community
•Created by snxxwyy on 11/23/2024 in #front-end
dataset vs regular data methods.
A specific reason for the split? Legacy. setAttribute predates custom data attributes
9 replies
KPCKevin Powell - Community
•Created by Islandstone on 11/22/2024 in #front-end
Cache error message
And if you're astonished that npm and chrome have nothing to do with each other, you definitely don't have the background needed to judge whether ChatGPT is hallucinating or telling the truth, so I'd recommend using it as little as possible while you're trying to learn something until you can tell what it is and isn't good at
46 replies
KPCKevin Powell - Community
•Created by Islandstone on 11/22/2024 in #front-end
Cache error message
To expand on what Epic said here: ChatGPT can be an occasionally useful tool to get a quick answer to a problem, but you absolutely positively have to remember that ChatGPT isn't intelligent. It doesn't understand anything. It's hopped up predictive text that's just really, really good at stringing together random words so that it looks like it knows what it's talking about.
I've been using it for a bunch of programming and non-programming stuff, but it very frequently is just play wrong, and how you ask it questions can very much influence what it answers. If you mention chrome in your question for example, you'll get an answer that's tailored to chrome.
It's a tool, but it's a very, very unreliable tool
46 replies
KPCKevin Powell - Community
•Created by Islandstone on 11/22/2024 in #front-end
Cache error message
you're getting this from NPM though, which has nothing to do with your browser
46 replies
KPCKevin Powell - Community
•Created by Islandstone on 11/22/2024 in #front-end
Cache error message
Unless I severely misuderstand the project, this has nothing to do with your browser cache
46 replies
KPCKevin Powell - Community
•Created by Shayokh on 11/23/2024 in #front-end
How to do this text inversion?
there's more ways to do this, but this is probably the easiest if the left text can just be the inverse of the left background
9 replies
KPCKevin Powell - Community
•Created by Shayokh on 11/23/2024 in #front-end
How to do this text inversion?
glad to help!
9 replies
KPCKevin Powell - Community
•Created by brick wall on 11/23/2024 in #front-end
need that image take whole rightside and be responsive on mobile
if fixing the misspellings doesn't work, you should give #how-to-ask-good-questions a look and share your code in a way that's easy for folks to see in their own browser
4 replies
KPCKevin Powell - Community
•Created by Shayokh on 11/23/2024 in #front-end
How to do this text inversion?
keep in mind that the effect looking good and staying readable is very dependent on the base image. It works best with high contrast, visually busy black and white images
9 replies
KPCKevin Powell - Community
•Created by Shayokh on 11/23/2024 in #front-end
How to do this text inversion?
there's only a couple of parameters that cause the effect: the background on the wrapper causes the "test" to appear and the white color on the text gives mix-blend-mode something to work with. The rest is just to get the layout
9 replies
KPCKevin Powell - Community
•Created by Shayokh on 11/23/2024 in #front-end
How to do this text inversion?
You can use mix-blend-mode on the text https://codepen.io/jochemm/pen/MWNNZWw
9 replies
KPCKevin Powell - Community
•Created by snxxwyy on 11/22/2024 in #front-end
title attribute | tooltips
Generally svg is it's own thing entirely
31 replies
KPCKevin Powell - Community
•Created by snxxwyy on 11/22/2024 in #front-end
title attribute | tooltips
Accessibility
31 replies
KPCKevin Powell - Community
•Created by clevermissfox on 11/19/2024 in #back-end
Creating multiple landing pages with subdomains
Ah, the hat of all hats. I've worn it often
30 replies
KPCKevin Powell - Community
•Created by noob on 11/20/2024 in #front-end
how to style for nested item
what have you tried? Do you have any code? If so, please share it in codepen or something similar
7 replies
KPCKevin Powell - Community
•Created by Faker on 11/21/2024 in #front-end
Is event object and window.event object the same ?
yeah, my first reaction was "oh yeah, window.event exists. huh"
8 replies
KPCKevin Powell - Community
•Created by clevermissfox on 11/19/2024 in #back-end
Creating multiple landing pages with subdomains
at the end of the day, this is much more a sysadmin issue than a programmer issue though. Not to say it's not something to ask here, just that if you've got a sysadmin where you work, dump this on their desk
30 replies
KPCKevin Powell - Community
•Created by clevermissfox on 11/19/2024 in #back-end
Creating multiple landing pages with subdomains
I'm using mod_proxy on my home server to pass some traffic on a subdomain through to a raspberry pi. This is in the apache config file for the subdomain I'm using:
30 replies